{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"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":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R11","name":"Import Boundaries","shortDescription":{"text":"Import Boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/R11"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.handleHandshake (cyclomatic 134): PeekabooBridgeServer.handleHandshake has cyclomatic complexity 134 (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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandshake.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a4eab3cce8324e77fef7282f25547712aaede4df4d1d02d3253da875fdd2dd"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeAgentExecutionTraceResponse.validate (cyclomatic 107): PeekabooBridgeAgentExecutionTraceResponse.validate has cyclomatic complexity 107 (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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionTraceModels.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1d2c8a8ea5843145f8730e9a31a9e57ce314e9947c3d099c74b1715153812c"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationResultSemantics.deliveryRules (cyclomatic 81): PeekabooBridgeOperationResultSemantics.deliveryRules has cyclomatic complexity 81 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"07840abe5c797c4130f923a93b156e9082491ad7ac12075b5955dd60ee1eb518"}},{"ruleId":"D1","level":"warning","message":{"text":"CommanderCLIBinder.makeRuntimeOptions (cyclomatic 49): CommanderCLIBinder.makeRuntimeOptions has cyclomatic complexity 49 (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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"44deffa84e0a22c0c242ee85ffb67e7639e8449a1317ef020fa52a26ec9368d5"}},{"ruleId":"D1","level":"warning","message":{"text":"CertificationObserveOnlyPlan.validate (cyclomatic 48): CertificationObserveOnlyPlan.validate has cyclomatic complexity 48 (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":"Apps/CLI/Sources/PeekabooCertificationController/ObserverPlan.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d16f2bd41e46f4399cbc99b2b9a6b25ab8d35c97981c0d985829f0427182f13"}},{"ruleId":"D1","level":"warning","message":{"text":"DetachedAXMutationReader.readSynchronously (cyclomatic 47): DetachedAXMutationReader.readSynchronously has cyclomatic complexity 47 (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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AXMutationObservation.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f48c8925ff0531df3ba945ad0f0045704a3a8b101e9bd93ea6e6a147731a270"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeCertificationObserverSemanticPayload.validate (cyclomatic 46): PeekabooBridgeCertificationObserverSemanticPayload.validate has cyclomatic complexity 46 (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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationObserverSemanticPayload.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4fd6b9b3cd674af7d719b833f269e698bf61b133643af4ae957b28f91d7144"}},{"ruleId":"D1","level":"warning","message":{"text":"UISnapshot.setScreenshot (cyclomatic 45): UISnapshot.setScreenshot has cyclomatic complexity 45 (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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/UISnapshotStore.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"7048910f2867d6ca370f34ea55733477ce21d24bf049049f795c0463d6dae904"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationResultSemantics.contract (cyclomatic 44): PeekabooBridgeOperationResultSemantics.contract has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e074cc90668a5a95994d791a13272fa08bc47107eabae1284e629024bac3f1"}},{"ruleId":"D1","level":"warning","message":{"text":"CommanderCLIBinder.requiresImplicitSnapshotInvalidation (cyclomatic 43): CommanderCLIBinder.requiresImplicitSnapshotInvalidation has cyclomatic complexity 43 (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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a5d58f392cb7013b72cbacf875a27ebe8f3e3e004a227a69df3fc4c749544e"}},{"ruleId":"D1","level":"warning","message":{"text":"DialogTool.execute (cyclomatic 43): DialogTool.execute has cyclomatic complexity 43 (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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DialogTool.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"664fe82fb8cbb3617624de1118bc6e7593eed17dcc07f250a16384c40498d745"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeCapabilityPolicy.supportsInteractionRequirements (cyclomatic 42): BridgeCapabilityPolicy.supportsInteractionRequirements has cyclomatic complexity 42 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fcc767d4d5a775a13878f9c6cd2b009bef413cc233c02c4002617d740d5978b"}},{"ruleId":"D1","level":"warning","message":{"text":"DesktopActionOutcome.validateDecoded (cyclomatic 42): DesktopActionOutcome.validateDecoded has cyclomatic complexity 42 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a65dbef33ed6ed674ed118ff13e3825a836f199306d7fb226b5a22d1a93578"}},{"ruleId":"D1","level":"warning","message":{"text":"SeeCommand.validatePresentationOptions (cyclomatic 41): SeeCommand.validatePresentationOptions has cyclomatic complexity 41 (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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f153abd12fd2c9f6183330c635a78dfe57bc24189977dc440df8d0feda0918"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserMCPSessionManager.prepareExecutionReceipt (cyclomatic 41): BrowserMCPSessionManager.prepareExecutionReceipt has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"44870a1052c69c98f15bcb8b7dd68127d11da2df11548ec5e9719ad068dae46c"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.validateOperationAccess (cyclomatic 41): PeekabooBridgeServer.validateOperationAccess has cyclomatic complexity 41 (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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e951f8062aff94ca93ccb0fa5331a5a62c9dc51fb809e4b7aebc482bf26f87b"}},{"ruleId":"D1","level":"warning","message":{"text":"DesktopTargetIdentityCoalescer.resolve (cyclomatic 40): DesktopTargetIdentityCoalescer.resolve has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/DesktopTargetPlanning.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"6196748225f53c8f7405b6a133186b376621e836e61a3cbad79158f2b55eb7c2"}},{"ruleId":"D1","level":"warning","message":{"text":"CertificationControllerPlan.validate (cyclomatic 39): CertificationControllerPlan.validate has cyclomatic complexity 39 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5a86ab8f2588c04dbf950517369fee13fc243c3f5cc0706ed569cede5fe34d"}},{"ruleId":"D1","level":"warning","message":{"text":"CommanderCLIBinder.applyRoutePermissionOptions (cyclomatic 38): CommanderCLIBinder.applyRoutePermissionOptions has cyclomatic complexity 38 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder\u002BInteractionPermissions.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"84be70b6846e25047e2a740f6a7438f48ee2e374dae5089ccbf816ab0801a2ce"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserMCPSessionManager.validate (cyclomatic 38): BrowserMCPSessionManager.validate has cyclomatic complexity 38 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":1431}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf4005ef2754cf5865ee7c15bf98e692676f4a9a712c31df958a7dfa1c824b1"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserToolCapabilitySession.project (cyclomatic 38): BrowserToolCapabilitySession.project has cyclomatic complexity 38 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserToolCapabilitySession.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"b338e33b240aa8e80ce6470ef122a450f9dd17b7f92caa384fe38ebe71d7ff3f"}},{"ruleId":"D1","level":"warning","message":{"text":"CaptureActionManifest.semanticFailure (cyclomatic 37): CaptureActionManifest.semanticFailure has cyclomatic complexity 37 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb3c3b4335f043a87cac7d210b8b8e6bf8e29998e28a4efb31416a6c00320279"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrollTool.parseRequest (cyclomatic 37): ScrollTool.parseRequest has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ScrollTool.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d927216ebcc2980ab9fd6e54fb724b8b73b36cd199bfffd1b09503ef5690703"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeCertificationMonitorSealPayload.validateHeartbeat (cyclomatic 37): PeekabooBridgeCertificationMonitorSealPayload.validateHeartbeat has cyclomatic complexity 37 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationMonitorSealValidation.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ed4e5a8f219637f715318cbdb742ceb1aa675c16ca65ff1500c90450ac1398"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.handleAuthorized (cyclomatic 37): PeekabooBridgeServer.handleAuthorized has cyclomatic complexity 37 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"242c14e69360b10c3ec13f38f44f8dbb03e6a4105df42d81f87038bd87d5d639"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowEnumerationContext.mergeWindowInventory (cyclomatic 36): WindowEnumerationContext.mergeWindowInventory has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1c65278b337d28871507ee1969fa757a8efcd3671f82e0368fc1b383b4736a"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveCertificationBridge.validateCanonicalRequest (cyclomatic 35): LiveCertificationBridge.validateCanonicalRequest has cyclomatic complexity 35 (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":"Apps/CLI/Sources/PeekabooCertificationController/LiveCertificationBridge.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"471732c59646c4af0068c457d5050795c2650086732fcc04d3c3ecfaaeb11ccf"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserMCPSessionManager.connectionReceipt (cyclomatic 35): BrowserMCPSessionManager.connectionReceipt has cyclomatic complexity 35 (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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1c3a59749ae740ad56847631beee94279bdc704fc454048361e58f2ef41965"}},{"ruleId":"D1","level":"warning","message":{"text":"CaptureError.errorDescription (cyclomatic 35): CaptureError.errorDescription has cyclomatic complexity 35 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooFoundation/Sources/PeekabooFoundation/ErrorTypes.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbd2f897ba37392ff0d977258003aef449d801233afab47f0b01d25ee719beb"}},{"ruleId":"D1","level":"warning","message":{"text":"core-sigpipe-diagnostic.capture (cyclomatic 35): core-sigpipe-diagnostic.capture has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/scripts/core-sigpipe-diagnostic.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd305ec6fbd6d6a56780e711e571461bfc2fefaf74fff0669e12626235a8a3da"}},{"ruleId":"D1","level":"warning","message":{"text":"LegacyPNGValidator.hasValidStructureAndCRC (cyclomatic 34): LegacyPNGValidator.hasValidStructureAndCRC has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyPNGValidator.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"7252698cd612957151388ea30324d8796e8a9babc5e575a6e3f69e3acd09ded6"}},{"ruleId":"D1","level":"warning","message":{"text":"HotkeyService.hotkey (cyclomatic 34): HotkeyService.hotkey has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/HotkeyService.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"40619d3d41615e3399b4c14fc0af3e906f35e4a9e81bf2db4f6b66a3c4c3704b"}},{"ruleId":"D1","level":"warning","message":{"text":"ClickRequest.init (cyclomatic 34): ClickRequest.init has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"2597828ec35f360cf1c987ed97d9cd03d651daca666fc27288d637b7a8a77d6b"}},{"ruleId":"D1","level":"warning","message":{"text":"UISnapshot.setTargetMetadata (cyclomatic 34): UISnapshot.setTargetMetadata has cyclomatic complexity 34 (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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/UISnapshotStore.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd0d29412594d416b13415ab6fd0b194223de8de898b6e2fb24431c100ef562"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeClient.requireNegotiatedInputCapabilities (cyclomatic 34): PeekabooBridgeClient.requireNegotiatedInputCapabilities has cyclomatic complexity 34 (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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"607eb6537525d053ab31efccf9a28eb20185c7da2bbb605504b8746249ab4573"}},{"ruleId":"D1","level":"warning","message":{"text":"CaptureActionManifestWriter.retainedFile (cyclomatic 33): CaptureActionManifestWriter.retainedFile has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"16520e4c46384a4dc4fa3638cfa2546b1e96e29f0ef28eadce763e005dc35e0e"}},{"ruleId":"D1","level":"warning","message":{"text":"CaptureArtifactIntegrityValidator.videoCustody (cyclomatic 33): CaptureArtifactIntegrityValidator.videoCustody 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/CaptureArtifactIntegrityValidator.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5b7e7caf68515301c5530e64893e90a1d88c461701b1472d85eaf57cee0263"}},{"ruleId":"D1","level":"warning","message":{"text":"Reader.read (cyclomatic 33): Reader.read has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundWindowChromeReader.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95fca7c163f5f5f0654ecaf5febaff09ca229d57c7f76893f0001dfe987cd38"}},{"ruleId":"D1","level":"warning","message":{"text":"DesktopActionSequenceAccumulator.completedBatch (cyclomatic 33): DesktopActionSequenceAccumulator.completedBatch has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionSequenceAccumulator.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8834c867542491eeb429995110c705195da13f8400be4ce8eac5f72c79fbe38"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeCapabilityPolicy.firstUnmetRemoteRequirement (cyclomatic 32): BridgeCapabilityPolicy.firstUnmetRemoteRequirement has cyclomatic complexity 32 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"591feb092f211c7e5113e0ad12c76c1a4dc22e9ff9eafa5d16641e26eb30f608"}},{"ruleId":"D1","level":"warning","message":{"text":"MenuExtraAXReader.readSynchronously (cyclomatic 32): MenuExtraAXReader.readSynchronously has cyclomatic complexity 32 (threshold 15). Of this number, 29 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuExtraAXReader.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4b94f8615d9fc1e8dc16aad0fb292433dc1783c7be2d0ca12b9226e867c267"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentToolResultSemantics.turnBoundaryProjection (cyclomatic 32): AgentToolResultSemantics.turnBoundaryProjection has cyclomatic complexity 32 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolResultSemantics.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"d991ae4ae0f670c3181cb36fc0eb97c2129458921dede1a6627182f00d31e73a"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPToolContext.backgroundTargetAuthorization (cyclomatic 32): MCPToolContext.backgroundTargetAuthorization has cyclomatic complexity 32 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e0eee610e222a9ddfcdd3924df20e5f81ab81fbad2abe960dc78af772be439"}},{"ruleId":"D1","level":"warning","message":{"text":"RuntimeHostResolver.resolveRemoteRouting (cyclomatic 31): RuntimeHostResolver.resolveRemoteRouting has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"04bd554b95da1fd243768252f850945f7506f098bb2059f17d75a224b79f7666"}},{"ruleId":"D1","level":"warning","message":{"text":"RuntimeHostResolver.resolveRemoteServices (cyclomatic 31): RuntimeHostResolver.resolveRemoteServices has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver.swift"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"538712784cea36ebe2147540651564b0ec01d6159ccc16cfb293e5861c09d691"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeAgentExecutionPaths.validateAndPrepare (cyclomatic 31): PeekabooBridgeAgentExecutionPaths.validateAndPrepare has cyclomatic complexity 31 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"378dadc74226669c670589bbb877a362181da1b268b43858a0ba7671d6322801"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeClient.handshakeCandidate (cyclomatic 31): PeekabooBridgeClient.handshakeCandidate has cyclomatic complexity 31 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"f883e98fb97cf8c4b28526abeca06a498f7a87c98fd3afb5a2cdbf8053951aa7"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeDesktopObservationBinding.validateOutputOptions (cyclomatic 31): PeekabooBridgeDesktopObservationBinding.validateOutputOptions has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8fe3f7cbdc069131b931e8c856d41873f1b2e89856d9cff7abfafc2a637bab"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptBundle.validateIntegrity (cyclomatic 31): PeekabooBridgeOperationReceiptBundle.validateIntegrity has cyclomatic complexity 31 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a3720fe1b1c29d296867f75dd6575b96ad8aa65153f07e1dd9f9d2992a4a1f"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validatePostMutationWindow (cyclomatic 31): PeekabooBridgeOperationReceiptSemantics.validatePostMutationWindow has cyclomatic complexity 31 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c024e1fe4476c4932045d95fb0d9e0927e657a90df3fcc3675fbcd6fd12f56"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationResultSemantics.browserResponseProgressMismatch (cyclomatic 31): PeekabooBridgeOperationResultSemantics.browserResponseProgressMismatch has cyclomatic complexity 31 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics\u002BBrowser.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6857c756abc32931b82e4dbc93a3855b0d16f9e7be97d8257dc659e1c4cc7f8"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.allowedOperationsToAdvertise (cyclomatic 31): PeekabooBridgeServer.allowedOperationsToAdvertise has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandshake.swift"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e55d83c4d1501b70807bddc7fb5e591cdfcb13b963cd962bad4fd5ccc76c52"}},{"ruleId":"D1","level":"warning","message":{"text":"SeeCommand.requireBoundTreeOnlyEvidence (cyclomatic 30): SeeCommand.requireBoundTreeOnlyEvidence has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BDetectionPipeline.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda2a9159f697bffa9a4dda62ff94010f460c806c9989bea5b520ed6a589890e"}},{"ruleId":"D1","level":"warning","message":{"text":"CertificationControllerBuildIdentityResolver.current (cyclomatic 30): CertificationControllerBuildIdentityResolver.current has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerBuildIdentity.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"181a6b04633613db2b40d69af47f6d26201739efac673cecb30d1403cedc70e8"}},{"ruleId":"D1","level":"warning","message":{"text":"HeldPointerCertificationPlan.validate (cyclomatic 30): HeldPointerCertificationPlan.validate has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/HeldPointerPlan.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32d0cff8a386b3715443b4e64e4ced2d48da837f1169545bd15f5ce9849e2ed"}},{"ruleId":"D1","level":"warning","message":{"text":"ActionInputDriver.selectText (cyclomatic 30): ActionInputDriver.selectText has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ff36c82a6bb95e5308bcecd7706cc339790dba09ccea8cb285a4177779080a"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeCertificationMonitorSealPayload.validate (cyclomatic 30): PeekabooBridgeCertificationMonitorSealPayload.validate has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationMonitorSealValidation.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"099e38291f33b15e7b858b68bc85e42f09eb4e9c5446ef46be956881cf04eca9"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperation.compatible (cyclomatic 30): PeekabooBridgeOperation.compatible has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeModels.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa88d5ecba37701e45e16392518b24372af4edceb7d4e302f23d28d15b1c1be"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateSuccessfulTargetAttribution (cyclomatic 30): PeekabooBridgeOperationReceiptSemantics.validateSuccessfulTargetAttribution has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f53c4e6622a318f91baf5735eb77c85ea63dea3f65c041adc18b0241457c9f"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.handleBrowserExecute (cyclomatic 30): PeekabooBridgeServer.handleBrowserExecute has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BBrowserHandlers.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"0091f24f79a4cfbb6fd59ab18da712a9363b49857004d4adab98851a5b3ef94d"}},{"ruleId":"D1","level":"warning","message":{"text":"ForegroundModifierClickExecutor.executeOwned (cyclomatic 29): ForegroundModifierClickExecutor.executeOwned has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ForegroundModifierClickExecutor.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f4ac8775d3592bc69360be650b8281bf36de98416201e2b163e09e0859e5e5"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeCertificationObserverSemanticPayload.readback (cyclomatic 29): PeekabooBridgeCertificationObserverSemanticPayload.readback has cyclomatic complexity 29 (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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationObserverSemanticPayload.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bde3a9c03a53b6a7847c948a9264d8e88233183f753e16316d6c063287b7aa"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeClient.sendCarryingActionOutcome (cyclomatic 29): PeekabooBridgeClient.sendCarryingActionOutcome has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b415982580edfa2d525f456a5905f9c31f88e4f395d681649e2ff2af843d247d"}},{"ruleId":"D1","level":"warning","message":{"text":"DetachedExactWindowFocusReader.read (cyclomatic 28): DetachedExactWindowFocusReader.read has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae1286fc9afcffce467b9474622b5d7eb391efe3398cc2b8542fa387c58fe3a"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeDesktopObservationBinding.validateWindowEvidence (cyclomatic 28): PeekabooBridgeDesktopObservationBinding.validateWindowEvidence has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21b3df2057cd09890ebeb429406274dbb5d7fce9dee18019500db75cd3fcafd"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeActionResultRule.accepts (cyclomatic 28): TypeActionResultRule.accepts has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultContracts.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca841995cbad721944df2277d88ef72590ab58e4f00668c219bac2d9c37e614"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeRequestPlan.validateBoundTypedResponse (cyclomatic 28): PeekabooBridgeRequestPlan.validateBoundTypedResponse has cyclomatic complexity 28 (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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultContracts.swift"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab0eae4db1d9e2de6b56ad5a3d598e7cfddbdfef72ee6e3222868b22cd5178a"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooSettings.hasValidAPIKey (cyclomatic 28): PeekabooSettings.hasValidAPIKey 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":"Apps/Mac/Peekaboo/Core/Settings.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac25bc2e326f6f2009e53f6623df2ddf865c5080b687e6b6b026c3f33351f85"}},{"ruleId":"D1","level":"warning","message":{"text":"ClickCommand.validate (cyclomatic 27): ClickCommand.validate 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand\u002BValidation.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"923f3afbdfe00624154460a900dfca0d88e39047053750547befb2293582e2d9"}},{"ruleId":"D1","level":"warning","message":{"text":"RuntimeHostResolver.resolveSnapshotAffinityOwner (cyclomatic 27): RuntimeHostResolver.resolveSnapshotAffinityOwner has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BSnapshotAffinity.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5e827f2e9b8d1e328d3d5ad69ae39b21a0b09214cf363a5b59f46b96984f22"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveForegroundSemanticObserver.connect (cyclomatic 27): LiveForegroundSemanticObserver.connect has cyclomatic complexity 27 (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":"Apps/CLI/Sources/PeekabooCertificationController/ForegroundSemanticObserver.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"7566bb884526d052187bab78aea44ac0b5167aad901a024df888b118a81deb04"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveCertificationBridge.connect (cyclomatic 27): LiveCertificationBridge.connect has cyclomatic complexity 27 (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":"Apps/CLI/Sources/PeekabooCertificationController/LiveCertificationBridge.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"b871adca5719d59f5826211a00f39dd0cccfcd95e5b40e8c27491638e14dc3ba"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeHost.legacySocketOwnerState (cyclomatic 27): PeekabooBridgeHost.legacySocketOwnerState 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost.swift"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"7016cdeb5f0377dc879495bb47ef78598916b2f06d10d7e456f94966fe23617b"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.init (cyclomatic 27): PeekabooBridgeServer.init has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dfb09decdede0e7dd5c6b00e53ff4a53eefe813a262eabdea49f0e4d7deac19"}},{"ruleId":"D1","level":"warning","message":{"text":"ClipboardPayloadBuilder.readFile (cyclomatic 26): ClipboardPayloadBuilder.readFile 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardPayloadBuilder.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c0fe9f28e4a0df4de7e5d2d1891fc760d8aa9eea4602b02098a9a53a650071"}},{"ruleId":"D1","level":"warning","message":{"text":"AutomationElementResolver.resolveScrollTarget (cyclomatic 26): AutomationElementResolver.resolveScrollTarget 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AutomationElementResolver.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fef7040449fa6c6354a9586442f1af66a6f1b8b37f08b8883abce0903535e40"}},{"ruleId":"D1","level":"warning","message":{"text":"DetachedAXObservationWorker.inspect (cyclomatic 26): DetachedAXObservationWorker.inspect 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67e56de7efcd2a9510052a86532580dff7ef70b6973483bddd4dc37c67c2677"}},{"ruleId":"D1","level":"warning","message":{"text":"DetachedAXObservationWorker.process (cyclomatic 26): DetachedAXObservationWorker.process has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"9371c312957882fb3c41bf9fbf8ca64a6e86402cd5ab2e804f92becb0ecd65be"}},{"ruleId":"D1","level":"warning","message":{"text":"DialogService.discoverDialogCandidates (cyclomatic 26): DialogService.discoverDialogCandidates 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BDiscovery.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"82588201bb634a23db287ba5f846f2febadbe121730ff0b79330f76a3db4d2a8"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrollService.scrollWithLanePreparation (cyclomatic 26): ScrollService.scrollWithLanePreparation 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"3735b85de412083ece5353adb173dd2505e1d4f800006fff1a1b0bb4a651adaf"}},{"ruleId":"D1","level":"warning","message":{"text":"PressTool.execute (cyclomatic 26): PressTool.execute has cyclomatic complexity 26 (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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c3c78620ab55d9f3dd7d636a9e1628b9db1c9207150948cb77bf8053516f6a"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeCertificationCrashInventoryPairPayload.validate (cyclomatic 26): PeekabooBridgeCertificationCrashInventoryPairPayload.validate has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationCrashInventoryPayload.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d079a650b13f8eab0a49535fcccfb23f6c8979a42d4d4493ea5e6a147150fe"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeClient.sendBlocking (cyclomatic 26): PeekabooBridgeClient.sendBlocking 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbeb1282691005ea01c12eb2418e90747bb97b735cc91e203dc5245bd2a70a84"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeClient.verifyAttestedResponse (cyclomatic 26): PeekabooBridgeClient.verifyAttestedResponse 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ad4021ddd8731b5bac7681a89d0fab51196a1d3a4b0944f9ad8f999b0f980c"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptAuthority.prepareSessionCreationLocked (cyclomatic 26): PeekabooBridgeOperationReceiptAuthority.prepareSessionCreationLocked has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: PeekabooBridgeRequest.operationTargetEvidence (cyclomatic 29) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceipts.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc28cbe98f082ddbbf840be214540dda446282861d5c4286d214a2caa2685d8f"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationResultSemantics.allowedSuccessStates (cyclomatic 26): PeekabooBridgeOperationResultSemantics.allowedSuccessStates has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"a207c11cfa8caa2a4789785e4e242e94d4d6a9ec37ff45b721dacadf0a5df6aa"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.validateBrowserSessionRequest (cyclomatic 26): PeekabooBridgeServer.validateBrowserSessionRequest 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserSessionHandoff.swift"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"d720fb569485f4762b4b142922c41cee0c02059a1547959e238d586d112c36b8"}},{"ruleId":"D1","level":"warning","message":{"text":"SeeCommand.validateTarget (cyclomatic 25): SeeCommand.validateTarget has cyclomatic complexity 25 (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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand.swift"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"94748f8382fe6ce68611645836e4203d5d385d7f50884d4d2495bee62fe34824"}},{"ruleId":"D1","level":"warning","message":{"text":"DaemonLaunchPolicy.startOnDemandDaemonWithStartupLockHeld (cyclomatic 25): DaemonLaunchPolicy.startOnDemandDaemonWithStartupLockHeld has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonLaunchPolicy.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45f0f46cbea8be4e05da2dd9d9f10c7ce25a6c97e871cdcad7a30407aff4806"}},{"ruleId":"D1","level":"warning","message":{"text":"HeldPointerCertificationRunner.validateHandshake (cyclomatic 25): HeldPointerCertificationRunner.validateHandshake has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/HeldPointerRunner.swift"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a3068cc4193ed22e1fbaf08288bb38c0b1dd190ee414a593ce0894c56b476b"}},{"ruleId":"D1","level":"warning","message":{"text":"CaptureArtifactIntegrityValidator.retainedRegularFile (cyclomatic 25): CaptureArtifactIntegrityValidator.retainedRegularFile has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/CaptureArtifactIntegrityValidator.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4dde7b76cb6be6017e257d3b094364676b6ca1e7a75775f4f0ea6fadbd9c283"}},{"ruleId":"D1","level":"warning","message":{"text":"DesktopObservationROIProcessor.apply (cyclomatic 25): DesktopObservationROIProcessor.apply has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationROI.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6265249a93859593528cd13ce98bf3a6d1183c3308f0318b02568cb7b41a8c3"}},{"ruleId":"D1","level":"warning","message":{"text":"DesktopObservationROIProcessor.validateApplied (cyclomatic 25): DesktopObservationROIProcessor.validateApplied has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationROI.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8347bcd1b1cc454b49e4ab26da01a286d10c5cdc24a0e714816fc955f0bcd4"}},{"ruleId":"D1","level":"warning","message":{"text":"DialogService.verifySavedFile (cyclomatic 25): DialogService.verifySavedFile has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogVerification.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"871a44f8f9ea5ce4dfaa172739a4767f016d25f56767f0b8b7a9a2779eaf4e6f"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserMCPService.executeSequenceWithOutcome (cyclomatic 25): BrowserMCPService.executeSequenceWithOutcome has cyclomatic complexity 25 (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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2b7f93c52188e02a8e86085abd8d5e5855fbc67539573a87fad31056a22bb0"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemToolFormatter.formatShellResult (cyclomatic 25): SystemToolFormatter.formatShellResult has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/SystemToolFormatter.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"59eafac04e7fcbe488c28a59f0f056e87ad5caae887cdfdc787baf204a5f48ec"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeAgentExecutionExecutable.stableExecutableSHA256 (cyclomatic 25): PeekabooBridgeAgentExecutionExecutable.stableExecutableSHA256 has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f73add7c89e3d1786960433276f341dca57e27219ac95ec97a11464954c6282"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeAgentExecutionAcknowledgementReader.stableRead (cyclomatic 25): PeekabooBridgeAgentExecutionAcknowledgementReader.stableRead has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ed160e3629cb3495ae08c6643a75cbfb7370e99c92114a9c936be7991e096b"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeClient.validateReceiptlessProjectedTarget (cyclomatic 25): PeekabooBridgeClient.validateReceiptlessProjectedTarget has cyclomatic complexity 25 (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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea47d73dfc6b0fb84562a2dd6e9263dc18f870b94e05ba45be603e4d3d3914ad"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeDesktopObservationBinding.validateApplicationEvidence (cyclomatic 25): PeekabooBridgeDesktopObservationBinding.validateApplicationEvidence has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7a044b06a815bd2f9df4147eb38f4f1ea8297bed137a8289a7d8b1b2c2f3c7"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeDesktopObservationBinding.validateScreenSemanticOwner (cyclomatic 25): PeekabooBridgeDesktopObservationBinding.validateScreenSemanticOwner has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3da9e7874545a454b1a1fe6cce0b483fb790950a8c9841d1b732bf3f1666223"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationResultSemantics.finalizeSuccessful (cyclomatic 25): PeekabooBridgeOperationResultSemantics.finalizeSuccessful has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6199c39412103ab69f770a897aef4e110938dd0868f8e1f33f10b8f1013256a"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooServices.determineDefaultModelWithConflict (cyclomatic 25): PeekabooServices.determineDefaultModelWithConflict has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BAgent.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c98415f7939f108384764961c192958647096e81282ade50bfda721c18b684f"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteDesktopObservationService.observeActionResult (cyclomatic 25): RemoteDesktopObservationService.observeActionResult has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDesktopObservationService.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"840f0ee24821a5d2eda4115f28fb6a206ba1ba48f2b0b4565fcdf5ccaa847866"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentCommand.runInternal (cyclomatic 24): AgentCommand.runInternal has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"377bc72049c56225e0c61341e6f510b18912c0f9f4a02fbded600470db5f5e0d"}},{"ruleId":"D1","level":"warning","message":{"text":"CommanderCLIBinder.requiresSilentCapture (cyclomatic 24): CommanderCLIBinder.requiresSilentCapture has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"0893797c75b49da3ee9b97a4cf895efad4f389c9a9ae4f285627a43fda7a1d95"}},{"ruleId":"D1","level":"warning","message":{"text":"ClickCommand.run (cyclomatic 24): ClickCommand.run has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"47226351e95f6966ef24394a4db51eb7e3674f7aa84ba92be0644f27f034b76e"}},{"ruleId":"D1","level":"warning","message":{"text":"RuntimeMCPToolSnapshotMutationCoordinator.completeMutation (cyclomatic 24): RuntimeMCPToolSnapshotMutationCoordinator.completeMutation has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationInvalidator.swift"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d64593beb8c16a14493d85c4cfe78ffff7ef86d29c6f7d7212dd7c2967c768"}},{"ruleId":"D1","level":"warning","message":{"text":"DaemonStatusPrinter.render (cyclomatic 24): DaemonStatusPrinter.render has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/DaemonCommand.swift"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f0ae43a6f9efea55c9bb5f5851548b91b2d6036c06c580b1a52b0cc2197f84"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveForegroundSemanticObserver.readSemanticValue (cyclomatic 24): LiveForegroundSemanticObserver.readSemanticValue has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ForegroundSemanticObserver.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37b0f673e7986ee1c5f26ee3f70a04f59caeec115b578115b73e8a177be8c0f"}},{"ruleId":"D1","level":"warning","message":{"text":"SelectorResolutionProof.applicationMismatch (cyclomatic 24): SelectorResolutionProof.applicationMismatch has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationSelectorResolutionProof.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74934ebcadf69438f75663b922f2cae773f574896fb139d6f5decfe58eee592"}},{"ruleId":"D1","level":"warning","message":{"text":"MenuService.makeMenuExtraDisplayName (cyclomatic 24): MenuService.makeMenuExtraDisplayName has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraSupport.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c311929e260c04b8ad3a74edebdc3e7429f8ae0ce6ccff0d7d581ce3b31514ff"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeService.clearCurrentField (cyclomatic 24): TypeService.clearCurrentField has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7ace68cd2f8326d7703d5e666332ffa74ceb4ecf23d8d83d6d737457a42cfd"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentToolArgumentValidator.validate (cyclomatic 24): AgentToolArgumentValidator.validate has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolArgumentValidation.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ec78ffce4cd0285c5f1c7afa2439697da6821fac2905a40e568cdc5ff52f41"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentToolMCPBridge.observationProviderValue (cyclomatic 24): AgentToolMCPBridge.observationProviderValue has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolMCPBridge\u002BProviderContext.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"1072c8a9517b4c2cd1dcc0e63c6da34bc43219a2aa187c30d423286751aeeb94"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooAgentService.runStreamingLoopBody (cyclomatic 24): PeekabooAgentService.runStreamingLoopBody has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee33f5a92afb749e46fcec0c65f0c65b243282055e06b29d266dbaba795ee46f"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolEventSummary.toMetaValue (cyclomatic 24): ToolEventSummary.toMetaValue has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/ToolEventSummary.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf14a03fa495857756da556ac11f2b9219835e5c6b04676183f261a1ef4c739a"}},{"ruleId":"D1","level":"warning","message":{"text":"DialogTool.validatedDialogResultTarget (cyclomatic 24): DialogTool.validatedDialogResultTarget has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DialogTool.swift"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"246432effd88b0c5c554cb0b147dbe41c15d1df05adf46becd0435ebbd8146cf"}},{"ruleId":"D1","level":"warning","message":{"text":"CredentialFile.updateCredentials (cyclomatic 24): CredentialFile.updateCredentials has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/CredentialFile.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"343e7d9c37c532b76ece8a10717b0b7cffbfe1692859ed67fdd0b61b85f7f4e7"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeBrowserHandoffGrantRegistry.bootstrap (cyclomatic 24): PeekabooBridgeBrowserHandoffGrantRegistry.bootstrap has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserSessionHandoff.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"12aaefe4fcd52f9b13003d58f66a9d492931c035b967c830a4b8f06c920c1ed1"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateSelectedLeafEvidence (cyclomatic 24): PeekabooBridgeOperationReceiptSemantics.validateSelectedLeafEvidence has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d26d1d49123d47f930a188b82e11a3d8d4fa28b3d29d3c3afac03270c04d37"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeRequestPreflight.validate (cyclomatic 24): PeekabooBridgeRequestPreflight.validate has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeRequestPreflight.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"098600e8f151bd39fbf85b242dd1f347190c14dded4c45217d2f82d6cb49162b"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.bridgeErrorEnvelope (cyclomatic 24): PeekabooBridgeServer.bridgeErrorEnvelope has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"420e80d35c033a8e53c73cdbe8c12cd8316366255a8a800e16a905b6ff5d9619"}},{"ruleId":"D1","level":"warning","message":{"text":"DesktopActionSequenceAccumulator.interruptedBatch (cyclomatic 24): DesktopActionSequenceAccumulator.interruptedBatch has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionSequenceAccumulator.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a0c1dc42e88e14b01ddf910fa61c39fc479b1bf85ed652a8f5ae16636d7630"}},{"ruleId":"D1","level":"warning","message":{"text":"DesktopActionSequenceAccumulator.successResolution (cyclomatic 24): DesktopActionSequenceAccumulator.successResolution has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionSequenceAccumulator.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da0c1c367d28988b0f908560471b4b5c0a27ffbd1011d2d2d90355c36e0041b"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionTitleGenerator.selectModel (cyclomatic 24): SessionTitleGenerator.selectModel has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Services/SessionTitleGenerator.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a676e343c7cc973100608a61530d7ee4927e5f67cd405b81141fa5e4063ccd"}},{"ruleId":"D1","level":"warning","message":{"text":"CommanderCLIBinder.validateDialogBeforeRuntimeResolution (cyclomatic 23): CommanderCLIBinder.validateDialogBeforeRuntimeResolution has cyclomatic complexity 23 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder\u002BDialogs.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8740e4939415410dfe90a8e992fea37abf0ff4e7d01643393abe28bc84ac590"}},{"ruleId":"D1","level":"warning","message":{"text":"CertificationPrivateArtifacts.readOwnerPrivateFile (cyclomatic 23): CertificationPrivateArtifacts.readOwnerPrivateFile has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/PrivateArtifacts.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"42dc6f1c5bc537bd76f2b0c888d57a62329645bfd3462336226f77ef3824969c"}},{"ruleId":"D1","level":"warning","message":{"text":"DesktopObservationService.validateCaptureReceipt (cyclomatic 23): DesktopObservationService.validateCaptureReceipt has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService\u002BCapture.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"55559560d255012f45b1703d1802b49ebf9497fdec44dea0bf56daddf6237bf6"}},{"ruleId":"D1","level":"warning","message":{"text":"ApplicationService.performApplicationVisibilityMutation (cyclomatic 23): ApplicationService.performApplicationVisibilityMutation 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BActionOutcomes.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"6220a58d3a1eef15faecd53148fd17343d62e3780b4464f60aea3fc7239ff6f0"}},{"ruleId":"D1","level":"warning","message":{"text":"DetachedAXWindowEnumerationWorker.enumerate (cyclomatic 23): DetachedAXWindowEnumerationWorker.enumerate 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/DetachedAXWindowEnumerationWorker.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8ea515a69a2c65931a7048a26b4ae32d9dc4f4c4de264bc8fbd1090ff9e383"}},{"ruleId":"D1","level":"warning","message":{"text":"ActionInputDriver.setValue (cyclomatic 23): ActionInputDriver.setValue 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"07542d28bcc92f7097c1bf8a1974efcde4a1ed9cb1427c9f690adc2ee68934cd"}},{"ruleId":"D1","level":"warning","message":{"text":"DetachedAXObservationWorker.attachingFocusedTextSelection (cyclomatic 23): DetachedAXObservationWorker.attachingFocusedTextSelection has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker\u002BTextSelection.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3344b4e059474e75e361aea8a487323693d377caa2495ba4db2edb622013035"}},{"ruleId":"D1","level":"warning","message":{"text":"DialogService.targetedDialogCandidates (cyclomatic 23): DialogService.targetedDialogCandidates 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BPreparedActions.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0dee375725a877aaa5c8aeb9f42a589b345726be192b24aa1917a9770cae8f"}},{"ruleId":"D1","level":"warning","message":{"text":"ElementDetectionResultBuilder.makeResult (cyclomatic 23): ElementDetectionResultBuilder.makeResult has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionResultBuilder.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd752d9a6e7680314d48351a9010c0b5793e0af4098679d05c876783214d175b"}},{"ruleId":"D1","level":"warning","message":{"text":"ForegroundModifierClickExecutor.restoreFocusIfOwned (cyclomatic 23): ForegroundModifierClickExecutor.restoreFocusIfOwned 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ForegroundModifierClickExecutor.swift"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cebff460365b23c733a600102a0d3cf673d6470d7dddf7d197c7d4f6b39f124"}},{"ruleId":"D1","level":"warning","message":{"text":"MenuService.makeMenuExtra (cyclomatic 23): MenuService.makeMenuExtra 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraWindows.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3f4d5c21e0b6005a286e353385076afae5df4dbc6d38d7258571a43c88dc63"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeService.performTypeActions (cyclomatic 23): TypeService.performTypeActions has cyclomatic complexity 23 (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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"1917af543f306c6ab1cc8115218fb9b88229649bec1db3b8c43b899094c5dfe3"}},{"ruleId":"D1","level":"warning","message":{"text":"ElementValueMutationSemantics.exactDecimalInteger (cyclomatic 23): ElementValueMutationSemantics.exactDecimalInteger 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementValueVerification.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf45d52748aefdbc9e71d4fa17316568bdb4ea8a804a7818225d1ad28f8e3c30"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserMCPSessionManager.connectUnlockedWithOutcome (cyclomatic 23): BrowserMCPSessionManager.connectUnlockedWithOutcome 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09e5eb93d568ce4b586b39570a3ffd90146f0dc8262ecec6c42faf94857812c"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalyzeTool.languageModel (cyclomatic 23): AnalyzeTool.languageModel 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AnalyzeTool.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a358fbbd441c389bef04881055721d68462745f5656b9d055a6dfbd9c87885a"}},{"ruleId":"D1","level":"warning","message":{"text":"DragRequest.init (cyclomatic 23): DragRequest.init 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool\u002BTypes.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03b11a2f9eb612d6f6df130050725468126f4bcf6a9dcee909047dcda2b82b6"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeLiveAgentExecutionRunner.runDetached (cyclomatic 23): PeekabooBridgeLiveAgentExecutionRunner.runDetached 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionRunner.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"5490c9c4cd972dcf7cef2e649c58d8faa6bbe0254d9e8cf7e6a83d1f483ca92b"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeClient.exchange (cyclomatic 23): PeekabooBridgeClient.exchange 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5da7c2405286b059061c1f2ce3e5c62acdf62326f3a632af2d6c823fd31699"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationSessionRefusal.validate (cyclomatic 23): PeekabooBridgeOperationSessionRefusal.validate has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationAttestationModels.swift"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d431b3534e577f32a22c0a61f88b616c9424f8ecbdb1806cf1f943c2575e260"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateReceiptCarriage (cyclomatic 23): PeekabooBridgeOperationReceiptSemantics.validateReceiptCarriage 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"541e42442871591c2fab06da98b63805bbc9edb5e35df9ca564594586cdbefdd"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateTypedResponseSemantics (cyclomatic 23): PeekabooBridgeOperationReceiptSemantics.validateTypedResponseSemantics has cyclomatic complexity 23 (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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b6526a81a3ccdb68e7eafa0a8e1ab68f1fb9aeb1ef4e6a40bc4bf2563b172d"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooServices.refreshAgentService (cyclomatic 23): PeekabooServices.refreshAgentService has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BAgent.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"143635ebc4ee5e9c075d652f62cda7a6bdf2f9bc7cce5d9056a3bcdffb7a5440"}},{"ruleId":"D1","level":"warning","message":{"text":"PasteCommand.performClipboardPasteTransaction (cyclomatic 22): PasteCommand.performClipboardPasteTransaction has cyclomatic complexity 22 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"117c6ae35965d07c8346e496459f272bd4cc993dfa48796394d78ae31ce3acae"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserCommand.arguments (cyclomatic 22): BrowserCommand.arguments has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserCommand.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd79d97d67620c855f28b1cb47d4cb50b2d96388d3ac357067bd07080e936de"}},{"ruleId":"D1","level":"warning","message":{"text":"DialogCommand.execute (cyclomatic 22): DialogCommand.execute has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/DialogCommand.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5528053f733104cabd80dfa9fe2da1480bd6e2f96dc5fa4cc69fb55a24b807d"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeCapabilityPolicy.firstUnmetObservationRequirement (cyclomatic 22): BridgeCapabilityPolicy.firstUnmetObservationRequirement 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f62002f69a0ed5631fbb7e67bc0a8943e57083799935303d603df8ec719d74"}},{"ruleId":"D1","level":"warning","message":{"text":"CertificationCodeIdentityPlan.validate (cyclomatic 22): CertificationCodeIdentityPlan.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":"Apps/CLI/Sources/PeekabooCertificationController/CodeIdentityRunner.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ecd5d837b92339dd8c9786195746a02ff80e1ab534bbef8df0c909f5ebe1422"}},{"ruleId":"D1","level":"warning","message":{"text":"UIAutomationActionResultSequenceAccumulator.recordTargetMetadata (cyclomatic 22): UIAutomationActionResultSequenceAccumulator.recordTargetMetadata has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/UIAutomationActionResultSequenceAccumulator.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b294bf24b1c958b181575acb1af53e952074240e0b149cd5a11e5213709827"}},{"ruleId":"D1","level":"warning","message":{"text":"StableRegularFileReader.readStableRegularFile (cyclomatic 22): StableRegularFileReader.readStableRegularFile 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/StableRegularFileReader.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1984861c30c132a91479e2606ba8bad23eadef4856cea5fcbbdd064bd8326106"}},{"ruleId":"D1","level":"warning","message":{"text":"ClickService.validateSnapshotTarget (cyclomatic 22): ClickService.validateSnapshotTarget has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dcd510f8456ac0e4fc11538230421a36f495c6e56e97ed8016ace5738fc4d04"}},{"ruleId":"D1","level":"warning","message":{"text":"DialogService.findDialogElement (cyclomatic 22): DialogService.findDialogElement 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BResolution.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b344d92b9815eb64ff71c082792c55f49ddb47dac71e04fff3867abbb5970261"}},{"ruleId":"D1","level":"warning","message":{"text":"ExactWindowDragRequest.validate (cyclomatic 22): ExactWindowDragRequest.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ExactWindowDrag.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1fabd7d1fe2c09003d8f91e69b3d817df4f3cbfee73a11e565e34e42b4ec7f8"}},{"ruleId":"D1","level":"warning","message":{"text":"BoundedBackgroundWindowAX.setGeometryValue (cyclomatic 22): BoundedBackgroundWindowAX.setGeometryValue 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"9310f5461a0c38b1edc3aae2a6948ac7843a80a16657e58e9d9bc5239d6c2591"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserToolCapabilitySession.resolvingElementReferences (cyclomatic 22): BrowserToolCapabilitySession.resolvingElementReferences 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserToolCapabilitySession.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb902ecd933e384285b2b64c54e56a45ae5fb3ecaf1c862e550f8cdf1f1f0531"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPToolContext.execute (cyclomatic 22): MCPToolContext.execute has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f7d8077481d60e8a46c8ae17d22bf2e4815463a756016b701a746d0ebb3f72"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserTool.execute (cyclomatic 22): BrowserTool.execute has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdbc38fc05ab4fd5374de823307de2fff6fb644ddc869f5806dba952da8cdf6"}},{"ruleId":"D1","level":"warning","message":{"text":"VerifyStateTool.resolveWindow (cyclomatic 22): VerifyStateTool.resolveWindow 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"047f94ca60836c57ac2b1f8549bdda7e42bf5937c7b4fe6218af425a50703f52"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowToolFormatter.formatCompactSummary (cyclomatic 22): WindowToolFormatter.formatCompactSummary 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b787f8abebab31ca80157a14d77f7bba06b5d62f1660c9bc1b716267441de82"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeAgentExecutionPaths.provisionOperationReceiptDirectoryBeforeRelease (cyclomatic 22): PeekabooBridgeAgentExecutionPaths.provisionOperationReceiptDirectoryBeforeRelease 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"4004285814e692b4f6960a345cc101b61f916cce3baf3079605962aeb948a8b4"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeCodeSignatureIdentity.authenticatedCurrentProcessSigningInformation (cyclomatic 22): PeekabooBridgeCodeSignatureIdentity.authenticatedCurrentProcessSigningInformation 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53d0a2a0818bdc8e8a90202108ad2cfa0bd03b969c2f4189e040e271ddeca83"}},{"ruleId":"D1","level":"warning","message":{"text":"MenuBarPopoverDetector.candidates (cyclomatic 21): MenuBarPopoverDetector.candidates has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverDetector.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c22459f0141738c825cf4e39a4f35a464e2cac105fc3a108b69dfea0cb5f9d"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentCommand.supportedParsedModel (cyclomatic 21): AgentCommand.supportedParsedModel has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BModelParsing.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4e06e1f1e6318b2f506ce94bfa3d394ae4d22ed29446f47ceb0d5605089149"}},{"ruleId":"D1","level":"warning","message":{"text":"BridgeReceiptVerifier.readPrivateBundle (cyclomatic 21): BridgeReceiptVerifier.readPrivateBundle has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BReceipt.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fadbd569601907322cd273cf27b78f159a79549268cca34aadd80831b80d4a3"}},{"ruleId":"D1","level":"warning","message":{"text":"DragCommand.validateInputs (cyclomatic 21): DragCommand.validateInputs has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff9c76d16b273acfcd3701eff8123b9cdd085a87c12e109158d8a74ff6dcc29"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveCertificationBridge.execute (cyclomatic 21): LiveCertificationBridge.execute has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/LiveCertificationBridge.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1dde9ec67fc6915969c9f130375b2206e8dcada36083e8e7b96a50114a64aa9"}},{"ruleId":"D1","level":"warning","message":{"text":"WatchCaptureSession.captureFrames (cyclomatic 21): WatchCaptureSession.captureFrames has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureSession\u002BLoop.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbb0af9318889a47d92b7a9849e29d503ce2cc7eb9868c8c88bce6124f55317"}},{"ruleId":"D1","level":"warning","message":{"text":"DesktopObservationROIProcessor.exactReceiptMatches (cyclomatic 21): DesktopObservationROIProcessor.exactReceiptMatches has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationROI.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d0951958415408f80628b2d933b51e2313cafe68eb145c442c08469c24019b"}},{"ruleId":"D1","level":"warning","message":{"text":"SelectorResolutionProof.windowMismatch (cyclomatic 21): SelectorResolutionProof.windowMismatch has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/WindowSelectorResolutionProof.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b867a4aa256eddf4fecd02bb892240a97c945b85000604415ba3f518efd136"}},{"ruleId":"D1","level":"warning","message":{"text":"ActionInputDriver.observeMutation (cyclomatic 21): ActionInputDriver.observeMutation has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94e594f596a26d2261cf7b4bbddbb50e05312b858d05f0764f8acde923fad78"}},{"ruleId":"D1","level":"warning","message":{"text":"DialogService.navigateToDirectory (cyclomatic 21): DialogService.navigateToDirectory has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogNavigation.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"06229470eb8955eba434d9e91461cad42b7255c81f0024bcbeb6cd3f26be2e8c"}},{"ruleId":"D1","level":"warning","message":{"text":"DialogService.executeBackgroundDialogInput (cyclomatic 21): DialogService.executeBackgroundDialogInput has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"24dbfecc248cc8345d36270524da15bf0917be0fe687341745661e10634eb8ee"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeService.executePixelFocusType (cyclomatic 21): TypeService.executePixelFocusType has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"720035bab91232e9b8e28ff363025bfb6a1d8908a4030ee7b02a460d4c3aa85d"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentToolMCPBridge.convert (cyclomatic 21): AgentToolMCPBridge.convert has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolMCPBridge.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"07453981e2c1a71aa23d8f6ed99dc3cce10c46b064340c47ce5f8bc5814598c4"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentToolMCPBridge.providerContextMessages (cyclomatic 21): AgentToolMCPBridge.providerContextMessages has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolMCPBridge\u002BProviderContext.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb96aa62edd8f43e9bcc7a91268779e70100776ee5f21e55496f38b9ae9155b1"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooAgentService.collectStreamOutput (cyclomatic 21): PeekabooAgentService.collectStreamOutput has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreamProcessing.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"659ac343e4a24f6669d2f8666bf31df0ba2537bc6e7f4070896b1d40a811e9e8"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPToolSnapshotMutationPolicy.explicitEffect (cyclomatic 21): MCPToolSnapshotMutationPolicy.explicitEffect has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolSnapshotMutation.swift"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"52620f1c2b8c48f26700f005943b975aede3724ab8707299596d78a87d60e114"}},{"ruleId":"D1","level":"warning","message":{"text":"ClickTool.performClick (cyclomatic 21): ClickTool.performClick has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"323088db7740d41dfd70c9830017f2e59c9c1676c9cadffdeaa13d48a579a59e"}},{"ruleId":"D1","level":"warning","message":{"text":"DragTool.execute (cyclomatic 21): DragTool.execute has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cef16eae62f1c9c44346e9938f276ad4f36fc80b567bf741a7732c5920c5f76"}},{"ruleId":"D1","level":"warning","message":{"text":"PasteTool.performClipboardPasteTransaction (cyclomatic 21): PasteTool.performClipboardPasteTransaction has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"b789e18213b2abb70a424a2a0b9db40232707fc1e8919db8532ebe280904f23d"}},{"ruleId":"D1","level":"warning","message":{"text":"AIProviderParser.determineDefaultModel (cyclomatic 21): AIProviderParser.determineDefaultModel has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Utils/AIProviderParser.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b49253c9e6b6807816474d08ebe1a382630ea911675a7ba261781dc1d20bfd"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooAIService.resolveAvailableModels (cyclomatic 21): PeekabooAIService.resolveAvailableModels has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Services/AI/PeekabooAIService.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cbbd4b1f7bda04d8799b71edecd9494d1a7394a2fcdd60e63aa7b382ba0f98a"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeCertificationCrashInventoryPairPayload.validate (cyclomatic 21): PeekabooBridgeCertificationCrashInventoryPairPayload.validate has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationCrashInventoryPayload.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"3832289069dcaeb924374437dd36c771b8fcebb5881ecd0c74877bae09b9e888"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeClient.handshakeAuthentication (cyclomatic 21): PeekabooBridgeClient.handshakeAuthentication has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"2719a58af738356fcc99cb2f17e49a3b5c06da90c144e20c36c7eec8e3a4bc04"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateInvalidRequestCarriageRefusal (cyclomatic 21): PeekabooBridgeOperationReceiptSemantics.validateInvalidRequestCarriageRefusal has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60c37412d55fd25735518764a2cba4cc783c7bcbd7f982ee5a22597e882421a"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptAuthority.commitSessionCreation (cyclomatic 21): PeekabooBridgeOperationReceiptAuthority.commitSessionCreation has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: PeekabooBridgeRequest.operationTargetEvidence (cyclomatic 29) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceipts.swift"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb3b146a760fa5b93fb45c29906ce45d2653bae0441f3409c7681af7bf070d0"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.handleHeldPointerRequest (cyclomatic 21): PeekabooBridgeServer.handleHeldPointerRequest has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHeldPointer.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda8573f2a84de48ed29cda1203ef583ca38a07dbd7325568010f57835572d6f"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.handleApplicationRequest (cyclomatic 21): PeekabooBridgeServer.handleApplicationRequest has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b45e04e605c1b519983444400b683967a624c2dd82e3cff65dcb18af65f104"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.handleDialogRequest (cyclomatic 21): PeekabooBridgeServer.handleDialogRequest has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a9ae604bc61b61676e33e65e6eb6417ee324dab30c05826c181150645caa8f"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeWindowContextBinding.applicationScopedFallbackRefines (cyclomatic 21): PeekabooBridgeWindowContextBinding.applicationScopedFallbackRefines has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeWindowContextBinding.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cddcb5cf00b1d51a54f8da9efafcc19127a963a4dc9d258a36e39c8f1fa8322"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooServices.firstAvailableModel (cyclomatic 21): PeekabooServices.firstAvailableModel has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BAgent.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b580a378a17ce5d81475ef8b9880b1e2f7f41bfcd285c81051f4202ee6de40"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeCommand.validate (cyclomatic 20): TypeCommand.validate has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/TypeCommand.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b47c06916f4588cf85553a652558bdcb0cc8468964a467bfb806709a4927c6"}},{"ruleId":"D1","level":"warning","message":{"text":"MenuBarActionCommand.resolveClickTarget (cyclomatic 20): MenuBarActionCommand.resolveClickTarget has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/MenuBarCommand.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"a706e900736e824a990fdef277e63de9f3071c2029a06483200b5d3637fc4235"}},{"ruleId":"D1","level":"warning","message":{"text":"RuntimeHostResolver.resolveExplicitAutomaticClassicCapture (cyclomatic 20): RuntimeHostResolver.resolveExplicitAutomaticClassicCapture has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BScreenCaptureKitOwner.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e8bfd91e6b061a7c9df89ee36d3c2db2bbbf40734d55bfc206cd398427ef0b"}},{"ruleId":"D1","level":"warning","message":{"text":"FocusCommandUtilities.swift.ensureFocused (cyclomatic 20): FocusCommandUtilities.swift.ensureFocused has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/FocusCommandUtilities.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"18959de995706cdd642a8463712ee61111f653d1233e6c7983090c0d1b6bd6ba"}},{"ruleId":"D1","level":"warning","message":{"text":"CaptureArtifactIntegrityValidator.validatePNG (cyclomatic 20): CaptureArtifactIntegrityValidator.validatePNG has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/CaptureArtifactIntegrityValidator.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2280bdec62cd699658bb7b8a628ab478f307d3da840c388ebd105ccb8206a6"}},{"ruleId":"D1","level":"warning","message":{"text":"DetectionTruncationInfo.remediationMessage (cyclomatic 20): DetectionTruncationInfo.remediationMessage 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationRequestModels.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd58373a0c37a162edabe3a05399496472cfaa93a71eea412f4db0658e112c7"}},{"ruleId":"D1","level":"warning","message":{"text":"InMemorySnapshotManager.invalidateImplicitLatestSnapshot (cyclomatic 20): InMemorySnapshotManager.invalidateImplicitLatestSnapshot has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BLifecycle.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"8906aded3510dd4b70865c1d66c1bc81ef293fb4ff12df28def15834c07d1866"}},{"ruleId":"D1","level":"warning","message":{"text":"BackgroundInputDriver.click (cyclomatic 20): BackgroundInputDriver.click 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ea22bce9c7a9fd20f55a297b362d41e309cb9f4cc586927c6ecefb8b44374f"}},{"ruleId":"D1","level":"warning","message":{"text":"BackgroundWindowActivationDriver.prepare (cyclomatic 20): BackgroundWindowActivationDriver.prepare has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundWindowActivationDriver.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"364819bf82c7979fb7b49412dc76c32395603c773495bb328a21deebda3ab860"}},{"ruleId":"D1","level":"warning","message":{"text":"DialogService.resolveButton (cyclomatic 20): DialogService.resolveButton 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BButtonActions.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8e0d382998209758265584458398627f9d1ed645aaf3d2e515a3c30c546228"}},{"ruleId":"D1","level":"warning","message":{"text":"DialogService.findDialogViaApplicationService (cyclomatic 20): DialogService.findDialogViaApplicationService has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BVisibility.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee1ca53c441ffea161e5cb9cac384775534f46a6404bee519878ecc6f8d259e"}},{"ruleId":"D1","level":"warning","message":{"text":"ExactWindowHeldPointerLifecycle.runHold (cyclomatic 20): ExactWindowHeldPointerLifecycle.runHold has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ExactWindowHeldPointerLifecycle.swift"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"651e2fd24b78c7c3c932641f79e4ed8634e103635c6d1c3eb3ad4e28fde3eb86"}},{"ruleId":"D1","level":"warning","message":{"text":"TextInputRoute.resolve (cyclomatic 20): TextInputRoute.resolve has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TextInputRoute.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"412da749a73dcacf1d7d6aa0728ffc5a4173b96ed2c2adcf5e54f201327dacb1"}},{"ruleId":"D1","level":"warning","message":{"text":"UIAutomationService.requireExactWindowKeyboardFocus (cyclomatic 20): UIAutomationService.requireExactWindowKeyboardFocus has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementLookup.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"e530a49df992a17cde64cdd0a45819ef9dbdee25d7c45c08d5977aebc2441d6f"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowRoutedPointerDriver.scrollTrackingDispatch (cyclomatic 20): WindowRoutedPointerDriver.scrollTrackingDispatch has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowRoutedPointerDriver.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"4608604b46d26f0417be8d05a96f1e4357f11c7342e3cca71ee0e26627329883"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentToolArgumentValidator.validate (cyclomatic 20): AgentToolArgumentValidator.validate has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolArgumentValidation.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"84fd5acbfd505514b95efeabb0197616cad83d55c89ba52ef02c5dd6dd029be4"}},{"ruleId":"D1","level":"warning","message":{"text":"AppToolActions.handleQuitAll (cyclomatic 20): AppToolActions.handleQuitAll has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b70ba1a5ff192119d1053a3086a4a007aea6ed06808906b8b9ee29effb94a9"}},{"ruleId":"D1","level":"warning","message":{"text":"VerifyStateRequest.init (cyclomatic 20): VerifyStateRequest.init 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BTypes.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb6e4501c066119cfc9607d04c6e01825743a2cc64f860a48188e548adb4733"}},{"ruleId":"D1","level":"warning","message":{"text":"VerifyStateTool.sample (cyclomatic 20): VerifyStateTool.sample has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f6b5611db124cbd845aa0b5d61be376a4a4977b85d6744d77cb4d951e54f88"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooAIService.parseHostedProviderEntry (cyclomatic 20): PeekabooAIService.parseHostedProviderEntry has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Services/AI/PeekabooAIService.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ab77def448a343c676d643121c1be236c023aed99df29674165ae54b49b9a4"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeBrowserHandoffGrantRegistry.endSession (cyclomatic 20): PeekabooBridgeBrowserHandoffGrantRegistry.endSession has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserSessionHandoff.swift"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4db8a0af5621f4b3db1f53ed5d67a7caef7c1fafa10d452d44ea6b4b01ce35"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateFailureResponseSemantics (cyclomatic 20): PeekabooBridgeOperationReceiptSemantics.validateFailureResponseSemantics has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a1ceb440996714cce4f346d5418b2d76c078fb3c3f55bb853a3026b904e0c1"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateDialogResult (cyclomatic 20): PeekabooBridgeOperationReceiptSemantics.validateDialogResult has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd1ea147a56e758af2c79cdcecc95a342996f2c896718c3c97d014497a31c10"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptAuthority.retireDeadClientSessions (cyclomatic 20): PeekabooBridgeOperationReceiptAuthority.retireDeadClientSessions has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: PeekabooBridgeRequest.operationTargetEvidence (cyclomatic 29) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceipts.swift"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a12b1ff5a0becdbb80e2b533f27bdd1e75248cbee0ffce8695c9031c5a6af5"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeSelectorResolutionBinding.observationMismatch (cyclomatic 20): PeekabooBridgeSelectorResolutionBinding.observationMismatch has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeSelectorResolutionBinding.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"6896237a2823d1e0841646715ed81e6abffcf90dc64d54dfc4fb7447bcd49910"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.performAttestedOperation (cyclomatic 20): PeekabooBridgeServer.performAttestedOperation has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BOperationReceipts.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8523df82a5d4a5a16a18d833f38e01259131161950861d7dfe9cabac51fcc8"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.handleMenuRequest (cyclomatic 20): PeekabooBridgeServer.handleMenuRequest has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e0a9f171ea3fb94dff81d8f168d3fc92616c9a741a2dfd6e957ce810600abd"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.handleSnapshotRequest (cyclomatic 20): PeekabooBridgeServer.handleSnapshotRequest has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18699822a1f78317c12a7c4f0c5c9ee2fc45d621a1221f30fe25cf25151fc9a"}},{"ruleId":"D1","level":"warning","message":{"text":"SeeCommand.outputTextResults (cyclomatic 19): SeeCommand.outputTextResults has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BOutput.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f0c70d8891f6692e905dba90d4d7917676b2cd2c0658abfd9c7da12d7075a1"}},{"ruleId":"D1","level":"warning","message":{"text":"CommanderCLIBinder.applyRuntimeTransportOptions (cyclomatic 19): CommanderCLIBinder.applyRuntimeTransportOptions has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e08a5fd15422ac175226e8760926861624992ffa7ecb0764b6a6ac6df61b2c0"}},{"ruleId":"D1","level":"warning","message":{"text":"CommanderCLIBinder.prefersLocalRuntime (cyclomatic 19): CommanderCLIBinder.prefersLocalRuntime has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea67d779fbcb3383a1ab2dd37f70b077059ec7983b654c93fa6a640a1e48c95"}},{"ruleId":"D1","level":"warning","message":{"text":"PasteCommand.run (cyclomatic 19): PasteCommand.run has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"70dee63a66c316b970edb8d9340fd196b6c065ddc599ea393d50f7d4456230f5"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractionCoordinateResolver.resolveBackgroundSnapshotCoordinates (cyclomatic 19): InteractionCoordinateResolver.resolveBackgroundSnapshotCoordinates has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionCoordinateResolver.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"83bb21556b991b3e501d3ba35a1f27207338f5c4a46dd95cb41ac32c72c317d2"}},{"ruleId":"D1","level":"warning","message":{"text":"RuntimeHostResolver.evaluateRemoteCandidate (cyclomatic 19): RuntimeHostResolver.evaluateRemoteCandidate has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BResolution.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3c8d8d8785f70c7b057a1726b18e1456945e7675aa867a6bbf50763ca2c679"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandErrorHandling.swift.errorCode (cyclomatic 19): CommandErrorHandling.swift.errorCode has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandErrorHandling.swift"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"231cc25359de12b814d5c28d02e02905ef77dcd434db4d1fa8bc71cd51e9140a"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowCommand\u002BGeometryVerification.swift.evaluateWindowGeometryOutcome (cyclomatic 19): WindowCommand\u002BGeometryVerification.swift.evaluateWindowGeometryOutcome has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand\u002BGeometryVerification.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24d99190b7c81e777c5839965d68bb83813fff02257b3bc52511d7fd8c74f80"}},{"ruleId":"D1","level":"warning","message":{"text":"ScreenCaptureKitProcessCapabilityRegistry.removeStaleMarkers (cyclomatic 19): ScreenCaptureKitProcessCapabilityRegistry.removeStaleMarkers has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitProcessCapabilityRegistry.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"d266ee989b40d3701d1badf00de68019ca399632a2cc64c2387d984d0755e311"}},{"ruleId":"D1","level":"warning","message":{"text":"WatchFrameDiffer.extractBoundingBoxes (cyclomatic 19): WatchFrameDiffer.extractBoundingBoxes has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchFrameDiffer.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5176069e49ca3335b7656a5463c1561a036e6ff899d78aa51bcae2852170bd9"}},{"ruleId":"D1","level":"warning","message":{"text":"ApplicationService.prepareApplicationLaunch (cyclomatic 19): ApplicationService.prepareApplicationLaunch has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BLifecycle.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b25c8eebad7e0b7861d9674627f8d227225327f4fa546b9f98ec1eb1d58aba8"}},{"ruleId":"D1","level":"warning","message":{"text":"ApplicationService.performApplicationRelaunchWithOutcomeOwnedLane (cyclomatic 19): ApplicationService.performApplicationRelaunchWithOutcomeOwnedLane has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BLifecycle.swift"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e19c748ce731e82b17bf4b7f31f3f90dfaf03a0d8bb2e265d85e15d0dcd750d"}},{"ruleId":"D1","level":"warning","message":{"text":"DarwinProcessLoopbackListenerInspector.inspect (cyclomatic 19): DarwinProcessLoopbackListenerInspector.inspect has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/DarwinProcessLoopbackListenerInspector.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"832176b92d21ccdc202a6f594d3d465846e62f9b68b41ebb7980c68bff436262"}},{"ruleId":"D1","level":"warning","message":{"text":"ClickService.performActionClick (cyclomatic 19): ClickService.performActionClick has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"f619ebf67dd270246d9f41f1ab2a6c0330ba19bcaf191f7e5adeb90cbc4cbfef"}},{"ruleId":"D1","level":"warning","message":{"text":"ClickService.resolveTargetElement (cyclomatic 19): ClickService.resolveTargetElement has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26a5119db14317c6b1f51e2e35f83aa479144548bee3a1770f377bf9792cb2e"}},{"ruleId":"D1","level":"warning","message":{"text":"ElementDetectionService.inspectReadOnlyElements (cyclomatic 19): ElementDetectionService.inspectReadOnlyElements has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionService.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80d0a9924d6ec7c335735c7d713693d5060ef8f68deb9c57e8aa5a080e4a2d6"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserMCPPageRoutingContract.capabilityContract (cyclomatic 19): BrowserMCPPageRoutingContract.capabilityContract has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPPageRoutingContract.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"554c6eb0f108a381d5630551879addfeed68ee4462f1577870410379535c6069"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserMCPService.transferConnection (cyclomatic 19): BrowserMCPService.transferConnection has cyclomatic complexity 19 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file\u0027s highest cyclomatic complexity: BrowserMCPConnectionError.errorDescription (cyclomatic 21) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"799a475fd87be390314ad4b26ee429f7d621252cba0df1c2dceb933627543b7d"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPToolContext.completeMutation (cyclomatic 19): MCPToolContext.completeMutation has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"45eaf3bf7b282b148d409eab80d19f695763fe1ecb7720ef4b777eb47fbadd69"}},{"ruleId":"D1","level":"warning","message":{"text":"VerifyStateTool.resolveExactWindowFromCompleteInventory (cyclomatic 19): VerifyStateTool.resolveExactWindowFromCompleteInventory has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36474a5f181309d402bfedc0f231b1a094fe29930f55f35499cf3a76ffc9866"}},{"ruleId":"D1","level":"warning","message":{"text":"VisionToolFormatter.extractElementSummary (cyclomatic 19): VisionToolFormatter.extractElementSummary has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/VisionToolFormatter.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"5605ad8d6348a7ac63113407681419841de582a327bba0233cb3993f1eedb5bd"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeCertificationProducerTransport.authenticateProducer (cyclomatic 19): PeekabooBridgeCertificationProducerTransport.authenticateProducer has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerTransport.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"042d51f5314b82400d80b65446de0d05d2c7f6f8adf3c25efab15e556247691e"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeClient.installHandshakeCandidate (cyclomatic 19): PeekabooBridgeClient.installHandshakeCandidate has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"5489e5497925cc8a346ccefbb271584fc56fe5ba043716d8a624a4b9e6695f6a"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeClient.receiptBoundBrowserRequest (cyclomatic 19): PeekabooBridgeClient.receiptBoundBrowserRequest has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BBrowser.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"a708b1a2f586499257a1c52e1c0e4df43f3a38715bed5d0bc9ed61be03353a50"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateResponseOutcomeConsistency (cyclomatic 19): PeekabooBridgeOperationReceiptSemantics.validateResponseOutcomeConsistency has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":1411}}}],"partialFingerprints":{"codehealthFindingId/v1":"55321176891af82869b77abd8363715b7c028973713e537cb5d6258d906655e5"}},{"ruleId":"D1","level":"warning","message":{"text":"PressCommand.run (cyclomatic 18): PressCommand.run has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PressCommand.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4033fb6e672d0cc7856f8df2229a1791ed71b2b809d65fff0d77c8e4232e763"}},{"ruleId":"D1","level":"warning","message":{"text":"MenuBarActionCommand.clickMenuBarItem (cyclomatic 18): MenuBarActionCommand.clickMenuBarItem 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":"Apps/CLI/Sources/PeekabooCLI/Commands/System/MenuBarCommand.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c6f80f8fd0180ac5595552a3c321fdd114238868cf4e660965bb13c21051b2"}},{"ruleId":"D1","level":"warning","message":{"text":"ListSubcommand.run (cyclomatic 18): ListSubcommand.run has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/SpaceCommand\u002BList.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef7e5743a10a18bdec63d24ed67b6f70dced7c13ccfb7bb1df0c727d4710212"}},{"ruleId":"D1","level":"warning","message":{"text":"DaemonLaunchPolicy.machOUUID (cyclomatic 18): DaemonLaunchPolicy.machOUUID 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonLaunchPolicy.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"1794eaf24798d13f12ccc7247f7111ec7ace7d0b1bf3c44c0be02e3e88ab7975"}},{"ruleId":"D1","level":"warning","message":{"text":"CertificationCodeIdentityRunner.validateImmutableCopy (cyclomatic 18): CertificationCodeIdentityRunner.validateImmutableCopy 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":"Apps/CLI/Sources/PeekabooCertificationController/CodeIdentityRunner.swift"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"690cb8010ef53302750ef3895720eb718176afab57e3dd473002e009e4b3cabc"}},{"ruleId":"D1","level":"warning","message":{"text":"SpaceWindowMutationDispatcher.moveWindow (cyclomatic 18): SpaceWindowMutationDispatcher.moveWindow 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceWindowMutationDispatcher.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7842b9d6d1dc54baff62493c0fbb5a153cb717b0057b3d07f875585c941d9dc7"}},{"ruleId":"D1","level":"warning","message":{"text":"ScreenCaptureWindowPlanExecutor.execute (cyclomatic 18): ScreenCaptureWindowPlanExecutor.execute 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitWindowPlanCache.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c63296392da4e7d411136df2cac96837b12c744b243802cca634ec5c88904b"}},{"ruleId":"D1","level":"warning","message":{"text":"CaptureCoordinateMapper.globalPoint (cyclomatic 18): CaptureCoordinateMapper.globalPoint has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/CaptureCoordinateMapper.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"efe9a3d451da78d21b09745462a6882aa89dbfcc3a691f2b42be22ba4e595fb4"}},{"ruleId":"D1","level":"warning","message":{"text":"ApplicationService.readMutationInventory (cyclomatic 18): ApplicationService.readMutationInventory 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BDiscovery.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9e032490033ec94a75a6f340ad1f48cdf8f8e1d18ab337e21194c644e048d1"}},{"ruleId":"D1","level":"warning","message":{"text":"ApplicationService.requestVerifiedActivation (cyclomatic 18): ApplicationService.requestVerifiedActivation has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BLifecycle.swift"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d2777ea31228ef1b6d00d30477aa995eb6c0aa49917379e135b8e051a47489"}},{"ruleId":"D1","level":"warning","message":{"text":"ElementDetectionWindowResolver.stableExactWindowOwner (cyclomatic 18): ElementDetectionWindowResolver.stableExactWindowOwner 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionWindowResolver.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0603a5e704706efa4b769cd0cd2d16328802bd429817db831c2cea57dc3bdc"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowRoutedPointerDriver.click (cyclomatic 18): WindowRoutedPointerDriver.click has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowRoutedPointerDriver.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"7770742fa85bece6a5b35bb47f479568ec981a2d2ae609035cdf5c70933027c3"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentExecutionTraceBuilder.mutationDispatchState (cyclomatic 18): AgentExecutionTraceBuilder.mutationDispatchState 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentExecutionTrace.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"082d01ed41c7fbf5a13191c3f1fd29766b41c223c8006bdbe882742498f37708"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentExecutionTraceSanitizer.sanitizeArgument (cyclomatic 18): AgentExecutionTraceSanitizer.sanitizeArgument 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentExecutionTrace.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"831b433baeef7102733a4d486e7623f2575cfab420015933221ee3bb6a6f7599"}},{"ruleId":"D1","level":"warning","message":{"text":"ReasoningReplayTarget.init (cyclomatic 18): ReasoningReplayTarget.init 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":1487}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8fa09e349c80550a37c7e3269131cf39f079050ba7a23446ff3014e45f46a6"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserMCPChannelEndpointResolver.parseActivePort (cyclomatic 18): BrowserMCPChannelEndpointResolver.parseActivePort 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPChannelEndpointResolver.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75c9e7a55b971dc214ea7673b98caba27b2916248ce4f88136330e3a881cd72"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserMCPSessionManager.executeSequenceUnlocked (cyclomatic 18): BrowserMCPSessionManager.executeSequenceUnlocked 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"688b984114a4986e9580cfcbf65b252f72c6ef428638c2712d162f13b9f23ad3"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserMCPUploadStager.stageSynchronously (cyclomatic 18): BrowserMCPUploadStager.stageSynchronously has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPUploadStager.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3973cee5f59b372a19e3127060093915e266e6e75833ea3f8f3ee308375652"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolEventSummary.shortDescription (cyclomatic 18): ToolEventSummary.shortDescription 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/ToolEventSummary.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6bf8facf3c66e3ed3c99d73ebd83eaf0b1151168279cfa2d094295fc75a0cd"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserTool.formatStatus (cyclomatic 18): BrowserTool.formatStatus has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff53a8394527c943fdad5ce2e60881cc57b2cc2093f510aa0560c96c034533e"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeTool.resolvePixelFocusTarget (cyclomatic 18): TypeTool.resolvePixelFocusTarget 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/TypeTool.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b973cdb53ab092811d56fdb56e2c7bdc8eb321346a4dd34c439decd12ef32b"}},{"ruleId":"D1","level":"warning","message":{"text":"VerifyStateTool.finalScreenshot (cyclomatic 18): VerifyStateTool.finalScreenshot 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BResponse.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05b5f71c0bb9270a62e2f94ee3b1380aca76f197454f4ac872b6c1ddaaf0e66"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemToolFormatter.formatCompactSummary (cyclomatic 18): SystemToolFormatter.formatCompactSummary 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/SystemToolFormatter.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4589899a3039aaef839963a05c26a80dcc6cb84454fceb6eb45f65861951df"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemToolFormatter.formatError (cyclomatic 18): SystemToolFormatter.formatError 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/SystemToolFormatter.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"74045791cc1dc38a2e9cb5bf9521eb438e116e87e34ac8d31c9f26bd0ebecf6e"}},{"ruleId":"D1","level":"warning","message":{"text":"UIAutomationToolFormatter.formatScrollResult (cyclomatic 18): UIAutomationToolFormatter.formatScrollResult has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BPointerResults.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89700cc2f539fc04308a4840755113be1fda5dce8b156c3d5ce581e3274611b"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowToolFormatter.formatListScreensResult (cyclomatic 18): WindowToolFormatter.formatListScreensResult 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter\u002BWindowResults.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d8ba9ccddb476542dce7d0c068defdcf4a7718aa1469483f9d6a0ccef11918"}},{"ruleId":"D1","level":"warning","message":{"text":"CredentialFile.readCredentialSnapshot (cyclomatic 18): CredentialFile.readCredentialSnapshot 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":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/CredentialFile.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1554fd755dd18fd45c7d361aea529f35ddac152ae3a19c91d75d9793b32e79b"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeDesktopObservationBinding.validateDisplayEvidence (cyclomatic 18): PeekabooBridgeDesktopObservationBinding.validateDisplayEvidence 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47febb2a0f0455f4cb3b5601e26745288e36a2ea4a0d2f9eec21b9f2e20007b"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeHost.peerInfoIfAllowed (cyclomatic 18): PeekabooBridgeHost.peerInfoIfAllowed 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost\u002BClients.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"08620b45384593a9b21a98b2237d5b1ff482b423a72a75e987daf42cfdd66984"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateDesktopObservationSetupResult (cyclomatic 18): PeekabooBridgeOperationReceiptSemantics.validateDesktopObservationSetupResult 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"effbe7993fda952853594cfde0a8fc9021c733cdb933be87d95cdc9653058eaa"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationResultSemantics.failureOutcomeMatchesContract (cyclomatic 18): PeekabooBridgeOperationResultSemantics.failureOutcomeMatchesContract has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: PeekabooBridgeOperationResultSemantics.desktopOperationScope (cyclomatic 21) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a568b3a95f672bfec2d7fce6b62866a32185bed084eb746bc4349c12b312983"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationResultSemantics.validateSuccessfulTargetDisposition (cyclomatic 18): PeekabooBridgeOperationResultSemantics.validateSuccessfulTargetDisposition has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: PeekabooBridgeOperationResultSemantics.desktopOperationScope (cyclomatic 21) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":1487}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfe01bd72373335114091f8d6d76c883e50bc4848f52760c74da877bbe2670b"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeRequest.minimumNegotiatedProtocolVersion (cyclomatic 18): PeekabooBridgeRequest.minimumNegotiatedProtocolVersion has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeRequest\u002BDesktopMutation.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d14ab03e0bf00f6b5de688763e5902954ae0e91a4639cd3caedfcb961415eb"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.handleDesktopObservationRequest (cyclomatic 18): PeekabooBridgeServer.handleDesktopObservationRequest 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BCaptureHandlers.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd72d639d0af6991aefeff7bceb6d9163c636344a21b52bbdf9a0a78af29c353"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.updateSnapshotAndElementCapabilities (cyclomatic 18): PeekabooBridgeServer.updateSnapshotAndElementCapabilities 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff643a2c803026abb9bc78c1e26adb756f950d31e0312763276580e3c4546c33"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooServices.isConfiguredDefaultAvailable (cyclomatic 18): PeekabooServices.isConfiguredDefaultAvailable has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BAgent.swift"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec6ebe5d99a37d6be85711574bb237c50529c75dee3ab6ddc73f9ed2f385470"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteDesktopObservationService.prepareObservationResult (cyclomatic 18): RemoteDesktopObservationService.prepareObservationResult has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDesktopObservationService.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a21b2831043cfc980e891916cbf28339aed9cea472589165d80c34ff25aa488"}},{"ruleId":"D1","level":"warning","message":{"text":"DesktopSelectedLeafEvidence.validate (cyclomatic 18): DesktopSelectedLeafEvidence.validate 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":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopSelectedLeafEvidence.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc5059e2cf4b11735a13c2e36378ab70d5cff05b60d753767ac50046892afac"}},{"ruleId":"D1","level":"warning","message":{"text":"AllElementsView.filteredElements (cyclomatic 18): AllElementsView.filteredElements 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":"Core/PeekabooUICore/Sources/PeekabooUICore/Components/AllElementsView.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"13763649a9cd027e51be7745b4b7dc9d8c87cc297dcd71cd94577f7f9565097d"}},{"ruleId":"D1","level":"warning","message":{"text":"KeyboardView.body (cyclomatic 18): KeyboardView.body has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Playground/Playground/Views/KeyboardView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa2f65806b67cf94a83c78cfbaff4ab5e3a4c1b4966aa58e6b6e68185275826"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentExecutionReleaseGate.waitIfConfigured (cyclomatic 17): AgentExecutionReleaseGate.waitIfConfigured has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/AgentExecutionReleaseGate.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e0e4a7fa5cd9a9cf7dd54df7b34e6c57fffe2a8f8c2a88865302fcdc6ed9c3"}},{"ruleId":"D1","level":"warning","message":{"text":"MenuBarPopoverResolver.resolve (cyclomatic 17): MenuBarPopoverResolver.resolve has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverResolver.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"92cb8dc6dc079ee7ebf2321a68148e8120ea7a553d7fcdcf4795a539d886591e"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentCommand.runTauTUIChatLoop (cyclomatic 17): AgentCommand.runTauTUIChatLoop has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BChat.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b965976694e92f6b207b5c6ee43d9b522220df0a5d42796e4837ef479211b7"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentCommand.unavailableImplicitCustomModelToolCapabilityError (cyclomatic 17): AgentCommand.unavailableImplicitCustomModelToolCapabilityError has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BModelParsing.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae80d82278cd12dbadd9e108f3e487579217c66482246038686922c44cbf8745"}},{"ruleId":"D1","level":"warning","message":{"text":"SeeCommand.run (cyclomatic 17): SeeCommand.run has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e91b10e80a9c41d42d27ca402f3c935f41858101705ddc91d8b1adb3f29d5db"}},{"ruleId":"D1","level":"warning","message":{"text":"SeeCommand.observationTargetForCaptureWithDetectionIfPossible (cyclomatic 17): SeeCommand.observationTargetForCaptureWithDetectionIfPossible has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BObservationRequest.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb525e8ace484a81d709620b0f9b1e6ba7566c2b31d4a4a2e46f47339140796a"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderStatusReporter.envSource (cyclomatic 17): ProviderStatusReporter.envSource has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BStatus.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbcd5b6d5e446cb68ad950c57413680c15bbf40d0c9aa76f82c376e4bccd8cf3"}},{"ruleId":"D1","level":"warning","message":{"text":"PasteCommand.withInteractionMutationInvalidation (cyclomatic 17): PasteCommand.withInteractionMutationInvalidation has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"35720c10fff98886d781b80cc65d1f0c62b6522fd27c9e27bbf8ee662ab9faf4"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowCommand\u002BState.swift.validatedRestoredWindowOutputInfo (cyclomatic 17): WindowCommand\u002BState.swift.validatedRestoredWindowOutputInfo has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand\u002BState.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed9104709c10187550be233639fd2f107f88fcd9c2dbe43669cab6e08a034a2"}},{"ruleId":"D1","level":"warning","message":{"text":"HeldPointerReceiptTracker.record (cyclomatic 17): HeldPointerReceiptTracker.record has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/HeldPointerRunner.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebded0e9929437a01ced1a0ef65278202e01dfb624ecdf05a82390b3cc51f590"}},{"ruleId":"D1","level":"warning","message":{"text":"ObservationTargetResolver.resolveApplication (cyclomatic 17): ObservationTargetResolver.resolveApplication has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationTargetResolver.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f342eb1c6ed90a454a91ae2f243ac0dc0a4628290219ab9a7d31eaec8c0e50"}},{"ruleId":"D1","level":"warning","message":{"text":"ApplicationService.listApplications (cyclomatic 17): ApplicationService.listApplications has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BDiscovery.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b44d034aa5882ea92ab38a1df3f353acdf8e021ba6f52c8753121613af1d28"}},{"ruleId":"D1","level":"warning","message":{"text":"ClipboardService.set (cyclomatic 17): ClipboardService.set has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardService.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"693ab5c6be3b9c450bd47069e3fa399371d7a57da0f781990d8aaaae03b327ee"}},{"ruleId":"D1","level":"warning","message":{"text":"ClickService.focusExactElementWithOutcome (cyclomatic 17): ClickService.focusExactElementWithOutcome has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c23f7fe4c0db4bb06fb08e3f76d81b17cccddb9f46d06ccc732f46985a4a3c"}},{"ruleId":"D1","level":"warning","message":{"text":"ClickService.executeClick (cyclomatic 17): ClickService.executeClick has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f07c2af084f7037675e4b261a49808308cf25499a3425fd1b11be2fb31bc49"}},{"ruleId":"D1","level":"warning","message":{"text":"DialogService.exactFileDialogTarget (cyclomatic 17): DialogService.exactFileDialogTarget has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BResolution.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e83a4f9058e625b063615664335c7831a8e8778f6932b602fb8708190a9b95d"}},{"ruleId":"D1","level":"warning","message":{"text":"MenuService.getMenuBarItemsFromAppsAX (cyclomatic 17): MenuService.getMenuBarItemsFromAppsAX has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraAccessibility.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e3d9f494264ea59e3c2a233456bd248984c0c1c45486661a8b48c72c574b14"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeService.resolveTargetElement (cyclomatic 17): TypeService.resolveTargetElement has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService\u002BTargetResolution.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a094e02dbc42cf2d9100159056108e167707c97ffe48c222f34d1eda130dcf78"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowManagementService.closeWindowWithForegroundFallbackResult (cyclomatic 17): WindowManagementService.closeWindowWithForegroundFallbackResult has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BForegroundClose.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"559e391520ae111598a04761f147ad62486ee9dc19c990725fd4a30c63542648"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentExecutionTraceSanitizer.resultSummary (cyclomatic 17): AgentExecutionTraceSanitizer.resultSummary has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentExecutionTrace.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b4b3d8c16a06599b4ffbd987ec537f19e7b54068fe5e46e0efa240edc43b86"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentToolMCPBridge.makeModelImage (cyclomatic 17): AgentToolMCPBridge.makeModelImage has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolMCPBridge.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa5e70a4ac9dcefca92761a6270c610d25ed8aa41869885149f2eb7cc166163"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooAgentService.runGenerationLoopBody (cyclomatic 17): PeekabooAgentService.runGenerationLoopBody has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"910b9f71505429f59f45f1662ff3caba7701cd9c0ff81edb2df2844c9424b40e"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooAgentService.balancedJSONFragments (cyclomatic 17): PeekabooAgentService.balancedJSONFragments has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d86ac647e8007835136e5cb9c7fff80793fcaf2dcc1417a83db6a08a1877c51"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooAgentService.removingJSONComments (cyclomatic 17): PeekabooAgentService.removingJSONComments has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7e7e708723385c2b85d0303113d43e8da38559a6fbf25d3ed14787215c7283"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooAgentService.reasoningMetadata (cyclomatic 17): PeekabooAgentService.reasoningMetadata has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cce3e661ed033a063a5d43b70b9e5a5fc7ac80326bcc5bc48e3476fee92dff4"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentSystemPrompt.interactionSection (cyclomatic 17): AgentSystemPrompt.interactionSection has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/Tools/AgentSystemPrompt.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"427f9b3a1d355fb4ea735e72a4efe8d0d19e2bc7e0ed27f6b371d9564f857c9d"}},{"ruleId":"D1","level":"warning","message":{"text":"MenuTool.handleClickAction (cyclomatic 17): MenuTool.handleClickAction has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MenuTool.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"55908546367b13ecc9557adea11832bc1ebd1977224acc667c120f5c9b9bf755"}},{"ruleId":"D1","level":"warning","message":{"text":"SeeElementTextFormatter.describe (cyclomatic 17): SeeElementTextFormatter.describe has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SeeTool\u002BFormatting.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d64a6b95923d4b0a961b27e9e9d0fcb439e5d66049c6346128dba482bc8c8e3"}},{"ruleId":"D1","level":"warning","message":{"text":"SelectTextTool.execute (cyclomatic 17): SelectTextTool.execute has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SelectTextTool.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e82cf469e173a1dfdae51564246aebc497fd24e987ab6e243d01079bc20de13"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeTool.focusIfNeeded (cyclomatic 17): TypeTool.focusIfNeeded has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/TypeTool.swift"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6aefd3a95816c38d02b2aac8be5f6ebb30cc0be38cac5e099edcd5478341e7"}},{"ruleId":"D1","level":"warning","message":{"text":"MenuSystemToolFormatter.formatCompactSummary (cyclomatic 17): MenuSystemToolFormatter.formatCompactSummary has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"bebfe53b9733d6b4b8d714990a444c9c9e65f9d483bcec34b2fe4229018c909b"}},{"ruleId":"D1","level":"warning","message":{"text":"MenuSystemToolFormatter.formatListMenuItemsResult (cyclomatic 17): MenuSystemToolFormatter.formatListMenuItemsResult has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter\u002BMenu.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44c6030a7918c74b2c09e9f1cb63f06932f7a22f32db81f02bc952f98d7d845"}},{"ruleId":"D1","level":"warning","message":{"text":"UIAutomationToolFormatter.formatTypeResult (cyclomatic 17): UIAutomationToolFormatter.formatTypeResult has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BKeyboardResults.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"397747aae9f96a3d8218e04eff43d44c235563f5bbd2aadc6a563c12ee485a45"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeAgentExecutionOutputExtractor.convert (cyclomatic 17): PeekabooBridgeAgentExecutionOutputExtractor.convert has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift"},"region":{"startLine":1384}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c227cf0aa71478469b9fda334d6c5f8170b52e60998227db1986d6b165556e5"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeCertificationMonitorSealPayload.validateForegroundPlan (cyclomatic 17): PeekabooBridgeCertificationMonitorSealPayload.validateForegroundPlan has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationMonitorSealValidation.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd1e818de092ed8d89ead7aa789aad68f5acce9948fe72a1f04014fc11be530"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeHost.handleClient (cyclomatic 17): PeekabooBridgeHost.handleClient has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost\u002BClients.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57bac7b3ae885926636ae87c8c9a5ffbb38086898d7a9d5846f99809c0c9785"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeHost.acquireLease (cyclomatic 17): PeekabooBridgeHost.acquireLease has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost.swift"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"5148ca5991648f3d65645c88342a274ee8f7c276edca9c8775e13ad5787ed2a4"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeHost.readLeaseMarker (cyclomatic 17): PeekabooBridgeHost.readLeaseMarker has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost.swift"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"120cf0c6efa98deed3df93fa855a505764417ff4bf9b827518d2e6e900e42dd8"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.selectedLeaf (cyclomatic 17): PeekabooBridgeOperationReceiptSemantics.selectedLeaf has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"70cf244b0b13d80e2955d54d08d3e0affbf7559163006655202a13cd2cfe1613"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateSelectorResponseSemantics (cyclomatic 17): PeekabooBridgeOperationReceiptSemantics.validateSelectorResponseSemantics has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"690f600d4b84f73ee13fdabf44e4be0fb67c60594ad7b7157780b941ed0db8a3"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptPayload.validateTargetState (cyclomatic 17): PeekabooBridgeOperationReceiptPayload.validateTargetState has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptPayload.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54873883e80397bd4d21ca6d231af9dccd13979b84684aa52c17a9c36907a0f"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.handleExactWindowTargetedHotkey (cyclomatic 17): PeekabooBridgeServer.handleExactWindowTargetedHotkey has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: PeekabooBridgeServer.handleAutomationRequest (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"18aa8d2cde227b095eb37ea1d3ba8d7e04030176030fb8065c43a955991f4675"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.windowMutationResponse (cyclomatic 17): PeekabooBridgeServer.windowMutationResponse has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BMutationProof.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c957a6457c252e585e874d4ab99f58339f69b5d32b7d0410cf4de54bb4087a"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.updateInputAndLifecycleCapabilities (cyclomatic 17): PeekabooBridgeServer.updateInputAndLifecycleCapabilities has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbbdb272e1767879536a686f0bcebe504b9cb3570265d95c9d5c94798ef73886"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeWindowContextBinding.matches (cyclomatic 17): PeekabooBridgeWindowContextBinding.matches has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeWindowContextBinding.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3254923e54b082d6c47f51c9932d9afbe80afc2eeaffb9685303920380487cb"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.swift.protocolHostCapabilities (cyclomatic 17): PeekabooBridgeServer.swift.protocolHostCapabilities has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33fd46923877dcdb7d8e0435d1a49832321b9f8581e8abf6fc4336ffc340513"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooServices.configuredCustomDefaultModel (cyclomatic 17): PeekabooServices.configuredCustomDefaultModel has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BAgent.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e965eec876f09fce8499b9c9321b80a277a8fd8140e2b7cd660478bf7ebe847"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowTestingView.body (cyclomatic 17): WindowTestingView.body has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Playground/Playground/Views/WindowTestingView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"afeaaf437db298fe178a7298b5361f8eb7ecdbef65ed98ad1447144438b42ce8"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentExecutionReleaseGate.wait (cyclomatic 16): AgentExecutionReleaseGate.wait has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/AgentExecutionReleaseGate.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97945eae036ed372787bec05801ebc94ea43295def167b412a9d8b5bba18cda"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentCommand.runLineChatLoop (cyclomatic 16): AgentCommand.runLineChatLoop has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BChat.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e94307fd0bf4fd6d16b3ebf692f3e51f6cda98cd6f507e8d0a04552cd979c61"}},{"ruleId":"D1","level":"warning","message":{"text":"SeeCommand.validateSpecialCaptureTargets (cyclomatic 16): SeeCommand.validateSpecialCaptureTargets 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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"6222890b49a1754f72b11b495d0dfafe80ea64128f5b7d88065560103906a51e"}},{"ruleId":"D1","level":"warning","message":{"text":"CaptureActionProcessBox.release (cyclomatic 16): CaptureActionProcessBox.release has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionProcessRunner.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"991619a7f1cb24153f310717ecd20319c2131b533dc25f98ac98b148b2e01d96"}},{"ruleId":"D1","level":"warning","message":{"text":"ClickCommand.resolveAndDispatchModifierClick (cyclomatic 16): ClickCommand.resolveAndDispatchModifierClick has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"40094e31fd6d584cdecbd0d9c7de11d77911f5d8dfec9ba3eb8dad60ee65af60"}},{"ruleId":"D1","level":"warning","message":{"text":"ClickCommand.resolveBackgroundClickTarget (cyclomatic 16): ClickCommand.resolveBackgroundClickTarget has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"267bcc8a4a8cfe8cae9633f063aa44d55f950fc6f577599d93b16b5d4ee2c1b0"}},{"ruleId":"D1","level":"warning","message":{"text":"ClickCommand.validateBackgroundCoordinateResolution (cyclomatic 16): ClickCommand.validateBackgroundCoordinateResolution 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1587d28282b14b0ee26ae0f213ed50ad9aa009b3e533b0cb5472079666800f1"}},{"ruleId":"D1","level":"warning","message":{"text":"MoveCommand.validate (cyclomatic 16): MoveCommand.validate has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/MoveCommand.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e78827b81df971c1de6b36deaa61aafb7d0e41678e669306ffcdda93ee91bc"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrollCommand.run (cyclomatic 16): ScrollCommand.run has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a662415446d21e9ee9afac9ac22d23e0676936bb97db4616603250aeaedd0230"}},{"ruleId":"D1","level":"warning","message":{"text":"RuntimeHostResolver.shouldSkipOnDemandDaemon (cyclomatic 16): RuntimeHostResolver.shouldSkipOnDemandDaemon 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BResolution.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"087adc49389a1c4519f0c1eea6d308c06fde38664184327f36abba3103ee724a"}},{"ruleId":"D1","level":"warning","message":{"text":"FocusedElementReceiptResolver.validate (cyclomatic 16): FocusedElementReceiptResolver.validate 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/FocusedElementReceiptResolver.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21dc08fe0bcb9ce3caf02c39a16764186c0cb54262acfb30294f048275b3e18"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoWriter.abortAndRemovePartialOutput (cyclomatic 16): VideoWriter.abortAndRemovePartialOutput has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/VideoWriter.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1c256b9e05ef14f2eee93f7bd3fcffd87098454f01f7dc158ad1a8f26dbc0a"}},{"ruleId":"D1","level":"warning","message":{"text":"DesktopObservationService.validateResolvedTarget (cyclomatic 16): DesktopObservationService.validateResolvedTarget 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService\u002BOperationLane.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb10f135c265e020ecaaed33a29591678f0f44982e088921eca4399e4d6702f"}},{"ruleId":"D1","level":"warning","message":{"text":"ObservationTargetResolver.backgroundMenuBarClick (cyclomatic 16): ObservationTargetResolver.backgroundMenuBarClick 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationTargetResolver\u002BMenuBar.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"39330653ff6236f90152405cf56230085b23fb5f08429d467389033dcb8f3bce"}},{"ruleId":"D1","level":"warning","message":{"text":"ApplicationService.requestApplicationVisibility (cyclomatic 16): ApplicationService.requestApplicationVisibility has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BLifecycle.swift"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d0542a5969ad30b7e6c41594f59178dde905c6dc7c1a2e02a590cfcdedf57b"}},{"ruleId":"D1","level":"warning","message":{"text":"BoundedArtifactFile.read (cyclomatic 16): BoundedArtifactFile.read has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/BoundedArtifactFile.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4e6d3a63f34a879e856e4d644ad34cb01444ee0f2ef0610734a24f2ee6b581"}},{"ruleId":"D1","level":"warning","message":{"text":"AutomationElementResolver.application (cyclomatic 16): AutomationElementResolver.application has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: AutomationElementResolver.elementType (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AutomationElementResolver.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40650806daac30dd63f490a2203046a9731657bbf2aeadd6239aa10eb3a1c90"}},{"ruleId":"D1","level":"warning","message":{"text":"DialogService.executeFileDialog (cyclomatic 16): DialogService.executeFileDialog has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogs.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1027fff5cbbcd0a9d87ff46764eb1f000d018260d7512659c14686e33b402ca7"}},{"ruleId":"D1","level":"warning","message":{"text":"ForegroundModifierClickExecutor.makeTargetFocusGuard (cyclomatic 16): ForegroundModifierClickExecutor.makeTargetFocusGuard has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ForegroundModifierClickExecutor.swift"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"6504fd74dbfb9c49a724fe43ec075c8a644380c25cc73774a115da81e816a447"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeService.typeActionsByFocusingPixel (cyclomatic 16): TypeService.typeActionsByFocusingPixel 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68e27bfc8a39480741cdee57ebd976e89e9812ec71a89b366c1600c10908b8f"}},{"ruleId":"D1","level":"warning","message":{"text":"PinnedWindowGeometrySequence.swift.completePinnedWindowGeometry (cyclomatic 16): PinnedWindowGeometrySequence.swift.completePinnedWindowGeometry has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/PinnedWindowGeometrySequence.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0973b1873b22ab817f95356df52f3696ed357838644bb3dae4fed79371c8ff"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentToolMCPBridge.agentValue (cyclomatic 16): AgentToolMCPBridge.agentValue has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolMCPBridge.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe82ee7c4f636bb289b7dee72ccd67e84bd7069e1bc4888b7c61820ded1a8254"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooAgentService.maxOutputTokens (cyclomatic 16): PeekabooAgentService.maxOutputTokens has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c38e82c6868a2d0acd095f6fb2892c98e87c57d7bad125cf0fcabe40a7f2cf1"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooAgentService.executeToolCall (cyclomatic 16): PeekabooAgentService.executeToolCall has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac783f6194f421d3492d240c7da4892828f7358bd5a995563d8f16a2f9543c08"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentTurnBoundary.recordSuccessfulCompletion (cyclomatic 16): AgentTurnBoundary.recordSuccessfulCompletion has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/QueueMode.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6de61d51b54acd2abb9677331dbec48af5b29f6c4c5aef1c570cb794b60de7"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserMCPAuthenticatedSessionPool.commitRootHandoff (cyclomatic 16): BrowserMCPAuthenticatedSessionPool.commitRootHandoff 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPAuthenticatedSessionPool.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfb9d2e90931e0f2a404c6a42a03deebaf65becdaeb768251a4c0687208fd1f"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserMCPSessionManager.inspectStatusUnlocked (cyclomatic 16): BrowserMCPSessionManager.inspectStatusUnlocked has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"d751edd6e6c3196fb979f6e612ac1cf56b3d0c2a3eec15d855dc831d41dbac46"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserMCPSessionManager.resolveTarget (cyclomatic 16): BrowserMCPSessionManager.resolveTarget has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d080d37a4486fccdebf8818073161219098ca720f28ee8574b0aaf769a4dfdc"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalyzeTool.isUnsupportedLegacyModel (cyclomatic 16): AnalyzeTool.isUnsupportedLegacyModel 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AnalyzeTool.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e01e98ba5a8de9423b84cc19beb46935735a9f54b86b177d0064e112fe451b1"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserTool.executeCapabilityBound (cyclomatic 16): BrowserTool.executeCapabilityBound has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"036391883ae0df663cdd4c42af72ff65831761c462ab2615c994f1b010db0280"}},{"ruleId":"D1","level":"warning","message":{"text":"PasteTool.execute (cyclomatic 16): PasteTool.execute has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"468f590653f563c2c33246e433103347d0c9e1744021f6ce032ce082ed11b855"}},{"ruleId":"D1","level":"warning","message":{"text":"PasteTool.dispatchPasteHotkey (cyclomatic 16): PasteTool.dispatchPasteHotkey has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"56fb3171d0657dec1dbdf463ebc25368b93938911ddd2ce23a84e8b7a363ce78"}},{"ruleId":"D1","level":"warning","message":{"text":"VerifyStateTargetIdentityTracker.resolve (cyclomatic 16): VerifyStateTargetIdentityTracker.resolve has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ed07fc32e47f4c6e5bd7ab46eb0b43b154c31a4c96788394c923665adb13e4"}},{"ruleId":"D1","level":"warning","message":{"text":"VerifyStateTool.resolveApplication (cyclomatic 16): VerifyStateTool.resolveApplication has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"9428bc6d1dc4392a17114dba925f43270844255263f07e844bfb7999971bbc6a"}},{"ruleId":"D1","level":"warning","message":{"text":"VisionToolFormatter.formatWindowCaptureResult (cyclomatic 16): VisionToolFormatter.formatWindowCaptureResult has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/VisionToolFormatter.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bac73643070802cf699adb7adcad77f116bc3feeba8ced55d0be34b9f6edbdd"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowToolFormatter.formatStarting (cyclomatic 16): WindowToolFormatter.formatStarting has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"91524754ab3a2b423247b39c4ba4c8aaa95935d94c47812341a2936937b0cdc2"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeCertificationMonitorSealPayload.validateTarget (cyclomatic 16): PeekabooBridgeCertificationMonitorSealPayload.validateTarget 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationMonitorSealValidation.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f34d4125f56c862bd1674f70912f038119fef6ac54d29b3ec51ca043e816fd9"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeClient.reserveOperationSession (cyclomatic 16): PeekabooBridgeClient.reserveOperationSession 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a4d95da3251a518ade1c35a31e8ab2641986feebecc1bb6f9fbb3155490189"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeClient.exactDialogForceDismiss (cyclomatic 16): PeekabooBridgeClient.exactDialogForceDismiss 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfabc93568decab5b437e8461e645bd60897ffac2434345a476d228d0113246a"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeClient.unwrapResponse (cyclomatic 16): PeekabooBridgeClient.unwrapResponse has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"316d4720576a23caba22c8418311f41c7fe97b876ad08fb9c7d60b6be46f696d"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeCodeSignatureIdentity.validatedSigningInformation (cyclomatic 16): PeekabooBridgeCodeSignatureIdentity.validatedSigningInformation has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f4d369f9fce22d9463b18874728d3e755c1ab9da7b9b5d0258ba7309874b9a"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeHost.makeListeningSocket (cyclomatic 16): PeekabooBridgeHost.makeListeningSocket has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost.swift"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd57fe92f1f8d66e19928fd5097c71423b22ab03eabda70e2180878dc29acb20"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeOperationResultSemantics.successResponseMatchesPolicy (cyclomatic 16): PeekabooBridgeOperationResultSemantics.successResponseMatchesPolicy 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. This is NOT this file\u0027s highest cyclomatic complexity: PeekabooBridgeOperationResultSemantics.desktopOperationScope (cyclomatic 21) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c436d90fbb9a15b33a5b9d8f71d6f0161500a24e2849e7f352e186249869d43"}},{"ruleId":"D1","level":"warning","message":{"text":"TypedResponseRule.isConsistent (cyclomatic 16): TypedResponseRule.isConsistent has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultContracts.swift"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbad2045fd072fe5e8452c964572f0bd6f708c6b87e46d1d7efd17408541db9"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeServer.handleBrowserConnect (cyclomatic 16): PeekabooBridgeServer.handleBrowserConnect has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BBrowserConnect.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2454b944b8f9c56e90f26b8c3e67350772fb10d14faeeccd1da183c18a98767b"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooBridgeWindowContextBinding.refines (cyclomatic 16): PeekabooBridgeWindowContextBinding.refines 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeWindowContextBinding.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be482b19cafa7c8663f28157f1b1de78e3e16ddbc5a5cbfa2212403f8f0c2e7"}},{"ruleId":"D1","level":"warning","message":{"text":"SuccessPolicy.accepts (cyclomatic 16): SuccessPolicy.accepts 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":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafbd1f02a4107bf6e9f807a0713885960ab14578429c43a211e2b48b679bb32"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionChatHeader.body (cyclomatic 16): SessionChatHeader.body has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Main/SessionChatView.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ba15b2e5b89b1a9f48fa17da87d2971b942b37c6d661393b98059173ecef3a"}},{"ruleId":"D1","level":"warning","message":{"text":"DetailedMessageRow.body (cyclomatic 16): DetailedMessageRow.body has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Main/MessageComponents/DetailedMessageRow.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd493e59be0090e7de570a6ee1f6a625bb870244d39b9032df493ab8724e8b90"}},{"ruleId":"D1","level":"warning","message":{"text":"PeekabooMCPWrapper.start (cyclomatic 16): PeekabooMCPWrapper.start has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 66, 79). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"peekaboo-mcp.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fa3842262d71fbb909eb0f8eced6c6e4f46b6687f02f532a0f99ae80986c37"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.handleHandshake (cognitive 139): PeekabooBridgeServer.handleHandshake has cognitive complexity 139 (threshold 15). Drivers by points: boolean chains 88, if/else 43 (45 pts), match/switch 1 (3 pts), error handling 1 (2 pts), ternaries 1 (nesting depth added 5). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandshake.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b220f4fe13376c731f7ebf8f5a52bf2c1112d5df40ec4b11e8089ad2f38ffcab"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeAgentExecutionTraceResponse.validate (cognitive 106): PeekabooBridgeAgentExecutionTraceResponse.validate has cognitive complexity 106 (threshold 15). Drivers by points: boolean chains 102, if/else 3, error handling 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionTraceModels.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f10905fa1a56be84a958f5ba21d063bbfb99edf92fc3a0e137c72e79a37dc41"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeService.performTypeActions (cognitive 71): TypeService.performTypeActions has cognitive complexity 71 (threshold 15). Drivers by points: error handling 8 (29 pts), ternaries 5 (24 pts), if/else 3 (8 pts), loops 2 (6 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac055d735b44af4f402816f96c00a53ae1287ff4166bd34846630d5c066be744"}},{"ruleId":"D2","level":"warning","message":{"text":"core-sigpipe-diagnostic.capture (cognitive 71): core-sigpipe-diagnostic.capture has cognitive complexity 71 (threshold 15). Drivers by points: if/else 20 (38 pts), ternaries 3 (14 pts), loops 6 (13 pts), boolean chains 4, error handling 2 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/scripts/core-sigpipe-diagnostic.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"d952020fa7bcafb6461f935ca336c958c396251171471c60a4e8e479560796c3"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickCommand.run (cognitive 70): ClickCommand.run has cognitive complexity 70 (threshold 15). Drivers by points: if/else 19 (53 pts), ternaries 2 (10 pts), boolean chains 6, error handling 1 (nesting depth added 42). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b6403996d5d415c0ea3cf56559d3d695a93e4104506652a969fa0b888c13db"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserMCPSessionManager.prepareExecutionReceipt (cognitive 58): BrowserMCPSessionManager.prepareExecutionReceipt has cognitive complexity 58 (threshold 15). Drivers by points: if/else 23 (39 pts), boolean chains 12, error handling 5 (7 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"eccf15156bac379f64e6e892d38ee15cdfc4407226fb262f8e9f465926751464"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeHostResolver.resolveRemoteServices (cognitive 56): RuntimeHostResolver.resolveRemoteServices has cognitive complexity 56 (threshold 15). Drivers by points: if/else 10 (32 pts), boolean chains 15, error handling 4 (8 pts), loops 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver.swift"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2bad3b89eb23d1ec4fb6190582ba161e0e7fc2e5f009df70407b6180f83f370"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeClient.sendCarryingActionOutcome (cognitive 56): PeekabooBridgeClient.sendCarryingActionOutcome has cognitive complexity 56 (threshold 15). Drivers by points: if/else 12 (34 pts), boolean chains 10, error handling 2 (7 pts), match/switch 1 (2 pts), ternaries 2, loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea5a724dce93d149afb566ab8f0cd5b681bad87e9f3b46f1f03b03044922235"}},{"ruleId":"D2","level":"warning","message":{"text":"DaemonLaunchPolicy.startOnDemandDaemonWithStartupLockHeld (cognitive 54): DaemonLaunchPolicy.startOnDemandDaemonWithStartupLockHeld has cognitive complexity 54 (threshold 15). Drivers by points: if/else 10 (29 pts), error handling 7 (18 pts), boolean chains 3, ternaries 1 (3 pts), match/switch 1 (nesting depth added 32). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonLaunchPolicy.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ff766223544c31b0e9832e29a27eb1a3dd521d9b4ad2c4a910a2a2848962fa"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogTool.execute (cognitive 54): DialogTool.execute has cognitive complexity 54 (threshold 15). Drivers by points: boolean chains 24, if/else 13 (24 pts), error handling 4, match/switch 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DialogTool.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ab4639843dc11414b4b90dfc202f73bf3d820e30b678115abef77fe88ba356"}},{"ruleId":"D2","level":"warning","message":{"text":"UISnapshot.setScreenshot (cognitive 54): UISnapshot.setScreenshot has cognitive complexity 54 (threshold 15). Drivers by points: boolean chains 28, if/else 23, ternaries 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/UISnapshotStore.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe4c3f6ac9fea209567b9359b1426f30d0f0a84b95366dbaceeb23dc9442d9d"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationResultSemantics.deliveryRules (cognitive 54): PeekabooBridgeOperationResultSemantics.deliveryRules has cognitive complexity 54 (threshold 15). Drivers by points: if/else 14 (28 pts), ternaries 8 (17 pts), boolean chains 6, match/switch 2 (3 pts) (nesting depth added 24). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c6b0c18241924f1071311019697811fcfd11af1d7161d2fa268c094a7f4534"}},{"ruleId":"D2","level":"warning","message":{"text":"PressCommand.run (cognitive 52): PressCommand.run has cognitive complexity 52 (threshold 15). Drivers by points: error handling 8 (25 pts), if/else 6 (20 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PressCommand.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a97571880b98cf704847e333a7bc65fbc9cc4d8513be742dbff27430e961cc6"}},{"ruleId":"D2","level":"warning","message":{"text":"LegacyPNGValidator.hasValidStructureAndCRC (cognitive 50): LegacyPNGValidator.hasValidStructureAndCRC has cognitive complexity 50 (threshold 15). Drivers by points: if/else 14 (32 pts), boolean chains 15, match/switch 1 (2 pts), loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyPNGValidator.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6580115c53f34545c78598223b5426a93fa4667d180acad3507bd01a33e2d4"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollService.scrollWithLanePreparation (cognitive 50): ScrollService.scrollWithLanePreparation has cognitive complexity 50 (threshold 15). Drivers by points: if/else 16 (34 pts), boolean chains 7, error handling 3 (5 pts), ternaries 2 (4 pts) (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0c30c2866a49bec71114fc857beeb5b299a0e888bda5fac7bc4bc02192703f"}},{"ruleId":"D2","level":"warning","message":{"text":"CommanderCLIBinder.makeRuntimeOptions (cognitive 49): CommanderCLIBinder.makeRuntimeOptions has cognitive complexity 49 (threshold 15). Drivers by points: boolean chains 36, if/else 11 (12 pts), ternaries 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"133c2f1016167d3b13a153499728cc4130feb694067c48f70a00f406fba8d72b"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogCommand.execute (cognitive 49): DialogCommand.execute has cognitive complexity 49 (threshold 15). Drivers by points: if/else 12 (32 pts), error handling 6 (7 pts), ternaries 1 (5 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/DialogCommand.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"760cbe2797ccf1851729dc8718a61bc10667da75c6367657c4867e834ddb9b4f"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowEnumerationContext.mergeWindowInventory (cognitive 49): WindowEnumerationContext.mergeWindowInventory has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (29 pts), boolean chains 14, loops 5, ternaries 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a7157de6c9ae3ede4d0e4709fa1e232a0f847f9bf5a0d32c334a3d23586f66"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogService.navigateToDirectory (cognitive 49): DialogService.navigateToDirectory has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (37 pts), ternaries 3 (8 pts), boolean chains 3, error handling 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogNavigation.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"06725af15194486dcc8349327337c4c33535e2b4c0d22d5a11c58c950ce3e2c8"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopTargetIdentityCoalescer.resolve (cognitive 48): DesktopTargetIdentityCoalescer.resolve has cognitive complexity 48 (threshold 15). Drivers by points: if/else 19 (28 pts), boolean chains 19, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/DesktopTargetPlanning.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"6caae0e28a67344a43fcfdd959a0d1753ded1281f138740940b3efdc3245c4f1"}},{"ruleId":"D2","level":"warning","message":{"text":"DetachedAXMutationReader.readSynchronously (cognitive 48): DetachedAXMutationReader.readSynchronously has cognitive complexity 48 (threshold 15). Drivers by points: boolean chains 25, if/else 12 (19 pts), ternaries 3, match/switch 1 (nesting depth added 7). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AXMutationObservation.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0121ceef16c01a746e65efe7c5591513c281a8d1916737d11fab209be26e9d4"}},{"ruleId":"D2","level":"warning","message":{"text":"Reader.read (cognitive 48): Reader.read has cognitive complexity 48 (threshold 15). Drivers by points: if/else 18 (33 pts), boolean chains 12, loops 3 (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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundWindowChromeReader.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e80fe6d6ab84d8e3c9e0b0307e372bc571045f6d9dbae3ea86c1946c598c69"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserMCPService.executeSequenceWithOutcome (cognitive 48): BrowserMCPService.executeSequenceWithOutcome has cognitive complexity 48 (threshold 15). Drivers by points: error handling 7 (21 pts), if/else 11 (15 pts), ternaries 4 (6 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec13b9ae617dfdaaae33cd337486ec6ce947fede39679fd7366ccadfbe20071c"}},{"ruleId":"D2","level":"warning","message":{"text":"CertificationObserveOnlyPlan.validate (cognitive 47): CertificationObserveOnlyPlan.validate has cognitive complexity 47 (threshold 15). Drivers by points: boolean chains 42, if/else 5. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ObserverPlan.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d21927b45d428dc3b9c2acddb4f8367ddfe85d0304fb6445f13f5c0c333ef1"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooAgentService.runStreamingLoopBody (cognitive 47): PeekabooAgentService.runStreamingLoopBody has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (30 pts), error handling 2 (4 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (3 pts), ternaries 1 (3 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4a57d5d57180d2abb21b1ecf2aa7d6ec4716a82f95f5a5791243688bd28166"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollTool.parseRequest (cognitive 47): ScrollTool.parseRequest has cognitive complexity 47 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 18, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ScrollTool.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1228b81886b845a910b8eacc00bfe3e37e97aea1a8a491d3a8bab8e09646d79"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuExtraAXReader.readSynchronously (cognitive 45): MenuExtraAXReader.readSynchronously has cognitive complexity 45 (threshold 15). Drivers by points: if/else 14 (26 pts), boolean chains 12, error handling 2 (3 pts), ternaries 2 (3 pts), loops 1 (nesting depth added 14). Of this number, 41 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuExtraAXReader.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"24af949af5dc757f6db658ad317e5409b7a2ec45b43dcf9cbded732334e02f96"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickRequest.init (cognitive 45): ClickRequest.init has cognitive complexity 45 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 13 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"401ccdfaf7ee1159134cc3595cadb31c1aa7eb0ca0511a427ff9a7fa5baf4f73"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeCertificationObserverSemanticPayload.validate (cognitive 45): PeekabooBridgeCertificationObserverSemanticPayload.validate has cognitive complexity 45 (threshold 15). Drivers by points: boolean chains 40, if/else 4, error handling 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationObserverSemanticPayload.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e569ed8145d6d9bcd6f2569409fd21dd86dbb2a441ea406b3da31dc936e3cd4"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeHost.legacySocketOwnerState (cognitive 45): PeekabooBridgeHost.legacySocketOwnerState has cognitive complexity 45 (threshold 15). Drivers by points: if/else 13 (31 pts), boolean chains 7, loops 2 (3 pts), match/switch 1 (3 pts), ternaries 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost.swift"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5fd89a4566bb93ffbc43941a324d4f54063348eb4198084bbb0aebdae9700d9"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeRequestPreflight.validate (cognitive 45): PeekabooBridgeRequestPreflight.validate has cognitive complexity 45 (threshold 15). Drivers by points: if/else 13 (32 pts), loops 3 (7 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeRequestPreflight.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"71969ee9375ebf5f9490735e641d8da35eb00fdb40e7c3aaef07be99a1555c82"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.validateOperationAccess (cognitive 45): PeekabooBridgeServer.validateOperationAccess has cognitive complexity 45 (threshold 15). Drivers by points: boolean chains 26, if/else 14 (19 pts) (nesting depth added 5). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8488dc5b53d5edfe971008c933cf09a1df60f0ca0e9f4918ad8462781783497"}},{"ruleId":"D2","level":"warning","message":{"text":"HotkeyService.hotkey (cognitive 44): HotkeyService.hotkey has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (28 pts), boolean chains 14, error handling 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/HotkeyService.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e9d10a3af1a4f45a25bf92bc7c6eda25ae46182991b4e42c729b2668dede27"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPToolContext.execute (cognitive 44): MCPToolContext.execute has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (35 pts), ternaries 2 (4 pts), error handling 3, boolean chains 2 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5df7a8fffed3d1fba28dc5739f5315451dae30673caa740fa34f21a1dea6ca"}},{"ruleId":"D2","level":"warning","message":{"text":"UISnapshot.setTargetMetadata (cognitive 44): UISnapshot.setTargetMetadata has cognitive complexity 44 (threshold 15). Drivers by points: if/else 23, boolean chains 19, ternaries 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/UISnapshotStore.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"3638ab61b97de9d87856b635c8da2a1e09b3126da777d0449019c877732603ab"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeClient.sendBlocking (cognitive 44): PeekabooBridgeClient.sendBlocking has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (24 pts), error handling 5 (11 pts), boolean chains 9 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09c3b8718f9d5f22da0f9a95fa8a2a2faedf2167616821b259fe0af0ef4e9fa"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationResultSemantics.contract (cognitive 44): PeekabooBridgeOperationResultSemantics.contract has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 12 (25 pts), if/else 6 (11 pts), match/switch 3 (5 pts), boolean chains 3 (nesting depth added 20). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc761a3edb5cbe9968d271fb9e5462349dac6c59d551fe529ee37a08b9f88843"}},{"ruleId":"D2","level":"warning","message":{"text":"ListSubcommand.run (cognitive 43): ListSubcommand.run has cognitive complexity 43 (threshold 15). Drivers by points: loops 5 (16 pts), ternaries 4 (13 pts), if/else 6 (9 pts), error handling 2 (4 pts), boolean chains 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/SpaceCommand\u002BList.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"09edab9dd1aa8151b49eaedb8e2c812bbbe98f51dd71bf612bcc6875b6400980"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogService.discoverDialogCandidates (cognitive 43): DialogService.discoverDialogCandidates has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 10, loops 3 (6 pts), ternaries 1 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BDiscovery.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0492d1a1205d36c464ef3ad0c6e941061a0b2041efda3b577260fb28cf3cfa5"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserMCPSessionManager.validate (cognitive 43): BrowserMCPSessionManager.validate has cognitive complexity 43 (threshold 15). Drivers by points: boolean chains 28, if/else 9 (15 pts) (nesting depth added 6). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":1431}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9dc371d792ac659a104c38c4720ee242c38301d478502aadb24bc4ca4473e3"}},{"ruleId":"D2","level":"warning","message":{"text":"CommanderCLIBinder.requiresImplicitSnapshotInvalidation (cognitive 42): CommanderCLIBinder.requiresImplicitSnapshotInvalidation has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 36, if/else 6. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"63543e6175d09ffcfb8a3a605d204bd2ef72fc43ea3fc30bd5c730dbdad16989"}},{"ruleId":"D2","level":"warning","message":{"text":"CommanderCLIBinder.applyRoutePermissionOptions (cognitive 42): CommanderCLIBinder.applyRoutePermissionOptions has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 26, if/else 6 (7 pts), ternaries 3 (7 pts), match/switch 1 (2 pts) (nesting depth added 6). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder\u002BInteractionPermissions.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d1ade3a2cfa09cf1f9581bc56f4b983ee1287f489b95479a3e477b5d211087"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserToolCapabilitySession.project (cognitive 42): BrowserToolCapabilitySession.project has cognitive complexity 42 (threshold 15). Drivers by points: if/else 21 (24 pts), boolean chains 12, ternaries 5 (6 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserToolCapabilitySession.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b977e11a017b543387b0d9000347f3dd691536f29c07515848f7128d381ede"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateSuccessfulTargetAttribution (cognitive 42): PeekabooBridgeOperationReceiptSemantics.validateSuccessfulTargetAttribution has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (29 pts), boolean chains 8, error handling 2, ternaries 1 (2 pts), match/switch 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd91bbf148c69e7e00c974b834af021a95c6e111221915a4aec7d1846fe689f"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeCapabilityPolicy.supportsInteractionRequirements (cognitive 41): BridgeCapabilityPolicy.supportsInteractionRequirements has cognitive complexity 41 (threshold 15). Drivers by points: boolean chains 21, if/else 20. 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"7661ae4b88b6a7c62fe37a8f50991cd24457150adeb8c7b03ce086cbd0debba5"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeService.clearCurrentField (cognitive 41): TypeService.clearCurrentField has cognitive complexity 41 (threshold 15). Drivers by points: error handling 11 (19 pts), ternaries 6 (14 pts), if/else 4, match/switch 1 (3 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8816c6908afd0269fbcc91bf3c3075fba49684a6f3af126b06984fd1978e1e1"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickTool.performClick (cognitive 41): ClickTool.performClick has cognitive complexity 41 (threshold 15). Drivers by points: if/else 16 (35 pts), boolean chains 6 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"09515d969339d53850607191da7a5e70883606192d5a2f6bffe64cb417270f51"}},{"ruleId":"D2","level":"warning","message":{"text":"SeeCommand.validatePresentationOptions (cognitive 40): SeeCommand.validatePresentationOptions has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 27, if/else 13. 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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1988620cae1efabe0ef294f4ce9d4dfae389546b424b0f42df385e0a8237a21"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteDesktopObservationService.observeActionResult (cognitive 40): RemoteDesktopObservationService.observeActionResult has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 7, error handling 4 (6 pts), loops 1 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDesktopObservationService.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b4a30ba98450c0f6f8e92aa478ef3fd85011f851778aa46e838321404f6726"}},{"ruleId":"D2","level":"warning","message":{"text":"CaptureActionManifestWriter.retainedFile (cognitive 39): CaptureActionManifestWriter.retainedFile has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 18, loops 1, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdd481c6501ee884dd8d9b41aa8266288c98cb085ece705f25084e398899245"}},{"ruleId":"D2","level":"warning","message":{"text":"WatchCaptureSession.captureFrames (cognitive 39): WatchCaptureSession.captureFrames has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (30 pts), boolean chains 4, error handling 1 (2 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureSession\u002BLoop.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee35f29bfd58f8fd48fc89ecc9f3b81407210d1f3a2b20ba7ae126e461d6e38"}},{"ruleId":"D2","level":"warning","message":{"text":"ActionInputDriver.setValue (cognitive 39): ActionInputDriver.setValue has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (28 pts), boolean chains 8, error handling 3 (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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0ca297447316d787c35d21dee10d55211a9d9944d3f6d18d1f7ea5795bcd88"}},{"ruleId":"D2","level":"warning","message":{"text":"ForegroundModifierClickExecutor.executeOwned (cognitive 39): ForegroundModifierClickExecutor.executeOwned has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 9, error handling 3 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ForegroundModifierClickExecutor.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e65b6e95028128ef6f80492ee9867fd00ce8602bb2befe49d52783ee5d32c3"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentToolMCPBridge.convert (cognitive 39): AgentToolMCPBridge.convert has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (26 pts), ternaries 2 (5 pts), loops 2 (3 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolMCPBridge.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d8abb25698cd9aa1bbed232453ec5d290284d55504ffb4c5953c1c97435b9d"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooAgentService.collectStreamOutput (cognitive 39): PeekabooAgentService.collectStreamOutput has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (27 pts), ternaries 2 (7 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreamProcessing.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4989e73b1ab02c913c5a1a2c69c6bb9072f76fd95f74d73dd4b1feb8468266"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserToolCapabilitySession.resolvingElementReferences (cognitive 39): BrowserToolCapabilitySession.resolvingElementReferences has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 3 (7 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserToolCapabilitySession.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf88b5623d72f78222fec2144522b91b776d6d0b4f3a4696cb008caab78253c0"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeCertificationMonitorSealPayload.validateHeartbeat (cognitive 39): PeekabooBridgeCertificationMonitorSealPayload.validateHeartbeat has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 30, if/else 5 (7 pts), ternaries 2 (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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationMonitorSealValidation.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"450ce7ad07f13f3ad88cb3e7a5677ce2b3299eca95605fdf1df7f6318bb4b024"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.handleBrowserExecute (cognitive 39): PeekabooBridgeServer.handleBrowserExecute has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 12, ternaries 1 (2 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BBrowserHandlers.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"7748d2cbd5a3750e6be94f545607c0cc7d3bf173ea4b84286b3c64cdd60e50db"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopActionSequenceAccumulator.completedBatch (cognitive 39): DesktopActionSequenceAccumulator.completedBatch has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 17, if/else 15 (17 pts), ternaries 2 (4 pts), loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionSequenceAccumulator.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddbd160bbaa309ccb1b7901a747aa079a241a36090fbaac687ea5eba4cc0b40c"}},{"ruleId":"D2","level":"warning","message":{"text":"DaemonStatusPrinter.render (cognitive 38): DaemonStatusPrinter.render has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20 (29 pts), ternaries 4 (9 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":"Apps/CLI/Sources/PeekabooCLI/Commands/System/DaemonCommand.swift"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"315b48802f8364d869b2a80ee0454f6378a5a70443ffba3f6ce418772209e326"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuBarActionCommand.clickMenuBarItem (cognitive 38): MenuBarActionCommand.clickMenuBarItem has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (28 pts), ternaries 4 (9 pts), error handling 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/MenuBarCommand.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39c6d73d962a6ba151dbbb564b2b77e43deeb19c1952bbbaac4392a92cb2020"}},{"ruleId":"D2","level":"warning","message":{"text":"CertificationControllerPlan.validate (cognitive 38): CertificationControllerPlan.validate has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 24, if/else 14. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"a685a14f945226d06355bf69bc7b05673e56ddb2011ebb8a125d9d150f8086de"}},{"ruleId":"D2","level":"warning","message":{"text":"WatchFrameDiffer.extractBoundingBoxes (cognitive 38): WatchFrameDiffer.extractBoundingBoxes has cognitive complexity 38 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 5 (11 pts), boolean chains 5 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchFrameDiffer.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"829e4533be33b8c124ebfc401f5dad0e34f4e60a2ebe2095a5ecdb87df54e144"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogService.verifySavedFile (cognitive 38): DialogService.verifySavedFile has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 12, 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogVerification.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f66bec6616a7e301326f67b584d53192f6fbaea5c8d20731e7b49f4b63359f9"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowManagementService.closeWindowWithForegroundFallbackResult (cognitive 38): WindowManagementService.closeWindowWithForegroundFallbackResult has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (24 pts), error handling 6 (11 pts), ternaries 1 (3 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BForegroundClose.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"181ee01668ed50cb06d53b3b056a1def2ad050bed3f3d74f7a46b53580f64b2c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentToolResultSemantics.turnBoundaryProjection (cognitive 38): AgentToolResultSemantics.turnBoundaryProjection has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 20, if/else 13 (17 pts), loops 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolResultSemantics.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"849161001d1189bb25d51fc1fc388d33000bbde1d50d3034b7bdf8050e1160ac"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeDesktopObservationBinding.validateOutputOptions (cognitive 38): PeekabooBridgeDesktopObservationBinding.validateOutputOptions has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 12, error handling 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"2986ff6d668c9c2a0b80309e5fd52d2132dd25ec8ab71c386fa4752735a74dae"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeHostResolver.resolveRemoteRouting (cognitive 37): RuntimeHostResolver.resolveRemoteRouting has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 15, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03e0c9cca68e0b2840f5a36c36a043babfc39eecf41488c4cf8cfd2f13b1e41"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveCertificationBridge.validateCanonicalRequest (cognitive 37): LiveCertificationBridge.validateCanonicalRequest has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 26, if/else 7 (10 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":"Apps/CLI/Sources/PeekabooCertificationController/LiveCertificationBridge.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eeeff66861173d650ab1d4714f4d26144d3f7f300f82b5d0bbe3e41ad4e5c71"}},{"ruleId":"D2","level":"warning","message":{"text":"CaptureArtifactIntegrityValidator.videoCustody (cognitive 37): CaptureArtifactIntegrityValidator.videoCustody has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 23, if/else 8 (13 pts), loops 1 (nesting depth added 5). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/CaptureArtifactIntegrityValidator.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9c8169148f92cb9c7099ddb2de914dd4c9dda1304925ac44da4fff65fc40a0"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserMCPSessionManager.connectionReceipt (cognitive 37): BrowserMCPSessionManager.connectionReceipt has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 25, if/else 11 (12 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"96748eba79d4d1372b55a7c0ba868ddd1931a30ae576112173daa09a7542b36a"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemToolFormatter.formatShellResult (cognitive 37): SystemToolFormatter.formatShellResult has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (21 pts), ternaries 4 (10 pts), boolean chains 6 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/SystemToolFormatter.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3601fd75aaf9dd296e1c7a0e6541d364e9ae8b950a0ebf1de11a3d46a46216"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeActionResultRule.accepts (cognitive 37): TypeActionResultRule.accepts has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 11, loops 1, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultContracts.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f17a90ec1869941b8d2f7d8866a837bd64a1fe9c60106b97a9adc064cad3130"}},{"ruleId":"D2","level":"warning","message":{"text":"CaptureActionManifest.semanticFailure (cognitive 36): CaptureActionManifest.semanticFailure has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 27, if/else 6 (7 pts), match/switch 1, ternaries 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"a746de9bb6c31f444a95615ccff0954121e7a4b9f1aed64dbc55a6dd6b850635"}},{"ruleId":"D2","level":"warning","message":{"text":"ActionInputDriver.selectText (cognitive 36): ActionInputDriver.selectText has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 9, error handling 6 (9 pts), ternaries 2 (3 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"144b42cd00b5c9dafcf528bf31f13bb1f0722274f42f7084aca58688db19e847"}},{"ruleId":"D2","level":"warning","message":{"text":"ForegroundModifierClickExecutor.restoreFocusIfOwned (cognitive 36): ForegroundModifierClickExecutor.restoreFocusIfOwned has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (25 pts), error handling 6 (9 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ForegroundModifierClickExecutor.swift"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9042b8893ed2921cfc2fd969fbcdcd9bc7791c27c687df78dd0039111045580"}},{"ruleId":"D2","level":"warning","message":{"text":"DragTool.execute (cognitive 36): DragTool.execute has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (18 pts), error handling 7 (8 pts), boolean chains 6, ternaries 1 (4 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"46fe3aab49a5bfb2376a861c072b44b3b1ccf2371606f9e783ad968a1e9aa3de"}},{"ruleId":"D2","level":"warning","message":{"text":"VerifyStateTool.resolveWindow (cognitive 36): VerifyStateTool.resolveWindow has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (27 pts), match/switch 1 (3 pts), ternaries 1 (3 pts), error handling 2, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"20de6ed6d72873eff167e0869498ff89d768595816d733bcc63f44477dccbd05"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeClient.exchange (cognitive 36): PeekabooBridgeClient.exchange has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (24 pts), error handling 6, boolean chains 4, match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"5777d2c55591723261e29669efeeea8196d78d4fde3a7d5d5654bed3a685da77"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuBarPopoverDetector.candidates (cognitive 35): MenuBarPopoverDetector.candidates has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 6, 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":"Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverDetector.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"568eaf73dd081821755b6bb95137d8ca8cb54702d0b115d6f3fab48e0228cadc"}},{"ruleId":"D2","level":"warning","message":{"text":"PasteCommand.run (cognitive 35): PasteCommand.run has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (24 pts), ternaries 4 (8 pts), error handling 2, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb6dc079b7fae2d2b596a1961dc19a201a508146184ed12b2185f33b5c2928b"}},{"ruleId":"D2","level":"warning","message":{"text":"ApplicationService.requestVerifiedActivation (cognitive 35): ApplicationService.requestVerifiedActivation has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (27 pts), boolean chains 4, loops 1 (2 pts), error handling 1, ternaries 1 (nesting depth added 18). Of this number, 32 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BLifecycle.swift"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e395c53b1cf9f4c3a4e9b8de64213c2a27dbf0ccca848deaec727cb8730c0a7"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooAgentService.removingJSONComments (cognitive 35): PeekabooAgentService.removingJSONComments has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 3 (9 pts), boolean chains 4 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"94301ec0f04a491963981e3a62566bba4a51db6b094d56aa51d75d21873da7e3"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserMCPSessionManager.executeSequenceUnlocked (cognitive 35): BrowserMCPSessionManager.executeSequenceUnlocked has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (22 pts), error handling 3 (6 pts), boolean chains 3, match/switch 1 (3 pts), loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c352893cc4612637d034207f2295d7dc5f340408237936ddd65ba1f110a4557"}},{"ruleId":"D2","level":"warning","message":{"text":"PressTool.execute (cognitive 35): PressTool.execute has cognitive complexity 35 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 9 (10 pts), boolean chains 5, match/switch 2 (4 pts), ternaries 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f96e20fd46ceea5261272b769cf314c9dfe10040dd5aa0fd8d621cb2d31e9cf"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptAuthority.prepareSessionCreationLocked (cognitive 35): PeekabooBridgeOperationReceiptAuthority.prepareSessionCreationLocked has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 11, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceipts.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c690f841e03a6b9fae3de411bb7c813e8bc1ce1ca5442a93c659bb3406c5f0"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.handleDesktopObservationRequest (cognitive 35): PeekabooBridgeServer.handleDesktopObservationRequest has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (22 pts), ternaries 3 (7 pts), boolean chains 5, match/switch 1 (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BCaptureHandlers.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cf3f12f878464f7b229e9b34ffcb94f17a8eb0ba1e0142161923aaf04eb35f"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopActionOutcome.validateDecoded (cognitive 35): DesktopActionOutcome.validateDecoded has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 33, if/else 1, match/switch 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"52aad49b3fd69db7e3de785856306851229d2249e83ddac697647cebac5b7c4b"}},{"ruleId":"D2","level":"warning","message":{"text":"SeeCommand.run (cognitive 34): SeeCommand.run has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (25 pts), error handling 3 (4 pts), ternaries 2 (3 pts), boolean chains 2 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"98dbf2003da6620e410dbc8a96d07612e4661f717011e33e6516893c73eb038d"}},{"ruleId":"D2","level":"warning","message":{"text":"ApplicationService.performApplicationVisibilityMutation (cognitive 34): ApplicationService.performApplicationVisibilityMutation has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (23 pts), error handling 3 (4 pts), ternaries 3 (4 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BActionOutcomes.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6a99377480794c264a1e32a59af7f84e30ebb2498301037bfaadfaba3f909c"}},{"ruleId":"D2","level":"warning","message":{"text":"ClipboardPayloadBuilder.readFile (cognitive 34): ClipboardPayloadBuilder.readFile has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 8, ternaries 2 (5 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardPayloadBuilder.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14c86c44bf368ffde6ff3d145e5e5f2f9e9069d6ad1198f4f313818de20f298"}},{"ruleId":"D2","level":"warning","message":{"text":"ActionInputDriver.observeMutation (cognitive 34): ActionInputDriver.observeMutation has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 9, error handling 2 (5 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a5bf613b49507481808256874d8163919081ff6e89c9c220a309ef5c7a7738"}},{"ruleId":"D2","level":"warning","message":{"text":"DetachedExactWindowFocusReader.read (cognitive 34): DetachedExactWindowFocusReader.read has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 6, ternaries 2 (3 pts), loops 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83a6dcbfed429c6ed0fe64e0f0b70bde207cf70c9d3008dfe3845e98ed28e00"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogService.executeFileDialog (cognitive 34): DialogService.executeFileDialog has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (29 pts), ternaries 1 (3 pts), boolean chains 1, error handling 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogs.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8057f0933cf11e51151a640a59033603053d25b4e952dbbdb4842c50ca4dc0"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogService.targetedDialogCandidates (cognitive 34): DialogService.targetedDialogCandidates has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 6, loops 3 (6 pts), ternaries 3 (6 pts), match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BPreparedActions.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fe2229012c5fc8e1e149ab7040e98c3ed6fdd5a4cc2f7162bc9e7bacc51a08"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogService.findDialogElement (cognitive 34): DialogService.findDialogElement has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 4 (9 pts), boolean chains 5 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BResolution.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b6de932de0635589e89ce58abf5616ad2ba4266e91552b4f5df93da10604cc"}},{"ruleId":"D2","level":"warning","message":{"text":"ExactWindowHeldPointerLifecycle.runHold (cognitive 34): ExactWindowHeldPointerLifecycle.runHold has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (30 pts), boolean chains 3, error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ExactWindowHeldPointerLifecycle.swift"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"252cbe8dda1d5a87e756ae65be5a1979a0a3659ab6087435f01b9adad7756010"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeDesktopObservationBinding.validateWindowEvidence (cognitive 34): PeekabooBridgeDesktopObservationBinding.validateWindowEvidence has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 15, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91ade952912d34c6c81b18321ad16cda808681d4be395fa2ff347ca32216a40"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateReceiptCarriage (cognitive 34): PeekabooBridgeOperationReceiptSemantics.validateReceiptCarriage has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 9, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"6182b211ee3cb54fc8fe528bbd40b20bb4dddb94d9d712b5e00b58fcd1a77967"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.init (cognitive 34): PeekabooBridgeServer.init has cognitive complexity 34 (threshold 15). Drivers by points: if/else 18 (19 pts), boolean chains 14, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"2082c272a4c5070dfdf13df0c749f3b0bd85af5c126adddfa216b425d1c7e175"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.validateBrowserSessionRequest (cognitive 34): PeekabooBridgeServer.validateBrowserSessionRequest has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 11, match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserSessionHandoff.swift"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2222fcb18931fac09bc79b514eec866abb9b2f7f09456bd9fc40fa610c071d"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickCommand.validate (cognitive 33): ClickCommand.validate has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 9 (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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand\u002BValidation.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"950dba9a51a6ec959a227cfaa7b261a116644a73f92d6930e197662aba714f39"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickService.resolveTargetElement (cognitive 33): ClickService.resolveTargetElement has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (31 pts), boolean chains 1, 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"2764000df77f7196ef88d37bd198e4da0223ff7f7db54a08cf46d35dd49ea350"}},{"ruleId":"D2","level":"warning","message":{"text":"DetachedAXObservationWorker.inspect (cognitive 33): DetachedAXObservationWorker.inspect has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 13, if/else 9 (13 pts), ternaries 5 (6 pts), error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f7aefc3a3c2867bc00ddb75c89938991cc83e1ac978916897a17ff2f7505a3"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPToolContext.backgroundTargetAuthorization (cognitive 33): MCPToolContext.backgroundTargetAuthorization has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 11, error handling 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b616f74a7a2e3597371875216cf22de2e0a479e32571ac1f5c244d7dc8500a"}},{"ruleId":"D2","level":"warning","message":{"text":"AppToolActions.handleQuitAll (cognitive 33): AppToolActions.handleQuitAll has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (21 pts), error handling 3 (6 pts), boolean chains 5, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e7816428bb59476a2ffbfc91fccaa4fc0cb72dabc451a24fcbbf4e89963e61"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuTool.handleClickAction (cognitive 33): MenuTool.handleClickAction has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 6 (18 pts), error handling 6 (10 pts), if/else 5 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MenuTool.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1b8118bdc66129a094a86d6907334548bbf85870ee9674fe11e8e14421d853"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeAgentExecutionPipeReader.read (cognitive 33): PeekabooBridgeAgentExecutionPipeReader.read has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (28 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f48d5f363069effc4273fbd30ce703824d90f816cc0eec407d3d95228ae2d9"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeClient.requireNegotiatedInputCapabilities (cognitive 33): PeekabooBridgeClient.requireNegotiatedInputCapabilities has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17, boolean chains 16. 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed34bf49f38b0a4ae7c05ac0be889a74cdfb5ddc16ba5752455f5c55ba25cf9e"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeClient.verifyAttestedResponse (cognitive 33): PeekabooBridgeClient.verifyAttestedResponse has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 14, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f2f42f63d033440a1cc84a491ed37472eb1acfb35d55e23f8742f7be8cd742"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeHost.handleClient (cognitive 33): PeekabooBridgeHost.handleClient has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (24 pts), ternaries 2 (5 pts), error handling 2 (3 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost\u002BClients.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90c658a821edf364b21e5a47ba18ef01d92077dc29e7bc5cb2a91bdce5de866"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationResultSemantics.browserResponseProgressMismatch (cognitive 33): PeekabooBridgeOperationResultSemantics.browserResponseProgressMismatch has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 19, if/else 11 (14 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics\u002BBrowser.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3c709a607be167f01362aca9eda147b8022d1a560f34bff65be5e355aea8c1"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationElementResolver.resolveScrollTarget (cognitive 32): AutomationElementResolver.resolveScrollTarget has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 11, ternaries 2 (4 pts), loops 1, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AutomationElementResolver.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"1915071fbd7f663f38842da3e497273804bdc4aed7ef08fd7d3f6993ba528ed7"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowRoutedPointerDriver.scrollTrackingDispatch (cognitive 32): WindowRoutedPointerDriver.scrollTrackingDispatch has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 4, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowRoutedPointerDriver.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c3093b3f6c8ccdd412921bdf016f1bceafe17deb51cb21cc28523efdeb7a11"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooAgentService.runGenerationLoopBody (cognitive 32): PeekabooAgentService.runGenerationLoopBody has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (23 pts), match/switch 1 (3 pts), error handling 1 (2 pts), ternaries 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"802cb04034fc1cc10a07c6c13ac49a20772b3ff82beae867d1c0612c7d5bbfa5"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserMCPSessionManager.connectUnlockedWithOutcome (cognitive 32): BrowserMCPSessionManager.connectUnlockedWithOutcome has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 5, error handling 4 (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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a6cadb1d473ac6c1886e596de8a2a0862a7d71f938321a4252b62e35686e39"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalyzeTool.languageModel (cognitive 32): AnalyzeTool.languageModel has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (26 pts), boolean chains 5, match/switch 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AnalyzeTool.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"65525afce37f77fde18c6aaff772f50b621d7e96165f524ef6ec24b0f39de079"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptBundle.validateIntegrity (cognitive 32): PeekabooBridgeOperationReceiptBundle.validateIntegrity has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 25, if/else 5 (6 pts), error handling 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"440a01fe23e1469b94fc8ff068d4b51984f60fa671cd0ba307489136f15b5e2d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentCommand.runTauTUIChatLoop (cognitive 31): AgentCommand.runTauTUIChatLoop has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (23 pts), error handling 4 (6 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BChat.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"231e5ba30519f796ae2f53bbbc2a6feb3d9b162a69df8501f841bac1af297c91"}},{"ruleId":"D2","level":"warning","message":{"text":"PasteCommand.performClipboardPasteTransaction (cognitive 31): PasteCommand.performClipboardPasteTransaction has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (20 pts), error handling 8 (9 pts), boolean chains 2 (nesting depth added 7). Of this number, 30 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e37a6d0e53a6aa8d8c94b2ef9dad801b858e4a2dfd60f10aa1afcfb82a3789f"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollCommand.run (cognitive 31): ScrollCommand.run has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (20 pts), ternaries 2 (4 pts), boolean chains 3, match/switch 1 (3 pts), error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad2e07f2b05263de0d46ba31ce94494167a14c7c9b406a9ee98f4a22d794a38"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeCapabilityPolicy.firstUnmetRemoteRequirement (cognitive 31): BridgeCapabilityPolicy.firstUnmetRemoteRequirement has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16, boolean chains 13, ternaries 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf9a5a728ec08e83ae90731595744fc6aca386d6778b26b7aec7e5ebd463081"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeHostResolver.resolveSnapshotAffinityOwner (cognitive 31): RuntimeHostResolver.resolveSnapshotAffinityOwner has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (18 pts), loops 4, ternaries 3 (4 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BSnapshotAffinity.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fd8a2138d4ff5a9bd2b88c94a94bb2ccc2a8039e13423c6f26514b301c9f49"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenCaptureWindowPlanExecutor.execute (cognitive 31): ScreenCaptureWindowPlanExecutor.execute has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (20 pts), error handling 3 (6 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitWindowPlanCache.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7f874bf7c6571846019ee4045f71df40f945ada6dc6c54155fcdace28ed854"}},{"ruleId":"D2","level":"warning","message":{"text":"ApplicationService.performApplicationRelaunchWithOutcomeOwnedLane (cognitive 31): ApplicationService.performApplicationRelaunchWithOutcomeOwnedLane has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (22 pts), error handling 3 (5 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BLifecycle.swift"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"8735c0326a16146533aa3b3134c2405e0af8296b3d409c7122a930599b6ec21c"}},{"ruleId":"D2","level":"warning","message":{"text":"ForegroundModifierClickExecutor.attemptClick (cognitive 31): ForegroundModifierClickExecutor.attemptClick has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (17 pts), error handling 4 (12 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ForegroundModifierClickExecutor.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7bb808fe477e129d5929737e2cdc4eddf0d06fd6eee51732c2ce51679bfe851"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeLiveAgentExecutionRunner.runDetached (cognitive 31): PeekabooBridgeLiveAgentExecutionRunner.runDetached has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 8, error handling 5 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionRunner.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"785d94c64549045920ef10a5933c38f6f43a6fa136a89ca90cf633b7a0ca972b"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeDesktopObservationBinding.validateApplicationEvidence (cognitive 31): PeekabooBridgeDesktopObservationBinding.validateApplicationEvidence has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 12, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6dc5506ea1c9a12b95a6419d3d9f1f56afb93a5e5c2a255791cd990c4ce6d04"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.allowedOperationsToAdvertise (cognitive 31): PeekabooBridgeServer.allowedOperationsToAdvertise has cognitive complexity 31 (threshold 15). Drivers by points: if/else 21 (22 pts), boolean chains 9 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandshake.swift"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"675b7662f3001f98f525f9b035d7e4e40a32312cc82adf8db7804a832ec91f87"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopActionSequenceAccumulator.successResolution (cognitive 31): DesktopActionSequenceAccumulator.successResolution has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 12, if/else 9 (12 pts), ternaries 2 (6 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionSequenceAccumulator.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10d2f4528ed1c42fb57a9fde3484771cb6f1cf7163ceca7093b1426c93811f1"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentCommand.runLineChatLoop (cognitive 30): AgentCommand.runLineChatLoop has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (19 pts), error handling 6 (10 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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BChat.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"999003c12c3040bec8160d99c509d87599658aeca4a1523a1b4d970615575596"}},{"ruleId":"D2","level":"warning","message":{"text":"SeeCommand.requireBoundTreeOnlyEvidence (cognitive 30): SeeCommand.requireBoundTreeOnlyEvidence has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 24, if/else 5 (6 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BDetectionPipeline.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35f65062e1ce04d8718cc26e3a81a560998f187507f04ca2d8f94c30f71a899"}},{"ruleId":"D2","level":"warning","message":{"text":"CommanderCLIBinder.validateDialogBeforeRuntimeResolution (cognitive 30): CommanderCLIBinder.validateDialogBeforeRuntimeResolution has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 8, error handling 1 (nesting depth added 7). Of this number, 25 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder\u002BDialogs.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a1a1c1cf7b9b00d083be0cf709ad080da4d950c133b53738a0f68ea0d24c2f"}},{"ruleId":"D2","level":"warning","message":{"text":"FocusCommandUtilities.swift.ensureFocused (cognitive 30): FocusCommandUtilities.swift.ensureFocused has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (15 pts), match/switch 3 (6 pts), error handling 2 (5 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 11). 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/FocusCommandUtilities.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2b3a78337e38e38e0a82417a36047975740e0ad249085fa2a8a0bf094f261f"}},{"ruleId":"D2","level":"warning","message":{"text":"ApplicationService.readMutationInventory (cognitive 30): ApplicationService.readMutationInventory has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 6, loops 1, ternaries 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BDiscovery.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"8172b8db19ae2d78e33277cdce25bc0a752096666ca2f4a84e0ed32e6ae5d0fc"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentToolArgumentValidator.validate (cognitive 30): AgentToolArgumentValidator.validate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 4, loops 1 (3 pts), match/switch 1 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolArgumentValidation.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd07411d4019c35ac01093d0d0ce84f677fa329b0ea8fdeaa871c48185e38533"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogTool.validatedDialogResultTarget (cognitive 30): DialogTool.validatedDialogResultTarget has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 10, error handling 3 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DialogTool.swift"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"75061f03cf5315554c466278d471272263538296acc9856b9ac7db3750fa7ba5"}},{"ruleId":"D2","level":"warning","message":{"text":"AIProviderParser.determineDefaultModel (cognitive 30): AIProviderParser.determineDefaultModel has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (26 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Utils/AIProviderParser.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb266cb6908114db0441f705bbb970439944d9d50c34f83bf05b7c3123cd0f9"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeAgentExecutionPaths.validateAndPrepare (cognitive 30): PeekabooBridgeAgentExecutionPaths.validateAndPrepare has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 25, if/else 5. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f4641100c9bbbfd039a3a5155a685f3ad071ba8aa14c6012cde9e39582ddde"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeBrowserHandoffGrantRegistry.bootstrap (cognitive 30): PeekabooBridgeBrowserHandoffGrantRegistry.bootstrap has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 6, error handling 1, match/switch 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserSessionHandoff.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13c8980cfdf13488f7109d9867903f40a560b91ca8cf58e129b159c60692f81"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeClient.handshakeCandidate (cognitive 30): PeekabooBridgeClient.handshakeCandidate has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 30. 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd6567ca8784fe4b9e659c85b7e3e3a04a5429215b2101c9ab4fd2edff03a3b"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationResultSemantics.finalizeSuccessful (cognitive 30): PeekabooBridgeOperationResultSemantics.finalizeSuccessful has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 5, ternaries 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ddcb23383bf28ec2e19491fb3df9e0fafd52dac22e90e8baa880048bce666f2"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentCommand.unavailableImplicitCustomModelToolCapabilityError (cognitive 29): AgentCommand.unavailableImplicitCustomModelToolCapabilityError has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 6, loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BModelParsing.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7eb67a36804cfb3abd603ff4db1bf768dccfd21e222fe7cd45aa5e9b112762"}},{"ruleId":"D2","level":"warning","message":{"text":"GitStalenessProbe.swift.runGitStalenessProbe (cognitive 29): GitStalenessProbe.swift.runGitStalenessProbe has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (19 pts), ternaries 1 (4 pts), boolean chains 3, loops 1 (2 pts), error handling 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/CLI/Utilities/GitStalenessProbe.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70da053974b9d0df3a5219a991af34174e76e847fb6f4d8a792715c11e63dba"}},{"ruleId":"D2","level":"warning","message":{"text":"CertificationControllerBuildIdentityResolver.current (cognitive 29): CertificationControllerBuildIdentityResolver.current has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 24, if/else 5. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerBuildIdentity.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"259ba591aeb782596922d2a723545ad6e49bc1273b8313b8d3b5f88d30c638be"}},{"ruleId":"D2","level":"warning","message":{"text":"HeldPointerCertificationPlan.validate (cognitive 29): HeldPointerCertificationPlan.validate has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 20, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/HeldPointerPlan.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a19e7ed5e1f29e6b41742deaf2bfb55ecea7d59326261e8574101975de6563"}},{"ruleId":"D2","level":"warning","message":{"text":"CaptureArtifactIntegrityValidator.retainedRegularFile (cognitive 29): CaptureArtifactIntegrityValidator.retainedRegularFile has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 16, if/else 7 (12 pts), loops 1 (nesting depth added 5). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/CaptureArtifactIntegrityValidator.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"82aac76f5457942aca38fd79602a66931ab2a0aa2084d9775be278393d1aa03b"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenCaptureKitProcessCapabilityRegistry.removeStaleMarkers (cognitive 29): ScreenCaptureKitProcessCapabilityRegistry.removeStaleMarkers has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 7, error handling 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitProcessCapabilityRegistry.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"d019616d92b672c941d6dc782f8e32274f435eb088a4245efac1c34a6706c83e"}},{"ruleId":"D2","level":"warning","message":{"text":"StableRegularFileReader.readStableRegularFile (cognitive 29): StableRegularFileReader.readStableRegularFile has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 4, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/StableRegularFileReader.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f174fb26aa0820b3a19694d9ac3d4b8eaae08184d2439ce16b2c8c9b39f6073"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickService.performActionClick (cognitive 29): ClickService.performActionClick has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (21 pts), error handling 2 (5 pts), boolean chains 2, match/switch 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"9acf439263bc96c62a42644af7421225a592d48f92ea7bc3095f9ff7a15dc975"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeService.resolveTargetElement (cognitive 29): TypeService.resolveTargetElement has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService\u002BTargetResolution.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"6358f004c1f1ecaddc6781b67f1279b43dc06f1a448143058b64026de1e547e6"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeService.executePixelFocusType (cognitive 29): TypeService.executePixelFocusType has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (18 pts), error handling 7, boolean chains 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ae69f49867b45fe5e68c42d0a1d077fc291401a619aa44c79142f0714d95f5"}},{"ruleId":"D2","level":"warning","message":{"text":"DragRequest.init (cognitive 29): DragRequest.init has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 7 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool\u002BTypes.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"318a9131cd1fd93d9772f9b91d759408472bc4b3e26c8a3addb40d82144d3ec6"}},{"ruleId":"D2","level":"warning","message":{"text":"PasteTool.performClipboardPasteTransaction (cognitive 29): PasteTool.performClipboardPasteTransaction has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (19 pts), error handling 8 (9 pts), boolean chains 1 (nesting depth added 6). 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee849b2ccc62df7781bf58506dc36f68d04a8ec82e77e18a6ff247c64455d5d"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeTool.focusIfNeeded (cognitive 29): TypeTool.focusIfNeeded has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 5 (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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/TypeTool.swift"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"76739d5a9d5eb98eefb16c83cb7d0f0d2ca8455b9df6b1d2d4b0018ad522e47c"}},{"ruleId":"D2","level":"warning","message":{"text":"VerifyStateTool.sample (cognitive 29): VerifyStateTool.sample has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 4 (8 pts), error handling 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"859e2911e1eb6ad8297b911cf005ffa8409e3e85aa51997e60017f04da7343ff"}},{"ruleId":"D2","level":"warning","message":{"text":"VerifyStateTool.resolveApplication (cognitive 29): VerifyStateTool.resolveApplication has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (17 pts), boolean chains 4, error handling 2 (4 pts), match/switch 2 (4 pts) (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"82dad94af255f29e045b170eb2241b66876eb588e03e38f57687ed65c53bb296"}},{"ruleId":"D2","level":"warning","message":{"text":"CredentialFile.updateCredentials (cognitive 29): CredentialFile.updateCredentials has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 11, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/CredentialFile.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe297d8c05206e4bc1a8b7f0628452d8901b146e79f0e8b2e4914f5a88455393"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeCertificationMonitorSealPayload.validate (cognitive 29): PeekabooBridgeCertificationMonitorSealPayload.validate has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 23, if/else 6. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationMonitorSealValidation.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"faecc5598f113c6fe8e2e42931685a2876042f5945de1d3ea3f6671dcf23d7ac"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperation.compatible (cognitive 29): PeekabooBridgeOperation.compatible has cognitive complexity 29 (threshold 15). Drivers by points: if/else 29. 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeModels.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"89afb071c5b5f07487b6193635b585a7a3da6aa1d6ad0cedfdc0ec3c3ec29165"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeSelectorResolutionBinding.observationMismatch (cognitive 29): PeekabooBridgeSelectorResolutionBinding.observationMismatch has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeSelectorResolutionBinding.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09e16084814c2111cdfbf760db128601caaa3cae024783baf240a1cfde5958d"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopActionSequenceAccumulator.interruptedBatch (cognitive 29): DesktopActionSequenceAccumulator.interruptedBatch has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 7, ternaries 2 (5 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionSequenceAccumulator.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"e942c0f1b082b33302d329792199ae5f5002842f78e3ec2b5194d761a4ef6f8c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentCommand.runInternal (cognitive 28): AgentCommand.runInternal has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 5, error handling 2, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"8688d5f00ff523520350f9b1d09668a23f7746681c8a39f47a5e26a5c7b84a8e"}},{"ruleId":"D2","level":"warning","message":{"text":"DarwinProcessLoopbackListenerInspector.inspect (cognitive 28): DarwinProcessLoopbackListenerInspector.inspect has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/DarwinProcessLoopbackListenerInspector.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"983d66c3a4307d9443895a71f675b6ac037c0deba9a267c4c25fc74ccc43510f"}},{"ruleId":"D2","level":"warning","message":{"text":"DetachedAXWindowEnumerationWorker.enumerate (cognitive 28): DetachedAXWindowEnumerationWorker.enumerate has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 11, loops 2, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/DetachedAXWindowEnumerationWorker.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c0f82d8fe2c0fc3376d260d27284179768dc3f32236a81cf9bfacb22b5db54"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogService.findDialogViaApplicationService (cognitive 28): DialogService.findDialogViaApplicationService has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 8, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BVisibility.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eac5aa8fea72eaeb6240b697752f7068958198d5df063915ad8efb608597aff"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuService.getMenuBarItemsFromAppsAX (cognitive 28): MenuService.getMenuBarItemsFromAppsAX has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 6, loops 3 (5 pts) (nesting depth added 12). Of this number, 24 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraAccessibility.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"360876615e04b79e4aa46b991241c18cf9cdb4915c4291082a65dcb0dbabf609"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuService.makeMenuExtra (cognitive 28): MenuService.makeMenuExtra has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 9, ternaries 4 (8 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraWindows.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"451aee923eefcb0cd168f7f897f92bdd6b272ab207e4eb75d22c2cb511d0b734"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowToolFormatter.formatListScreensResult (cognitive 28): WindowToolFormatter.formatListScreensResult has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 5, ternaries 3 (5 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter\u002BWindowResults.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a0a0779f676fefb08549bcde7e306e75f86d82713e087fac1c1f62a576030f"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigurationManager.expandEnvironmentVariables (cognitive 28): ConfigurationManager.expandEnvironmentVariables has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (22 pts), boolean chains 3, loops 1 (2 pts), error handling 1 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BParsing.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"65debbe6946e92e2c3b33d31bf65071ac32389c087d2c7ed54e29b752247c6c0"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeCertificationObserverSemanticPayload.readback (cognitive 28): PeekabooBridgeCertificationObserverSemanticPayload.readback has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 24, error handling 2, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationObserverSemanticPayload.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f37d7cefd6d80c10dcd59d0008afc577388f37dea3b7867c0b22499c78e4f04"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeClient.handshakeAuthentication (cognitive 28): PeekabooBridgeClient.handshakeAuthentication has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 13, if/else 7 (11 pts), error handling 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 6). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4adfbe5b0a5ff660741bcfd952853bd0d3b260e5f6a4980f09df6877ab194b3"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeClient.installHandshakeCandidate (cognitive 28): PeekabooBridgeClient.installHandshakeCandidate has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 7 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6c79765187307e87f5725b8c7defdc0be119f972f136265702c1724a149a40"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeDesktopObservationBinding.validateScreenSemanticOwner (cognitive 28): PeekabooBridgeDesktopObservationBinding.validateScreenSemanticOwner has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 14, if/else 9 (13 pts), error handling 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff95ec9751d66bee48a6b5f7e601f0c25c05f75fd13575c5551a832872263f80"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.handleHeldPointerRequest (cognitive 28): PeekabooBridgeServer.handleHeldPointerRequest has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 6, error handling 2 (4 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHeldPointer.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a458b2ac876fb354272d9247a0733d82a00d8c8d7e34f8ed80d280a41db49091"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooServices.refreshAgentService (cognitive 28): PeekabooServices.refreshAgentService has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 15, if/else 8 (11 pts), error handling 1 (2 pts) (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BAgent.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7164ee0a67fa77947e8af4b222f09025f6ac1ba80a4763789ac74bcc3462d8"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeCommand.validate (cognitive 27): TypeCommand.validate has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 6 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/TypeCommand.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"515129836c1430c2a6ed6c12c2561c3349dcc41c1f92bc90963e24c7065bbad2"}},{"ruleId":"D2","level":"warning","message":{"text":"MoveWindowSubcommand.run (cognitive 27): MoveWindowSubcommand.run has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (20 pts), error handling 2 (4 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/SpaceCommand\u002BMoveWindow.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"996aa299c5cd122a4247d4b7a9c27efb49a489d1021f8732ea99274ee656b9dc"}},{"ruleId":"D2","level":"warning","message":{"text":"DaemonLaunchPolicy.launchDaemon (cognitive 27): DaemonLaunchPolicy.launchDaemon has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (21 pts), error handling 3 (5 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonLaunchPolicy\u002BLaunch.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a3b9189a19a2ca3e7a43951ef7001048dec5a2ab05f91844857ce69ad8ceb1f"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickService.executeClick (cognitive 27): ClickService.executeClick has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (17 pts), error handling 4 (6 pts), boolean chains 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"322c813e8af1795218f4955f2fce9a49a1c5eb9cd7bcc1c32609f7a532f3e402"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooAgentService.balancedJSONFragments (cognitive 27): PeekabooAgentService.balancedJSONFragments has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 4, ternaries 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec8f73be59b39f41a55038b278cbfe12c6a12c47ae5437ca1788ddab2651431"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooAgentService.handleToolCalls (cognitive 27): PeekabooAgentService.handleToolCalls has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (16 pts), error handling 3 (7 pts), loops 2 (4 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"a142576bdc2be0dbab2c21785ab4630b888847ce2df65d278f3de5a38c08439c"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserMCPService.transferConnection (cognitive 27): BrowserMCPService.transferConnection has cognitive complexity 27 (threshold 15). Drivers by points: error handling 6 (12 pts), if/else 5 (10 pts), boolean chains 4, match/switch 1 (nesting depth added 11). Of this number, 25 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6d48fbdf5a45c14a57156f7953abe7504bd016293ea7f9f7f81bfeeef6da8e"}},{"ruleId":"D2","level":"warning","message":{"text":"PasteTool.execute (cognitive 27): PasteTool.execute has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (16 pts), error handling 7 (10 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"89dbf7e5e04f70f2106cf8af79bb530595e39cf8c8a0de4b654d0d910967ecec"}},{"ruleId":"D2","level":"warning","message":{"text":"VerifyStateTool.finalScreenshot (cognitive 27): VerifyStateTool.finalScreenshot has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 3, error handling 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BResponse.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e0ed007aaf9f928867bc91f5e96aec89bb70662af03478f4e094d778ad4ddf"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuSystemToolFormatter.formatListMenuItemsResult (cognitive 27): MenuSystemToolFormatter.formatListMenuItemsResult has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (17 pts), ternaries 4 (9 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter\u002BMenu.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e7bdba6e7389ecc984672cff9a61d633e3a3f16d16d2452683ce3ed29bb4d9"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemToolFormatter.formatCompactSummary (cognitive 27): SystemToolFormatter.formatCompactSummary has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (19 pts), ternaries 2 (6 pts), boolean chains 1, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/SystemToolFormatter.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"e482fb7cdfd04d4e13f09bcfbd4c447ca082808ffec597894611fc5e542bdc73"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowToolFormatter.formatCompactSummary (cognitive 27): WindowToolFormatter.formatCompactSummary has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 2, ternaries 1 (2 pts), match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de3a27230a662ffd7996444c9ff8daddbc10ad0826343a023859bf868786557"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateSelectedLeafEvidence (cognitive 27): PeekabooBridgeOperationReceiptSemantics.validateSelectedLeafEvidence has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 5, loops 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"690b89a3add35a52621bd9d377a69b8d4686cb50cf1b3f86441fd409c5529f14"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.windowMutationResponse (cognitive 27): PeekabooBridgeServer.windowMutationResponse has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 8, error handling 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BMutationProof.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4b8fc8ac366635823d0b43545babdc5e8264cff9b4bd9da3760ffb469d1374"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooSettings.updateConfigFile (cognitive 27): PeekabooSettings.updateConfigFile has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 1 (3 pts), boolean chains 2, error handling 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Core/Settings.swift"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e9dba27ae62edd3cb580abd7599d9089681085a79e6eda2d16f57053397d50"}},{"ruleId":"D2","level":"warning","message":{"text":"SeeCommand.validateTarget (cognitive 26): SeeCommand.validateTarget has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 13, if/else 6 (12 pts), match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand.swift"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"766fb8ff357468fa8be11178844f3406996104e8bf8d8ec8ef438deac1298e45"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeDiagnostics.report (cognitive 26): BridgeDiagnostics.report has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (17 pts), ternaries 1 (3 pts), boolean chains 2, loops 2, match/switch 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BDiagnostics.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a4d82209113a2df882215bc5b794295bb750c130c42d66ee09b49ee8a0e41a"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveForegroundSemanticObserver.connect (cognitive 26): LiveForegroundSemanticObserver.connect has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 24, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ForegroundSemanticObserver.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28c415da4ca8d1c1d24419eb968a1864972da4e395f4911b3583817a68ed083"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveCertificationBridge.connect (cognitive 26): LiveCertificationBridge.connect has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 19, if/else 7. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/LiveCertificationBridge.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b034b45c34ba57af9027e58e790f854fa78790d887d9db89a2a0e9721e882c7"}},{"ruleId":"D2","level":"warning","message":{"text":"ElementValueMutationSemantics.exactDecimalInteger (cognitive 26): ElementValueMutationSemantics.exactDecimalInteger has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 5, ternaries 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementValueVerification.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef0c6ade2cbd5bddeb597eb33ce52e1bc697fb989dff113bd5ef5e8b452cb6e"}},{"ruleId":"D2","level":"warning","message":{"text":"PinnedWindowGeometrySequence.swift.completePinnedWindowGeometry (cognitive 26): PinnedWindowGeometrySequence.swift.completePinnedWindowGeometry has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 3, match/switch 1 (3 pts), loops 1 (2 pts), error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/PinnedWindowGeometrySequence.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"da26039199ccab79ca8b8ca161a5d67084ff17f992f782ba8c9b915b31537be5"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentToolMCPBridge.providerContextMessages (cognitive 26): AgentToolMCPBridge.providerContextMessages has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 14, if/else 3 (6 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 6). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolMCPBridge\u002BProviderContext.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7926214815562a670be8bca40c07253a03e137131e8231758e07b121f91bb7f"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolEventSummary.toMetaValue (cognitive 26): ToolEventSummary.toMetaValue has cognitive complexity 26 (threshold 15). Drivers by points: if/else 23 (26 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/ToolEventSummary.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fcae73ea71deb2a2b806a1ea54e7ff134903b484763abf7c1a172ffba1f70d3"}},{"ruleId":"D2","level":"warning","message":{"text":"CredentialFile.readCredentialSnapshot (cognitive 26): CredentialFile.readCredentialSnapshot has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 4, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/CredentialFile.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1f2a6eeeab08c4bd01134f4c2dc0b5ffa51edb5d4765eb7520243972868bfd"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeAgentExecutionExecutable.stableExecutableSHA256 (cognitive 26): PeekabooBridgeAgentExecutionExecutable.stableExecutableSHA256 has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 17, if/else 7 (8 pts), loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf55994b4bcc202f00a60fe6a44788e7d1a536f3b5376361c96bc028388c9f2"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeAgentExecutionAcknowledgementReader.stableRead (cognitive 26): PeekabooBridgeAgentExecutionAcknowledgementReader.stableRead has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 17, if/else 7 (8 pts), loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2047dbffdb47e561dd6b643c1f546c7d52e7135b625c30f2ed5dc636d5c01f"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.handleExactWindowTargetedHotkey (cognitive 26): PeekabooBridgeServer.handleExactWindowTargetedHotkey has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 5 (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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"48fe82fcd9dc72a06cb2d9b43b209f26c854c1de5939432aca53e44779492061"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooServices.determineDefaultModelWithConflict (cognitive 26): PeekabooServices.determineDefaultModelWithConflict has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19, boolean chains 6, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BAgent.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57790be3217766c1a7eb9cd5c9d964551b1f6b97844350df1af6f4a9206255e"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuBarClickVerifier.waitForPopoverResolution (cognitive 25): MenuBarClickVerifier.waitForPopoverResolution has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (16 pts), error handling 4 (8 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":"Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarClickVerifier.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c4761565675619587e7993bbb78b0f03d7850dc01cde220002487693aa9b02"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserCommand.arguments (cognitive 25): BrowserCommand.arguments has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserCommand.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"af81a3a0dbb1463bf64438b6c2a6ae09f6bde2d687f41725039303e8714db747"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeMCPToolSnapshotMutationCoordinator.completeMutation (cognitive 25): RuntimeMCPToolSnapshotMutationCoordinator.completeMutation has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 15, if/else 5 (6 pts), ternaries 3 (4 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationInvalidator.swift"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb03a2f8496a8a2fe3aa0128436aded37f2178c50486b25eb191a9008e2a769"}},{"ruleId":"D2","level":"warning","message":{"text":"DaemonControlClient.stopAndWait (cognitive 25): DaemonControlClient.stopAndWait has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (16 pts), error handling 3 (5 pts), ternaries 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/DaemonCommand.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea52e313cb023a8d960090f6243088797a9269a15ac570e622acb8452f3cfb0"}},{"ruleId":"D2","level":"warning","message":{"text":"AXTreeCollector.textualDescendants (cognitive 25): AXTreeCollector.textualDescendants has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (19 pts), boolean chains 5, loops 1 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AXTreeCollector.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10fbf1c09d6e123661cfb43b53751a6f090f43cfc47cf699bf0187936eab0da"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickService.validateSnapshotTarget (cognitive 25): ClickService.validateSnapshotTarget has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 7, error handling 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"f888c55f50c9d40874a964181c16310aeeec2ac0112ac25d3dded17427ac9bee"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogService.discoveryTree (cognitive 25): DialogService.discoveryTree has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 4, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BDiscovery.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99112d164ad2f064a858d4f9ea2c162155ccbb67aad0d0464b630d15580952e"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogService.executeBackgroundDialogInput (cognitive 25): DialogService.executeBackgroundDialogInput has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 5, error handling 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc7baab342f9fea3dfc23892f292db45e238ceed190aed039beabfdde1b0fc9"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuService.getMenuBarItemsFromControlCenterAX (cognitive 25): MenuService.getMenuBarItemsFromControlCenterAX has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 11). Of this number, 21 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraAccessibility.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"df957ba45fa4c5e57a54ed5d88927a2ea5085b7daa4379b504e92903ae59f517"}},{"ruleId":"D2","level":"warning","message":{"text":"TextInputRoute.resolve (cognitive 25): TextInputRoute.resolve has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 12, if/else 6 (12 pts), loops 1 (nesting depth added 6). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TextInputRoute.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e40e67dc96ddcb031fb1b13ae344c85bfe59f01b13f01bd7ec10791dff565a2"}},{"ruleId":"D2","level":"warning","message":{"text":"UIAutomationService.requireExactWindowKeyboardFocus (cognitive 25): UIAutomationService.requireExactWindowKeyboardFocus has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (6 pts), ternaries 2 (5 pts), match/switch 1 (3 pts), error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementLookup.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f932eeeb86a2e369c225bc5f7e838b372d4984bbfae1450b98157745a36ae6"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentExecutionTraceSanitizer.sanitizeArgument (cognitive 25): AgentExecutionTraceSanitizer.sanitizeArgument has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17 (25 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentExecutionTrace.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"beba5c44ebdda70aca5fe692a4411ad46e906db491c5a4482459a0400535a3e5"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentToolArgumentValidator.validate (cognitive 25): AgentToolArgumentValidator.validate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 1 (3 pts), boolean chains 2, match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolArgumentValidation.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"28cc5ab3db3d63b9768e047f832e046b5478af6db22a86ac2c532e5082bac3a9"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentToolMCPBridge.observationProviderValue (cognitive 25): AgentToolMCPBridge.observationProviderValue has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 15, if/else 7 (9 pts), match/switch 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolMCPBridge\u002BProviderContext.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26523f2aded16cfbb9304fa532907f929d554ec2783e912dc15d1372ef0830f"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserTool.executeCapabilityBound (cognitive 25): BrowserTool.executeCapabilityBound has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (15 pts), error handling 4 (6 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e7e89579e1b51d5289e7d88e9816771e59a48fcd0b9d0cc8666e52fc36d914b"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogTool.perform (cognitive 25): DialogTool.perform has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (22 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DialogTool.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"e81a944dfe58413b61fad34ccf23a8235fd8d38fd0463e223a4c621f5a032936"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectTextTool.execute (cognitive 25): SelectTextTool.execute has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 6, error handling 2, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SelectTextTool.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ce01c3fab8a36d8477f9c516e47e36aa8b0f644541657458d75a0fc6a4ad90"}},{"ruleId":"D2","level":"warning","message":{"text":"VisionToolFormatter.extractElementSummary (cognitive 25): VisionToolFormatter.extractElementSummary has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 6, loops 2 (4 pts), ternaries 2 (4 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/VisionToolFormatter.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b97f996bd7cd0ff78c75b13e317ea8957d0f68f129b02e4d9e1c18d34fc568"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeBrowserHandoffGrantRegistry.endSession (cognitive 25): PeekabooBridgeBrowserHandoffGrantRegistry.endSession has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 5, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserSessionHandoff.swift"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e6f2c118b98bb48760083351ec1ec6968251324e5ddb1b64beaa1b970364e1"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeCertificationCrashInventoryPairPayload.validate (cognitive 25): PeekabooBridgeCertificationCrashInventoryPairPayload.validate has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 22, if/else 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationCrashInventoryPayload.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"4884c144f97ac6bca3ef4f886efdbb5768ba2214a1bb911d9388eaf2ac2e1537"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeClient.validateReceiptlessProjectedTarget (cognitive 25): PeekabooBridgeClient.validateReceiptlessProjectedTarget has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 10, match/switch 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11f9f03c816ca7dcc2336200b8b40fe5f0c90af3b0390765fad483399fbe77f"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validatePostMutationWindow (cognitive 25): PeekabooBridgeOperationReceiptSemantics.validatePostMutationWindow has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 15, if/else 8 (9 pts), match/switch 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb835d867ca3952b0fd39be8df5b42eae02444dc20f327f5ba01058bdc815f2"}},{"ruleId":"D2","level":"warning","message":{"text":"SeeCommand.observationTargetForCaptureWithDetectionIfPossible (cognitive 24): SeeCommand.observationTargetForCaptureWithDetectionIfPossible has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (19 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BObservationRequest.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcf14958646a063271c7c0baf27814822ad004cfc28cda4a26ed5930e6513b1"}},{"ruleId":"D2","level":"warning","message":{"text":"DragCommand.validateInputs (cognitive 24): DragCommand.validateInputs has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 9 (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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b12a5de7d5c7edb7119be5d8819441d0d58912e6a89b708743e40c67fe53b64"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuBarActionCommand.resolveClickTarget (cognitive 24): MenuBarActionCommand.resolveClickTarget has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 11, if/else 7 (10 pts), error handling 2 (3 pts) (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/MenuBarCommand.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb42fe56e3b16753b70feec8fcf7d062b9268c82c1de2028f0006da6a2ad293b"}},{"ruleId":"D2","level":"warning","message":{"text":"BuildStalenessChecker.swift.parseGitStatusOutput (cognitive 24): BuildStalenessChecker.swift.parseGitStatusOutput has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 5, ternaries 1 (3 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":"Apps/CLI/Sources/PeekabooCLI/CLI/Utilities/BuildStalenessChecker.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"4672164cd2b9bc312aa7156d9af340ec9547bb295a0b47180f19abc47c018f98"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowCommand\u002BGeometryVerification.swift.evaluateWindowGeometryOutcome (cognitive 24): WindowCommand\u002BGeometryVerification.swift.evaluateWindowGeometryOutcome has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 7 (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":"Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand\u002BGeometryVerification.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fffd13affcc631441e7d43c28f096a94a5160bdd7a43ef8ccaeca1687baada"}},{"ruleId":"D2","level":"warning","message":{"text":"HeldPointerCertificationRunner.validateHandshake (cognitive 24): HeldPointerCertificationRunner.validateHandshake has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 23, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/HeldPointerRunner.swift"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac49f6ad3b140ceb2290361df7757ac1333a3713e8c5087f81ef7cdd2f43cf7f"}},{"ruleId":"D2","level":"warning","message":{"text":"CertificationPrivateArtifacts.readOwnerPrivateFile (cognitive 24): CertificationPrivateArtifacts.readOwnerPrivateFile has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 14, if/else 8 (9 pts), loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/PrivateArtifacts.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe4ec1df165463b66ecd1dcaa97e23e7072a95c37b46840d0fe968323591784"}},{"ruleId":"D2","level":"warning","message":{"text":"SpaceWindowMutationDispatcher.moveWindow (cognitive 24): SpaceWindowMutationDispatcher.moveWindow has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceWindowMutationDispatcher.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d8df4082fd7585359cda48727247473a805d47c143de5be13a271c8292dcf4"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopObservationROIProcessor.apply (cognitive 24): DesktopObservationROIProcessor.apply has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 15, if/else 7, ternaries 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationROI.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b342b40f53ad5ebe43fd086435a3771855487fae4dbc90897a7a8343a5ebac"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopObservationROIProcessor.validateApplied (cognitive 24): DesktopObservationROIProcessor.validateApplied has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 22, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationROI.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bcbaa453c9393a20360fbc8624c160ecafad404379ec371b72cb1dfb1c5209"}},{"ruleId":"D2","level":"warning","message":{"text":"ActionInputDriver.performPageScrollActions (cognitive 24): ActionInputDriver.performPageScrollActions has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (18 pts), error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c525b36ef91a38e628268fca99c63ab0281e32da4c8c5864da46b52db2e825"}},{"ruleId":"D2","level":"warning","message":{"text":"ElementDetectionResultBuilder.makeResult (cognitive 24): ElementDetectionResultBuilder.makeResult has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 12, if/else 9, ternaries 2 (3 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionResultBuilder.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ff9155488900e0ef775957c0ee48f5e4db939aa232925f16069529c86f0675"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuService.makeMenuExtraDisplayName (cognitive 24): MenuService.makeMenuExtraDisplayName has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 7, match/switch 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraSupport.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f68c61af468e04516129cb9094ca7ec44e256b52dbde9aaef335854faa8c94"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserMCPSessionManager.inspectStatusUnlocked (cognitive 24): BrowserMCPSessionManager.inspectStatusUnlocked has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 3 (4 pts), error handling 3, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8462f408e48dad9841ea17f1534f1cb3cef110bb761dcd5098a82394c374797"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserToolCapabilityProjection.balancedJSONEnd (cognitive 24): BrowserToolCapabilityProjection.balancedJSONEnd has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (20 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserToolCapabilityProjection.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4c99eb46f3d7d41169ddb38dc0bf03777a5049f0e4888c987bba70e9f8de18"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPToolContext.completeMutation (cognitive 24): MCPToolContext.completeMutation has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 5 (8 pts), boolean chains 7, if/else 6 (7 pts), error handling 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de9fe4653208548c378e80016397c0340e13362f6522af474f33c2b70d6c54b"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserTool.execute (cognitive 24): BrowserTool.execute has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (11 pts), error handling 9, boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ecc6ca8f1d584055b9fa534b5127062df37142cdad0337d567dd4ce5dd2fce"}},{"ruleId":"D2","level":"warning","message":{"text":"InspectUITool.execute (cognitive 24): InspectUITool.execute has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 3, error handling 2, ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1bf97536c9ca384cd0329956756f9e0b6ac9c3c854d1fdf5bd1c2e8ffc3eac9"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeTool.performOrdinaryType (cognitive 24): TypeTool.performOrdinaryType has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (19 pts), error handling 5 (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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/TypeTool.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa7d44082f84711f70b3526e341f86a05492ccc7a826c8b035ee27f75c49f03"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowToolFormatter.formatListSpacesResult (cognitive 24): WindowToolFormatter.formatListSpacesResult has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (19 pts), ternaries 3 (5 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter\u002BSpaceResults.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e17ba1b6e232eab1322773c1f7028c63cf2afe1f66aba853f68aa1b11ad0f3b"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeAgentExecutionPaths.provisionOperationReceiptDirectoryBeforeRelease (cognitive 24): PeekabooBridgeAgentExecutionPaths.provisionOperationReceiptDirectoryBeforeRelease has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 14, if/else 6 (9 pts), error handling 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"132a81b3315194e98aadc91326c886b56fa408073325e7e22c8a4cc58b2171fa"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeAgentExecutionOutputExtractor.convert (cognitive 24): PeekabooBridgeAgentExecutionOutputExtractor.convert has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift"},"region":{"startLine":1384}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4640deec6adaeca57430e4b5887f7bbe7e9d4053e4b756050614d716e66dacf"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeHost.makeListeningSocket (cognitive 24): PeekabooBridgeHost.makeListeningSocket has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 5, loops 1 (3 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost.swift"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"5efe90e27098c55d431f208524a7230c0c9efe54a95f02ca29430258601015d0"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateResponseOutcomeConsistency (cognitive 24): PeekabooBridgeOperationReceiptSemantics.validateResponseOutcomeConsistency has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 7 (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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":1411}}}],"partialFingerprints":{"codehealthFindingId/v1":"1daf6544ae36582f67d9a853d8dd87febcbfb6c237a4d8d626c0267ec413b912"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptAuthority.commitSessionCreation (cognitive 24): PeekabooBridgeOperationReceiptAuthority.commitSessionCreation has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 13, if/else 8 (11 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceipts.swift"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec37c8c8ce2517008396e8653d52509e81ed152d1c396b705894589c220c31ec"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.handleAuthorized (cognitive 24): PeekabooBridgeServer.handleAuthorized has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 3, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6673a3aeee57a5be42e0fdc66b2caaa9ba308438bff3674b5fa68402a0221c"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionTitleGenerator.selectModel (cognitive 24): SessionTitleGenerator.selectModel has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 13, if/else 9, match/switch 1 (2 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Services/SessionTitleGenerator.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"6775150e5aac13b461452d093fcba809adc149ebb944bc0ab4793ee48de3d6f2"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentCommand.supportedParsedModel (cognitive 23): AgentCommand.supportedParsedModel has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 3 (6 pts), boolean chains 1, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BModelParsing.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"0941415651d24641e172f19736d5702d735254992a579ba4ac79a14651c60d6b"}},{"ruleId":"D2","level":"warning","message":{"text":"SeeCommand.outputTextResults (cognitive 23): SeeCommand.outputTextResults has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (14 pts), ternaries 3 (5 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BOutput.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc989459fcadb218cffebb1632a6e28e1abb9149e7a4584bd1dc995e1a3a3d9c"}},{"ruleId":"D2","level":"warning","message":{"text":"VerifyCommand.run (cognitive 23): VerifyCommand.run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 1 (3 pts), error handling 2, match/switch 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/VerifyCommand.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bac6507998612d48c0908fdbc01e031ca4783b368b8abf63e8e893c6b638a31"}},{"ruleId":"D2","level":"warning","message":{"text":"CommanderCLIBinder.requiresSilentCapture (cognitive 23): CommanderCLIBinder.requiresSilentCapture has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 15, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"74becd145bd9265d700800194ed383fd4f761f2b245cfff63bb01c4249d9d15b"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveForegroundSemanticObserver.readSemanticValue (cognitive 23): LiveForegroundSemanticObserver.readSemanticValue has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 18, if/else 5. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ForegroundSemanticObserver.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"3094fc66eedfb073531a949bb24319b606e30e4775519d865c5ebc2ded4e1a68"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectorResolutionProof.applicationMismatch (cognitive 23): SelectorResolutionProof.applicationMismatch has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 9, match/switch 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationSelectorResolutionProof.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4b8befba3657d951968e0f0958db9751d1e0310165a8150f1e2e889ebf9e8b"}},{"ruleId":"D2","level":"warning","message":{"text":"BoundedArtifactFile.read (cognitive 23): BoundedArtifactFile.read has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4, ternaries 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/BoundedArtifactFile.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"768125363b12abc4293706267dcc24d401b1502ba5af9a123d061207eae0090b"}},{"ruleId":"D2","level":"warning","message":{"text":"DetachedAXObservationWorker.process (cognitive 23): DetachedAXObservationWorker.process has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, boolean chains 4, match/switch 1, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"030dccb9593bd7ea0f0a7c4b1aeb37d41b82859cc8ea12c9213b18fac6ff0e9c"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooAgentService.resolveRemoteBrowserOpeningForEnd (cognitive 23): PeekabooAgentService.resolveRemoteBrowserOpeningForEnd has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (19 pts), error handling 2 (3 pts), match/switch 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BTools.swift"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5411adeb95ced04d9e98b84f6f57d7d9aa98632ea0b23c2ead8877dbd11320e"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserMCPUploadStager.copy (cognitive 23): BrowserMCPUploadStager.copy has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPUploadStager.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fed26814f903869232a790fe7a5ae151ee1e5c3bf800a7febed070d96c37768"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserToolCapabilityProjection.containsUnmappedIssueResourceUID (cognitive 23): BrowserToolCapabilityProjection.containsUnmappedIssueResourceUID has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (6 pts), boolean chains 4, match/switch 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserToolCapabilityProjection.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"9000313c9d3a00ebd7c4ac88483c176df224c3d2061c9f42fffc391b29790e2a"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPToolArgumentValidator.validateClosedProperties (cognitive 23): MCPToolArgumentValidator.validateClosedProperties has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 4 (7 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolArgumentValidation.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb67c8f81cd44d70e7b602f62ee1abc4ccb7d935bde77cfdc6c8a0f484478e9"}},{"ruleId":"D2","level":"warning","message":{"text":"PressTool.dispatchSequence (cognitive 23): PressTool.dispatchSequence has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (5 pts), boolean chains 3, error handling 3 (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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de40d5771653c424b1a846629934af2ece890372e16cc9f7508750865983554"}},{"ruleId":"D2","level":"warning","message":{"text":"VerifyStateTool.resolveExactWindowFromCompleteInventory (cognitive 23): VerifyStateTool.resolveExactWindowFromCompleteInventory has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 3 (6 pts), ternaries 1 (3 pts), error handling 2, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc48edf24c6416012e8cd3c41211bb0c5338f4105780bb06f5e151632858ae94"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuSystemToolFormatter.formatCompactSummary (cognitive 23): MenuSystemToolFormatter.formatCompactSummary has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (22 pts), match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d551cbd818de486665f38de62c32da0ffe29e0dc6f284874e081fbed82ef437"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooAIService.resolveAvailableModels (cognitive 23): PeekabooAIService.resolveAvailableModels has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 7 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Services/AI/PeekabooAIService.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"588c0328b54eb906c288c10f7d6d349b618339432693597c6128fdf2fb8ed0e7"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeClient.unwrapResponse (cognitive 23): PeekabooBridgeClient.unwrapResponse has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (19 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b0c001102bd6e4584dcc548a5db7cdb17c52063d614661ccd561a6c852e232"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeHost.peerInfoIfAllowed (cognitive 23): PeekabooBridgeHost.peerInfoIfAllowed has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 7 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost\u002BClients.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ddf98d5759e0646616919aa871dbd4b4a8ce6e30107d7287712530ae8ae253"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateFailureResponseSemantics (cognitive 23): PeekabooBridgeOperationReceiptSemantics.validateFailureResponseSemantics has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 7 (10 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0cf7fa91b0321c0e2ff857ad50debd47a4af405ed1fbd3d4c5860ac06f9f35"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptAuthority.retireDeadClientSessions (cognitive 23): PeekabooBridgeOperationReceiptAuthority.retireDeadClientSessions has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 5 (9 pts), loops 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceipts.swift"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d74cb2984a18c84c61e4f02566fe8c2eaf1bd2128069f31b4b6e13b0476fd03"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.performAttestedOperation (cognitive 23): PeekabooBridgeServer.performAttestedOperation has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, error handling 3, match/switch 2 (3 pts), ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BOperationReceipts.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"515f220b769b59e20d6126d0308b84796a8a1b56df063b4057cb1597df49b88e"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyboardView.body (cognitive 23): KeyboardView.body has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (18 pts), ternaries 4 (5 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Playground/Playground/Views/KeyboardView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea465340ef61fbe82c5c2279eb3ba4e0d66cbe960efa20f49080a72624b80cbd"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuBarPopoverResolver.resolve (cognitive 22): MenuBarPopoverResolver.resolve has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverResolver.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49f1d3d2fda6a301f93df10bd0e17798ed8e461b36005c8e4038f17e517ebe6"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractionObservationInvalidator.invalidateLatestSnapshotsAcrossKnownHosts (cognitive 22): InteractionObservationInvalidator.invalidateLatestSnapshotsAcrossKnownHosts has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, error handling 1 (2 pts), loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationInvalidator.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e40add89aaa7e71ced6cbb292a0678eecdf2c43c7e4070e162b909118c8b28"}},{"ruleId":"D2","level":"warning","message":{"text":"CleanCommand.run (cognitive 22): CleanCommand.run has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (19 pts), error handling 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/CleanCommand.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f46024eda428cddac28ae547f78b9e93c4888e53c1c66f656dfbfc329fb7a7d"}},{"ruleId":"D2","level":"warning","message":{"text":"CertificationCodeIdentityPlan.validate (cognitive 22): CertificationCodeIdentityPlan.validate has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 16, if/else 3 (5 pts), match/switch 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/CodeIdentityRunner.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae94cde6a3f8565b6879c24f70dc2285974a06c95d32621ca34bb7ba59d287d"}},{"ruleId":"D2","level":"warning","message":{"text":"DetectionTruncationInfo.remediationMessage (cognitive 22): DetectionTruncationInfo.remediationMessage has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (9 pts), match/switch 4 (8 pts), ternaries 3 (5 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationRequestModels.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb4c37893d7a8079947030df3b64bcc6f720796244d18b02ce8eda69ff5d717"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopObservationService.validateCaptureReceipt (cognitive 22): DesktopObservationService.validateCaptureReceipt has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 19, if/else 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService\u002BCapture.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f690a3641d363d6f7e62dccb106536de7b45e9a1585c7c2b3222d12cb62eef7"}},{"ruleId":"D2","level":"warning","message":{"text":"BackgroundInputDriver.click (cognitive 22): BackgroundInputDriver.click has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 8 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ae858b19a29b6fef2f4599f3671dc65107c1311ebe3062c81108a05093d552"}},{"ruleId":"D2","level":"warning","message":{"text":"DetachedAXObservationWorker.attachingFocusedTextSelection (cognitive 22): DetachedAXObservationWorker.attachingFocusedTextSelection has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 16, if/else 4, ternaries 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker\u002BTextSelection.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f7d89ec941696eace32a0ba33ee82be3fd642ebc889eb3cb90f220849f6c4d"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogService.updateFilename (cognitive 22): DialogService.updateFilename has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogFilename.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d7f92e3fc5b362b7341ce656743e15a8d07123906b80cbee7d7c43aeb051dc"}},{"ruleId":"D2","level":"warning","message":{"text":"ExactWindowHeldPointerLifecycle.drag (cognitive 22): ExactWindowHeldPointerLifecycle.drag has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (10 pts), match/switch 1 (4 pts), error handling 2 (3 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ExactWindowHeldPointerLifecycle.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"308985c110b8a01a4fd99f0315836da3611cb4048566ca8ad126ceb0dd206c11"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooAgentService.executeToolCall (cognitive 22): PeekabooAgentService.executeToolCall has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 1 (2 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"09197783016460371a38967e4a0e007418a247fd6910477e00b70e9c526af6ea"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooAgentService.remoteBrowserClient (cognitive 22): PeekabooAgentService.remoteBrowserClient has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BTools.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"115eb4589d9888564719db31ae3736898009da2284b0d5380a76ec3bf5194828"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolEventSummary.shortDescription (cognitive 22): ToolEventSummary.shortDescription has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/ToolEventSummary.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b6fdc74d9945a8effb6234f83acd0354103bf2caae3faba21641660a4759cb"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserTool.statusMetaFields (cognitive 22): BrowserTool.statusMetaFields has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (18 pts), ternaries 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8bcc1e489bf88a300120f8769bd2a6cb3468f70495da605ce4249bd493b5492"}},{"ruleId":"D2","level":"warning","message":{"text":"VisionToolFormatter.formatCompactSummary (cognitive 22): VisionToolFormatter.formatCompactSummary has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 3, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/VisionToolFormatter.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b61c71b5bacd074abbca724ccff9e343269f70c01ebb3019c07ed12fd413f78"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigurationManager.validate (cognitive 22): ConfigurationManager.validate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f545349fa37e3f84a16da18e22b896170faffc4e221da7a20ca9d208102df56"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeDesktopObservationBinding.validateDisplayEvidence (cognitive 22): PeekabooBridgeDesktopObservationBinding.validateDisplayEvidence has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 1, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"367fcd8e24b2ef95b8f774535552ad9137e3180ff62e2a8830ddfa7ceff8c196"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeHost.readLeaseMarker (cognitive 22): PeekabooBridgeHost.readLeaseMarker has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 2, loops 2, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost.swift"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"60106da6629218af5a6aa466d70c40ca1195820b6fa8edcb78932c2b1d25006a"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationSessionRefusal.validate (cognitive 22): PeekabooBridgeOperationSessionRefusal.validate has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 18, if/else 3, error handling 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationAttestationModels.swift"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c891becbbf071548f6756fc060074f29d589a30301933847dad984eee92f746"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeActionResultRule.init (cognitive 22): TypeActionResultRule.init has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultContracts.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"3246d4dc37514a5060409924d51059a8d70c812ccef7446bbe3024c7cf061e0d"}},{"ruleId":"D2","level":"warning","message":{"text":"TypedResponseRule.isConsistent (cognitive 22): TypedResponseRule.isConsistent has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (21 pts), match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultContracts.swift"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd13592e3b738daee26eb939ef99fae1b2e14d4670220313292be114719e830"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.handleBrowserConnect (cognitive 22): PeekabooBridgeServer.handleBrowserConnect has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BBrowserConnect.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3486c6acea9753f8e209cce4fca3fcb89702ba17e9a7b19467af85bf3f3eb297"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooSettings.hasValidAPIKey (cognitive 22): PeekabooSettings.hasValidAPIKey has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 17, if/else 3 (4 pts), match/switch 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Core/Settings.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"763c7c5f6c99b6d29249a55641efb550bcc10285b91d7da9b836351ad653b01a"}},{"ruleId":"D2","level":"warning","message":{"text":"SeeCommand.prepareResult (cognitive 21): SeeCommand.prepareResult has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 5, ternaries 1 (2 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand.swift"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"2852cca4b5a20e9f3a5c044ccad1d7946e17f64ba45b7b4bc3aedfb0bfa806ce"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeReceiptVerifier.readPrivateBundle (cognitive 21): BridgeReceiptVerifier.readPrivateBundle has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 14, if/else 5, match/switch 1 (2 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BReceipt.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"95183d562c92465d57452db8bf8993c0bd5c5a83669106bbb955c8af535e3416"}},{"ruleId":"D2","level":"warning","message":{"text":"CaptureActionManifestWriter.write (cognitive 21): CaptureActionManifestWriter.write has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 5, error handling 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"b838bb4a88b04c52954f83b94919f5983bebd3a93968f9c12df8e5c7ab53e52c"}},{"ruleId":"D2","level":"warning","message":{"text":"BridgeCapabilityPolicy.firstUnmetObservationRequirement (cognitive 21): BridgeCapabilityPolicy.firstUnmetObservationRequirement has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, if/else 9, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"168f9490ab91706bb28a10eeb4e5eb595e8d562fbd9555c01c2cff6a99c99f20"}},{"ruleId":"D2","level":"warning","message":{"text":"UIAutomationActionResultSequenceAccumulator.recordTargetMetadata (cognitive 21): UIAutomationActionResultSequenceAccumulator.recordTargetMetadata has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (9 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/UIAutomationActionResultSequenceAccumulator.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2c36f9afa39db2a028a522db2ea3299bd864b5942a7bd73f1aec41db32a34c"}},{"ruleId":"D2","level":"warning","message":{"text":"ApplicationService.listApplications (cognitive 21): ApplicationService.listApplications has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 5 (6 pts), boolean chains 3, loops 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BDiscovery.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f27900e4610f087a118dc2b5ef7cd4a11137306b05c2ee987eb1cc4a8b80e7"}},{"ruleId":"D2","level":"warning","message":{"text":"ApplicationService.requestApplicationVisibility (cognitive 21): ApplicationService.requestApplicationVisibility has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, error handling 3, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BLifecycle.swift"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb3852d48d6e4d2e87f1724e55e9aaa391c53c10c059980f40bfb7cb56eda0e"}},{"ruleId":"D2","level":"warning","message":{"text":"ActionInputDriver.performScrollbarActions (cognitive 21): ActionInputDriver.performScrollbarActions has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (15 pts), error handling 1 (3 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"4878a53cdca56b083479ebdf3de98e649684a373c33cab5470299ec203d3ac88"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogService.visitFileDialogTree (cognitive 21): DialogService.visitFileDialogTree has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogTraversal.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9754f39fd934b6774e1b874ea53ca42fce6ed2f23660298054df77b1d744f82e"}},{"ruleId":"D2","level":"warning","message":{"text":"ExactWindowDragRequest.validate (cognitive 21): ExactWindowDragRequest.validate has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 20, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ExactWindowDrag.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d525dc05b159b8f08e31225c7a9cee711a4a78095fd236d7d1fe86b1baac55"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPToolArgumentValidator.discriminatorMatches (cognitive 21): MCPToolArgumentValidator.discriminatorMatches has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolArgumentValidation.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"26104be43823c4170f06b0f27c72529b49d3b65fe2cbf037b5f63152101486bc"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolFiltering.apply (cognitive 21): ToolFiltering.apply has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 1 (4 pts), ternaries 1 (4 pts) (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Support/ToolFiltering.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"816a0f49a81f45d3d08213b3374629b9ceec5183023e4b268b6c2c649a270c51"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolResultExtractor.extractCoordinate (cognitive 21): ToolResultExtractor.extractCoordinate has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 3 (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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/ToolResultExtractor.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a55b1ee40d177979386424d0966c6afd2baa1f79d86bf543720f6d9cd2f6214"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserTool.formatStatus (cognitive 21): BrowserTool.formatStatus has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, ternaries 2 (3 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"8105fec3d72941331d285f1f2fc8870228cb0e2355ae93eb0c0e7c9f58af8270"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemToolFormatter.formatError (cognitive 21): SystemToolFormatter.formatError has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, ternaries 1 (3 pts), match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/SystemToolFormatter.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3bb4c35cb1779828cb2496e868b5fdcff8d59705b71e399ce2f6b20cf11da2"}},{"ruleId":"D2","level":"warning","message":{"text":"VisionToolFormatter.formatWindowCaptureResult (cognitive 21): VisionToolFormatter.formatWindowCaptureResult has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5, ternaries 1 (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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/VisionToolFormatter.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"290a3fb369ed1c408d8ddff10447136255cb6525ed0fa890afcaad9f1b21ceab"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeCodeSignatureIdentity.authenticatedCurrentProcessSigningInformation (cognitive 21): PeekabooBridgeCodeSignatureIdentity.authenticatedCurrentProcessSigningInformation has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 18, if/else 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f29d09f60382ec9b067c643aa26cc965c7a29612e6c492145bb7486819af3f6"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeDesktopObservationBinding.validateDetectionOptions (cognitive 21): PeekabooBridgeDesktopObservationBinding.validateDetectionOptions has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 5, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f174e96e40e39c7291d2765a666c0ee19c15bf660551dc4bcb60a23fa2f6452"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeHost.publishSocket (cognitive 21): PeekabooBridgeHost.publishSocket has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost.swift"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"10cbb6492e7c0654040b82390382713306b169b7ccfa35e4f68da19578937c5a"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateDesktopObservationSetupResult (cognitive 21): PeekabooBridgeOperationReceiptSemantics.validateDesktopObservationSetupResult has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 12, if/else 5 (7 pts), ternaries 1 (2 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d57d29ddf607f80a3b31f8f61c40bd53884e58e9c48890cbd7673bc7eebb94b"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeRequestPlan.validateBoundTypedResponse (cognitive 21): PeekabooBridgeRequestPlan.validateBoundTypedResponse has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 8, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultContracts.swift"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"23024c4bee0ee94840f99f230903494f6f84223e0d4550de9f76a3413467cd71"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentExecutionReleaseGate.wait (cognitive 20): AgentExecutionReleaseGate.wait has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/AgentExecutionReleaseGate.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec269336afdd244c2fc9a2bb06b3d72f39ae5182764a18157ee179221a5b820"}},{"ruleId":"D2","level":"warning","message":{"text":"ErrorHandlingCommand.handleError (cognitive 20): ErrorHandlingCommand.handleError has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 3 (6 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandErrorHandling.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff627416350a35618f30460b5ec0915903453524ae8208c02db4fc3060d8b76"}},{"ruleId":"D2","level":"warning","message":{"text":"CaptureActionCommand.createPublicationProbeDirectory (cognitive 20): CaptureActionCommand.createPublicationProbeDirectory has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"72125b8d92687bb7cf3127285e71242698d6832d2bb63f1d7517d65f76f50977"}},{"ruleId":"D2","level":"warning","message":{"text":"LearnCommand.appendCommanderSummary (cognitive 20): LearnCommand.appendCommanderSummary has cognitive complexity 20 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 3 (6 pts), ternaries 1 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/LearnCommand.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"5615c2db7c147d28bb22e59fb0509cb3106dc5a1d5dfc70fc1c9679de9b9f5c2"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickCommand.performClick (cognitive 20): ClickCommand.performClick has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 2 (4 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"98025dfaadd19ce20fad050be0ecb5bae193cdbf44c48ea18f2abc42326ee0ad"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollCommand.validateDeliveryMode (cognitive 20): ScrollCommand.validateDeliveryMode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd95b14f2a3234c555fa6bd21e3958bd895396f811c7b8b766c86aeb46a75bf"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractionCoordinateResolver.resolveBackgroundSnapshotCoordinates (cognitive 20): InteractionCoordinateResolver.resolveBackgroundSnapshotCoordinates has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 8, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionCoordinateResolver.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"7897986fa2c4dff1dfebaedcd96dd8e421eb77f2470a2feb6e55b630670bf503"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeHostResolver.resolveServices (cognitive 20): RuntimeHostResolver.resolveServices has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, error handling 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ad0442e79ff36e8dbe89a01173ce7b3faa4fca92fb91bcff091547949850fe"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeHostResolver.evaluateRemoteCandidate (cognitive 20): RuntimeHostResolver.evaluateRemoteCandidate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 9 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BResolution.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36aaecc5e0f8d4129ff0e0ecfae126c091c46b0d67698fa531db37aeebc670d"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeHostResolver.firstScreenCaptureKitOwnerUnawareHost (cognitive 20): RuntimeHostResolver.firstScreenCaptureKitOwnerUnawareHost has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BScreenCaptureKitOwner.swift"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5fd0f42d6a4d0f1b6a323e59b73bec4248ff96b469449bfa68fe5f2fd93858"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveCertificationBridge.execute (cognitive 20): LiveCertificationBridge.execute has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 13, if/else 7. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/LiveCertificationBridge.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa1795b4605377822d8ec44d0a3d0084a089823b0c6e97fff92df00a94c4141"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoWriter.createStagingDirectory (cognitive 20): VideoWriter.createStagingDirectory has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/VideoWriter.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"103d8a1be84e9d12cf791c8b98dc9ca3d5cb5505d02f2b49f13ffd6520633ad0"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopObservationROIProcessor.exactReceiptMatches (cognitive 20): DesktopObservationROIProcessor.exactReceiptMatches has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 19, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationROI.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a0db39188fd335cac4b0e64e2739ebddc08d314600e9fe8fa60b38441f6231"}},{"ruleId":"D2","level":"warning","message":{"text":"ObservationMenuBarWindowCatalog.bandCandidates (cognitive 20): ObservationMenuBarWindowCatalog.bandCandidates has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarWindowCatalog.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b43bb60ad2967a452a75aa77e9f252de2380f7ae8ccabb889c08c0a5d3c3719"}},{"ruleId":"D2","level":"warning","message":{"text":"ObservationTargetResolver.resolveApplication (cognitive 20): ObservationTargetResolver.resolveApplication has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationTargetResolver.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b27504eeb82a82320cd59c92a1369c7922d4c7a61c78695c87228dd9650bca2"}},{"ruleId":"D2","level":"warning","message":{"text":"InMemorySnapshotManager.invalidateImplicitLatestSnapshot (cognitive 20): InMemorySnapshotManager.invalidateImplicitLatestSnapshot has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 15, if/else 5. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BLifecycle.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bba739e5eebbfdd4c8a8ab9bf3fe19bf200b4726d1b963c528c39f90088bf53"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectorResolutionProof.windowMismatch (cognitive 20): SelectorResolutionProof.windowMismatch has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 13, if/else 7. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/WindowSelectorResolutionProof.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"0682e13a97173bd5c4b7f0478afd06fb96fb552af8472301f79b2f984182611b"}},{"ruleId":"D2","level":"warning","message":{"text":"ApplicationService.prepareApplicationLaunch (cognitive 20): ApplicationService.prepareApplicationLaunch has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 9, if/else 9, ternaries 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BLifecycle.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"245f9b44df7e54ac2e917b7f7c159e9290190a72d189209f9e835cbc5ecb9dae"}},{"ruleId":"D2","level":"warning","message":{"text":"ClipboardService.set (cognitive 20): ClipboardService.set has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardService.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"37684eab5d13ea4c1c8226bd6d04bf1ae6db08696c13b2d8e5b822a034403ef2"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogService.resolveButton (cognitive 20): DialogService.resolveButton has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 8 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BButtonActions.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ecebbd183b43e68971b5acc96a5749b741ddf9075672e5b2dc8170e206c7cd"}},{"ruleId":"D2","level":"warning","message":{"text":"UIAutomationService.findElement (cognitive 20): UIAutomationService.findElement has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementLookup.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1484fb99cf1f967043c779e5c44156b0230b27813e83fd1ecfd9650c009bc97"}},{"ruleId":"D2","level":"warning","message":{"text":"BoundedBackgroundWindowAX.setGeometryValue (cognitive 20): BoundedBackgroundWindowAX.setGeometryValue has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 16, if/else 3, match/switch 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"596a0270710e534ed84a299f1017dcea1ca7c4cde06fefcc4eb0b4f6cde72a6f"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowRoutedPointerDriver.click (cognitive 20): WindowRoutedPointerDriver.click has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 7, if/else 6 (7 pts), error handling 3 (5 pts), loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowRoutedPointerDriver.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a153c54840f0298bff5d1da03ce98c2e1a9b9d1696d2d9cc10f7f27a60e55d7"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooAgentService.reasoningMetadata (cognitive 20): PeekabooAgentService.reasoningMetadata has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 7 (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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4ab752ce83bed4290e2613f31c155d3850166a9cc930ba8ff59d8103d0423e"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPToolContext.backgroundApplicationTargetAuthorization (cognitive 20): MCPToolContext.backgroundApplicationTargetAuthorization has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, error handling 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dfa2a1d7e6ef747ca94de466142696d46213e45f1e30f42d2b15ee91d744e44"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSystemPrompt.interactionSection (cognitive 20): AgentSystemPrompt.interactionSection has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, ternaries 4 (8 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/Tools/AgentSystemPrompt.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"b656fd8aca2bdc7c31cbcab002e1cb8d187fb3a7dc97973d0357ba784b164202"}},{"ruleId":"D2","level":"warning","message":{"text":"PasteTool.dispatchPasteHotkey (cognitive 20): PasteTool.dispatchPasteHotkey has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"0efea8b961fa8fdd0b513af644414683fa4e2dcf422a453e44dc26c3dce09c0f"}},{"ruleId":"D2","level":"warning","message":{"text":"VerifyStateRequest.init (cognitive 20): VerifyStateRequest.init has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 2, match/switch 1, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BTypes.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd2a9f8cbbd589b766fe4f0106284d6097f57a9eeb0c7fbd2776a0fdc1738e3"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowTool.execute (cognitive 20): WindowTool.execute has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 6 (8 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"2288a9d67fc777f6119f41bdfbf106445616875e71974b7ef1c969ad600ccbd8"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooAIService.parseHostedProviderEntry (cognitive 20): PeekabooAIService.parseHostedProviderEntry has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (19 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Services/AI/PeekabooAIService.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cac490279f229833cd0b8b83386ae566ccb3763fbcb9b92165830ca13a62629"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeCertificationCrashInventoryPairPayload.validate (cognitive 20): PeekabooBridgeCertificationCrashInventoryPairPayload.validate has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 18, if/else 1, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationCrashInventoryPayload.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e6632eaba1a173a92d8cc60724e101e3aa3a6ef47a9bd47659f83d3886584b"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeClient.receiptBoundBrowserRequest (cognitive 20): PeekabooBridgeClient.receiptBoundBrowserRequest has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 7 (9 pts), ternaries 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BBrowser.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d871a9ded09673b118a77293b17b04e513fd72f9da438a19677c08017a1d99"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeConnectedHostTrust.validate (cognitive 20): PeekabooBridgeConnectedHostTrust.validate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeConnectedHostTrust.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8704fe1ca5043b0f3ad25f0315d1dae1140cd6150846ec1b9cce902e57d8d0"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateInvalidRequestCarriageRefusal (cognitive 20): PeekabooBridgeOperationReceiptSemantics.validateInvalidRequestCarriageRefusal has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 19, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e55eb65c8dcd644fb19eac1e1cf572a279932370de70529daef36a8f2c78856"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgePrivateReceiptArchive.writeAtomically (cognitive 20): PeekabooBridgePrivateReceiptArchive.writeAtomically has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), error handling 2, loops 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgePrivateReceiptArchive.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"92bbc6ebcc8c63ab4cb4d010794437b917de49bf2adad3ebe5391f48b98be87a"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.updateSnapshotAndElementCapabilities (cognitive 20): PeekabooBridgeServer.updateSnapshotAndElementCapabilities has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ac329811506456d19bb8fbae9e0de052944fa25ed2ec18bb3736c5046959aa"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeWindowContextBinding.applicationScopedFallbackRefines (cognitive 20): PeekabooBridgeWindowContextBinding.applicationScopedFallbackRefines has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 19, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeWindowContextBinding.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"eadb8716728a448efe1e45572bad1cefd5125b69817a69816510d1466377a8e4"}},{"ruleId":"D2","level":"warning","message":{"text":"CommanderMigrationAdvisor.optionError (cognitive 19): CommanderMigrationAdvisor.optionError has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/CLI/CommanderMigrationAdvisor.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"87251636d8a918b702e54b9d987f4d73a9cb14df0d4fd19941a20e3282ca0425"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentCommand.performChatTurn (cognitive 19): AgentCommand.performChatTurn has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), error handling 3 (4 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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BChat.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4942a341e059e287b9e15cfbe783690058bf883fbbfc1c37e1f40a9c0d9167"}},{"ruleId":"D2","level":"warning","message":{"text":"SeeCommand.performScreenCapture (cognitive 19): SeeCommand.performScreenCapture has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, ternaries 2 (3 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BScreens.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb407ccdbf7dcb9f3f1ec5eb0ba89fb2831576290c93ef48e3920cf6c3be313"}},{"ruleId":"D2","level":"warning","message":{"text":"CommanderCLIBinder.applyRuntimeTransportOptions (cognitive 19): CommanderCLIBinder.applyRuntimeTransportOptions has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 7 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"434c145d5caf15d01ed5bf3c08073094bedfe31f3dabbea9df6d883c6131570b"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderStatusReporter.envSource (cognitive 19): ProviderStatusReporter.envSource has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 5, loops 1 (2 pts), match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BStatus.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7fa99fe60f0e122f51adb5e1e1290f690e05d1e99450db364b8eaec39f5b31"}},{"ruleId":"D2","level":"warning","message":{"text":"PasteCommand.withInteractionMutationInvalidation (cognitive 19): PasteCommand.withInteractionMutationInvalidation has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 13, if/else 2 (5 pts), error handling 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b61aeba7fe3f735426fef984147da34633e956d76ea6f07105753ee467619ac"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeHostResolver.resolveExplicitAutomaticClassicCapture (cognitive 19): RuntimeHostResolver.resolveExplicitAutomaticClassicCapture has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 17, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BScreenCaptureKitOwner.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0d0246980b7b9b68a87ce8ff79bca40ca81ee31db1dbccc8f1087bdb2e583d"}},{"ruleId":"D2","level":"warning","message":{"text":"ClipboardCommand\u002BCommander.swift.verifyClipboardWriteIfNeeded (cognitive 19): ClipboardCommand\u002BCommander.swift.verifyClipboardWriteIfNeeded has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1, loops 1, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/ClipboardCommand\u002BCommander.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"6742e2b11fdcaf030cd1eb0458e4e00cfedffb838d344aeb6d331622070d8fd4"}},{"ruleId":"D2","level":"warning","message":{"text":"CaptureArtifactIntegrityValidator.validatePNG (cognitive 19): CaptureArtifactIntegrityValidator.validatePNG has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 15, if/else 4. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/CaptureArtifactIntegrityValidator.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7fa44837f8dadab0c6dd7d46a380549df74e522d7bdf46ce41ad69e8e342d39"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoWriter.abortAndRemovePartialOutput (cognitive 19): VideoWriter.abortAndRemovePartialOutput has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4, error handling 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/VideoWriter.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"219a905ab8fd14a9da24d29086dbd90ef98bd413f031e40fa299416414aac6be"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartLabelPlacer.findBestLabelPosition (cognitive 19): SmartLabelPlacer.findBestLabelPosition has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (19 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationLabelPlacer.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"7168e4f9c680d2b00209adf254767d61c9ce1bc4d77a14d76d38175bf1302a8f"}},{"ruleId":"D2","level":"warning","message":{"text":"InMemorySnapshotManager.detectionResult (cognitive 19): InMemorySnapshotManager.detectionResult has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d66ce5a6cbc8cac1280ddeb66b7e3d42033648b49e4fd9aeac24ea24032b7d9"}},{"ruleId":"D2","level":"warning","message":{"text":"PendingSnapshotCleanupPolicy.shouldPreserveReservation (cognitive 19): PendingSnapshotCleanupPolicy.shouldPreserveReservation has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 3 (6 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/PendingSnapshotCleanupPolicy.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"707894ea5a7a49878cd60b3d9e972e5768177cac7c0c865b4582c5c3d6c43fbe"}},{"ruleId":"D2","level":"warning","message":{"text":"SnapshotManager.getDetectionResult (cognitive 19): SnapshotManager.getDetectionResult has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"15df6ac458df1e3abbc82821227c2018b08b13ce369910aaa9cc7db4d0bcf961"}},{"ruleId":"D2","level":"warning","message":{"text":"ApplicationService.performApplicationLaunchWithOutcomeOwnedLane (cognitive 19): ApplicationService.performApplicationLaunchWithOutcomeOwnedLane has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 pts), error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BLifecycle.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca45c51a0d076256cebde4d55e4197bec39d394626c8c4339ac774547cf11b8"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationElementResolver.application (cognitive 19): AutomationElementResolver.application has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 8, 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AutomationElementResolver.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99deeccd03137d59c01238047a2a67451a2bdec859097297a1fbc0d519d842a"}},{"ruleId":"D2","level":"warning","message":{"text":"BackgroundWindowActivationDriver.prepare (cognitive 19): BackgroundWindowActivationDriver.prepare has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 15, if/else 4. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundWindowActivationDriver.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"74bdba583e6e82706255f143207308627e8abf0b0a455fffe4e456caa41d8f1a"}},{"ruleId":"D2","level":"warning","message":{"text":"ElementDetectionService.inspectReadOnlyElements (cognitive 19): ElementDetectionService.inspectReadOnlyElements has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 7, boolean chains 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionService.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd380ba5e144dd47192a24f51162935360b474404710183a5f8c071d2fa0909"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuExtraAXReader.attributeValue (cognitive 19): MenuExtraAXReader.attributeValue has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 4, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuExtraAXReader.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d9f6991ca2f19fb857d2479079608f946bd2ecc75023b7ef591441f0084a6d"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeService.confirmExactLiteralTypingEffect (cognitive 19): TypeService.confirmExactLiteralTypingEffect has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 7, error handling 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e1175f5a3a9752aec8eef5f798fe352ea90d20ab5bc75ba76c556724522834"}},{"ruleId":"D2","level":"warning","message":{"text":"UIAutomationService.makeModifierClickEvents (cognitive 19): UIAutomationService.makeModifierClickEvents has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BModifierClick.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fedd1d88360206d6648d428d31ea64516a90afd35deedd0b2e8df5cc648e27a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentExecutionTrace.init (cognitive 19): AgentExecutionTrace.init has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 5 (7 pts), boolean chains 2, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentExecutionTrace.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"084b16ea78d07f0eb5752da9928f74415dbfebd2b2145d158567e8a2fe4bed5f"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooAgentService.finishRemoteBrowserQueuedOpening (cognitive 19): PeekabooAgentService.finishRemoteBrowserQueuedOpening has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 1 (3 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BTools.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9e1dd94909a370801320999b9519f606f522cd8c75af8112837fb609bf424e"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserMCPSessionManager.connectWithOutcome (cognitive 19): BrowserMCPSessionManager.connectWithOutcome has cognitive complexity 19 (threshold 15). Drivers by points: error handling 9 (14 pts), if/else 2 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec404500ec19963b1364ede4a9c0ef0dd9cc5fb5e54696ab29eee986536baeb"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserTool.executeAction (cognitive 19): BrowserTool.executeAction has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c70beb9258e0f44272c78e0a686335e6403627c29aaed0d44a061a84f6736a"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickTool.execute (cognitive 19): ClickTool.execute has cognitive complexity 19 (threshold 15). Drivers by points: error handling 8 (10 pts), if/else 4 (7 pts), ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc7e899125e33e3beb20a7462798af4569053e80d904b47bae08fdd0e6ac8f2"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickTool.backgroundProcessIdentity (cognitive 19): ClickTool.backgroundProcessIdentity has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f08d6659a3100f6a7d74c30c23b43f223025447671bd7edd231d1c8ff59eec"}},{"ruleId":"D2","level":"warning","message":{"text":"PasteTool.performBackgroundTextPaste (cognitive 19): PasteTool.performBackgroundTextPaste has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 2 (4 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"7618df6251549ebd05b885737330b3b0fd83a584785c4110a1728d6ed12eb93d"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeBrowserHandoffGrantRegistry.beginMaintenance (cognitive 19): PeekabooBridgeBrowserHandoffGrantRegistry.beginMaintenance has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 2, loops 2, match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserSessionHandoff.swift"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b84bdb69478828f4bf42c54c8d1ad1bbb2775ba0a87cdb83dbf0c804cb77f9"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeClient.desktopObservationWithOutcome (cognitive 19): PeekabooBridgeClient.desktopObservationWithOutcome has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BObservation.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e91e5f24ac7d7237fab91db56996cfc946dd6278cab82e3026046e6c795269e"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptArchiveMaintenance.perform (cognitive 19): PeekabooBridgeOperationReceiptArchiveMaintenance.perform has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), error handling 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptArchiveMaintenance.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d38f49fc09e3732b1c891ad03243faa6253c14226779fb6fb5665e7dde8065"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateTypedResponseSemantics (cognitive 19): PeekabooBridgeOperationReceiptSemantics.validateTypedResponseSemantics has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5, 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabad95b42b0a10e11790cbfe79aed505a1c3348ebde4a21aa2615037e9eab3f"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateDialogResult (cognitive 19): PeekabooBridgeOperationReceiptSemantics.validateDialogResult has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 4, error handling 2 (4 pts), match/switch 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff291b981f03e1e7257f94df3a81ec9bbdce1a2b3397f4a65e69820e6361e5e0"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptPayload.validateTargetState (cognitive 19): PeekabooBridgeOperationReceiptPayload.validateTargetState has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 7 (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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptPayload.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e26c13c2421452fe5485f4e1fd8a22d9e29ee043d3fd7982207c30eae4bacc3"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationResultSemantics.failureOutcomeMatchesContract (cognitive 19): PeekabooBridgeOperationResultSemantics.failureOutcomeMatchesContract has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 8 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3caf1ef3a6ddae989483a9c3fface7769d1c8fb237e2f079f6f2288204a3cca"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.bridgeErrorEnvelope (cognitive 19): PeekabooBridgeServer.bridgeErrorEnvelope has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (10 pts), match/switch 3 (6 pts), boolean chains 2, ternaries 1 (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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"55787204ae090f8033a598925526d716fac114cea5aac75e0265291cb79d8bc6"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.handleAutomationAction (cognitive 19): PeekabooBridgeServer.handleAutomationAction has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 4 (8 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"8557c148dec5ec6d6a6bea0cbfc70fe4675cc65b4ae7cacc552fb84f079a783d"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.updateInputAndLifecycleCapabilities (cognitive 19): PeekabooBridgeServer.updateInputAndLifecycleCapabilities has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"826368d8c387f1b2ca4e947f78c99c194d4a6634ffd257bb5d95cca1cdba2052"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteDesktopObservationService.prepareObservationResult (cognitive 19): RemoteDesktopObservationService.prepareObservationResult has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 6, boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDesktopObservationService.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"0538f506392ac20064b7299bc391db1627804c975148c7ff22692cba03da4cf2"}},{"ruleId":"D2","level":"warning","message":{"text":"APIKeyField.body (cognitive 19): APIKeyField.body has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 3 (6 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Settings/APIKeyField.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"72effd2aed1cfeb655cb32007bc61fbfc2e7d62991a9d4456fff1b7d32416ed0"}},{"ruleId":"D2","level":"warning","message":{"text":"DetailedMessageRow.retryLastTask (cognitive 19): DetailedMessageRow.retryLastTask has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), error handling 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Main/MessageComponents/DetailedMessageRow.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c75b504b3e03acb56a5296375b619c98bc86b99d59898c9059e0df802d98dfe"}},{"ruleId":"D2","level":"warning","message":{"text":"CommanderRuntimeExecutor.invalidateSnapshotsAfterCommandIfNeeded (cognitive 18): CommanderRuntimeExecutor.invalidateSnapshotsAfterCommandIfNeeded has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 3 (5 pts), error handling 2 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/CLI/CommanderRuntimeExecutor.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe5911596aca2d42cc0e56090a54f7887a87414723c7fc00f38204c7f43024d"}},{"ruleId":"D2","level":"warning","message":{"text":"FileDescriptorOutputCapture.replay (cognitive 18): FileDescriptorOutputCapture.replay has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/CLI/Output/DeferredCommandOutput.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6439777816f7b339c646115cb9d7075259815373315b7b649fd807d96f20e7a"}},{"ruleId":"D2","level":"warning","message":{"text":"SeeCommand.validateSpecialCaptureTargets (cognitive 18): SeeCommand.validateSpecialCaptureTargets has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 4 (6 pts), ternaries 1 (2 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1c715ff9627e326fc66d2baa9b3b07893eff236cd2270b2fff3cae9d3622ac"}},{"ruleId":"D2","level":"warning","message":{"text":"VerifyCommand.predicates (cognitive 18): VerifyCommand.predicates has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/VerifyCommand.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9568c9876a7a3620de57b0d3e83a881a812163795a893297c14a79881749866"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationServiceBridge.click (cognitive 18): AutomationServiceBridge.click has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"0842634a02a383986f5943792fc313c69b894bde6e2713efd28be6f424238a94"}},{"ruleId":"D2","level":"warning","message":{"text":"CommanderCLIBinder.prefersLocalRuntime (cognitive 18): CommanderCLIBinder.prefersLocalRuntime has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 18. 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba60df2faba9d6b6ccb62e218edee6d37c23308f203b0a0bfd3e1deb04401a4"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderStatusReporter.credentialSource (cognitive 18): ProviderStatusReporter.credentialSource has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BStatus.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"fceff817e5107ffec528ab60dd07264d35b38f13883760403a47b1a819ae3cd1"}},{"ruleId":"D2","level":"warning","message":{"text":"DragCommand.run (cognitive 18): DragCommand.run has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 1, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52583c100d15b8e451cc0b786431b933ec35c196f65ed47b476d30d366ae12c"}},{"ruleId":"D2","level":"warning","message":{"text":"DaemonLaunchPolicy.machOUUID (cognitive 18): DaemonLaunchPolicy.machOUUID has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6, loops 1, match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonLaunchPolicy.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"436a8c2598eeda145436a29d33c164fdfd96ff19ab5dddebf73ee2efb1d5d2d8"}},{"ruleId":"D2","level":"warning","message":{"text":"CertificationUnixSocket.readJSONLine (cognitive 18): CertificationUnixSocket.readJSONLine has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"f060d95f8e6f5d8622b084507a4fb961994a37af41a2eb9b70d11c715bd84757"}},{"ruleId":"D2","level":"warning","message":{"text":"CaptureCoordinateMapper.globalPoint (cognitive 18): CaptureCoordinateMapper.globalPoint has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 8, match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/CaptureCoordinateMapper.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e316b475ab7a4d6c407598543fc9dc5ad699aa1a75afd44aedb7acc7b1257151"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickService.resolveAutomationElement (cognitive 18): ClickService.resolveAutomationElement has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f471f45b01942c6bc444aebe5c54abb7d6479a480bf99a350ade900b9e75128"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickService.focusExactElementWithOutcome (cognitive 18): ClickService.focusExactElementWithOutcome has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15b08e050c87e6f6c451721df98e502e1b3f9a48537812bfa84469220a5bebb"}},{"ruleId":"D2","level":"warning","message":{"text":"DetachedExactWindowFocusReader.readValue (cognitive 18): DetachedExactWindowFocusReader.readValue has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 2 (4 pts), error handling 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c06ec629a5e943e1a5210a6ce661c4d42e055b9cd50af96b04d017a530ab79f"}},{"ruleId":"D2","level":"warning","message":{"text":"ElementDetectionWindowResolver.stableExactWindowOwner (cognitive 18): ElementDetectionWindowResolver.stableExactWindowOwner has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 14, if/else 3 (4 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionWindowResolver.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d1cc3352ee7761fac7ccd11682278de58fbb991f9babc393c94740e7c26a8b"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeService.performSyntheticType (cognitive 18): TypeService.performSyntheticType has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b4e5647f61ba3ec06bd6f0253bc042c948afd5fb5436c266e1f586a6531e07"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentExecutionTraceBuilder.mutationDispatchState (cognitive 18): AgentExecutionTraceBuilder.mutationDispatchState has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 3 (7 pts), match/switch 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentExecutionTrace.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"11877d117405019ee59354551a7c26962d1dd0b62f97791820d75e68ccf3f2b7"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentExecutionTraceSanitizer.resultSummary (cognitive 18): AgentExecutionTraceSanitizer.resultSummary has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentExecutionTrace.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2fabd13a1fd10b4c5b36a787e9a3e90907792e8ef4514f6fcda8d5a502938b8"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentTurnBoundary.recordSuccessfulCompletion (cognitive 18): AgentTurnBoundary.recordSuccessfulCompletion has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 2 (5 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/QueueMode.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7027863a4a8ff0915d27bd14efabcd595df73b2df9ca3faca4b7ada41a28a4"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserMCPSessionManager.bootstrapAuthorizedHandoff (cognitive 18): BrowserMCPSessionManager.bootstrapAuthorizedHandoff has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (9 pts), boolean chains 5, error handling 3 (4 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"f542fe6446a4ea692d42b5e6b97508ddb4f5b9a6538b5c84d663f8947bbf415e"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserMCPUploadStager.stageSynchronously (cognitive 18): BrowserMCPUploadStager.stageSynchronously has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPUploadStager.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e5fe8c4ede9a26a8635e3b5b8be15c0d3fa77c57813a529c4c3860c3c3791e"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserToolCapabilitySession.resolve (cognitive 18): BrowserToolCapabilitySession.resolve has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 3 (6 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserToolCapabilitySession.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8e23d6939d701aafdfac4314f565de2e085570aa4d54f432cf4bbb4c359340"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPToolContext.validatedBackgroundMutationResponse (cognitive 18): MCPToolContext.validatedBackgroundMutationResponse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 5, ternaries 1 (3 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"4762b6107c1ab087f610d418ff88ddd3c9ddf99f7341d0be9b24808d86e1c915"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogTool.handleFileAction (cognitive 18): DialogTool.handleFileAction has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, ternaries 3 (5 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DialogTool.swift"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7106e6675e8a27955482990513a549e32c72979750940e35ccbf80e6c938006"}},{"ruleId":"D2","level":"warning","message":{"text":"PasteTool.validatePayloadShape (cognitive 18): PasteTool.validatePayloadShape has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa62e8946abf9a3e4063b74a64a989ceb0b6be5d33c971dbf505c2e6271adb44"}},{"ruleId":"D2","level":"warning","message":{"text":"SeeTool.execute (cognitive 18): SeeTool.execute has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 4, ternaries 2 (4 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SeeTool.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a96bbfae42fbbe60c41d8873f470f88713c8531c2a7af78c2af114365fe7959"}},{"ruleId":"D2","level":"warning","message":{"text":"VerifyStateTool.verifyWithinDeadline (cognitive 18): VerifyStateTool.verifyWithinDeadline has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d897c71f3eed04641b6f780eb6722ba4bee303d21077038614bdab5961cef18b"}},{"ruleId":"D2","level":"warning","message":{"text":"UIAutomationToolFormatter.formatTypeResult (cognitive 18): UIAutomationToolFormatter.formatTypeResult has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BKeyboardResults.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72c7de98eee91d0bc952bc4def446a9d8d05d4f98b2a3c3e34db0c23130bbff"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentToolArguments.stringDictionary (cognitive 18): AgentToolArguments.stringDictionary has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 1 (4 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BEnhancements.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac838254c6b7e033916ff4c8a67cc6b3d16c603850224b5a1418e4de62c66756"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeBrowserHandoffGrantRegistry.authorizeSession (cognitive 18): PeekabooBridgeBrowserHandoffGrantRegistry.authorizeSession has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserSessionHandoff.swift"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"db65138da6ff9ced83affc8dcf2e26faecc120639bbea4ae393733cbc73688c8"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeCertificationProducerTransport.authenticateProducer (cognitive 18): PeekabooBridgeCertificationProducerTransport.authenticateProducer has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 17, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerTransport.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a11baf7af5973f14bd8343ffe6a62a2f84d190ded27a220401a9cc323903f5b"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeClient.exactDialogForceDismiss (cognitive 18): PeekabooBridgeClient.exactDialogForceDismiss has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (8 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc85fd71b9608bbf06fedfd905ea51ecb66e2df7ba853b8b262f6306e3676bb"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.handleMenuRequest (cognitive 18): PeekabooBridgeServer.handleMenuRequest has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae06a448f4ee69f26f063ac78ecef9f9ae934493e240dc3d64e918b46c4a67b4"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooServices.configuredCustomDefaultModel (cognitive 18): PeekabooServices.configuredCustomDefaultModel has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (8 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":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BAgent.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6c4dc81690ea8b4871377943b4d3189f64791e0af7ca9a6fca08b65288f88a"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteBrowserMCPClient.openBrowserMCPScopedSession (cognitive 18): RemoteBrowserMCPClient.openBrowserMCPScopedSession has cognitive complexity 18 (threshold 15). Drivers by points: error handling 3 (6 pts), if/else 3 (5 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteBrowserMCPClient.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbbaac084feede6b266f12d8af58ae2a047aa19caf71ca2d15028b2bc0ed4e00"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowTestingView.body (cognitive 18): WindowTestingView.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Playground/Playground/Views/WindowTestingView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"380ea9d0721cdc36d0a6f38f6fbfe1099502e4aac352130d80915fe0a6ddd623"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionChatHeader.body (cognitive 18): SessionChatHeader.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, ternaries 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Main/SessionChatView.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5a0a0e1d4da009ecebaeebca572a6e5f7897f5ce8b7f3a7abc68e41dfb7529"}},{"ruleId":"D2","level":"warning","message":{"text":"BoundedPipeOutput.finish (cognitive 17): BoundedPipeOutput.finish has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 2 (4 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionProcessRunner.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5fb3a353453cf374709c89542a08b11c697e94c929c722dae1bdd88270e026"}},{"ruleId":"D2","level":"warning","message":{"text":"CaptureActionProcessBox.release (cognitive 17): CaptureActionProcessBox.release has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 7 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionProcessRunner.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"0522a7ad8df887bff11350804c523265b0e2f3356e705a245c0494fa8fc66ed8"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickCommand.resolveAndDispatchModifierClick (cognitive 17): ClickCommand.resolveAndDispatchModifierClick has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, error handling 1, match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"feef9d8f4548576d622d11165bb05b44a9e9e16f89a6ad232b6ccc8d90df351b"}},{"ruleId":"D2","level":"warning","message":{"text":"ClickCommand.resolveBackgroundClickTarget (cognitive 17): ClickCommand.resolveBackgroundClickTarget has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d22ad36942e2646781da83f1dcea9ecb23bec2e616e3697c797985c2c39a833"}},{"ruleId":"D2","level":"warning","message":{"text":"PasteCommand.pasteCurrentClipboard (cognitive 17): PasteCommand.pasteCurrentClipboard has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 2 (3 pts), boolean chains 2, error handling 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d6c1f2435af1b9829fa84b36b0d7b7203f92e373cc53633db8f1fad3e8bf425"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeCommand.run (cognitive 17): TypeCommand.run has cognitive complexity 17 (threshold 15). Drivers by points: error handling 7 (13 pts), if/else 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/TypeCommand.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9aab7f69c57139eb90e4086ebf1931a640b23eff79a0c8666a462130f988051"}},{"ruleId":"D2","level":"warning","message":{"text":"SwitchSubcommand.run (cognitive 17): SwitchSubcommand.run has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 2 (6 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b536c6144dd8ef22881a567b39d6299d49aacbde880d7ca0f43b383c543614"}},{"ruleId":"D2","level":"warning","message":{"text":"CleanCommand.printResults (cognitive 17): CleanCommand.printResults has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 3 (6 pts), loops 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/CleanCommand.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"97fa37593c8522906a44c2b532a33c3e180ed0a5838e855c69c96afb672676b7"}},{"ruleId":"D2","level":"warning","message":{"text":"CertificationCodeIdentityRunner.validateImmutableCopy (cognitive 17): CertificationCodeIdentityRunner.validateImmutableCopy has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 16, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/CodeIdentityRunner.swift"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"52cf194562fc675410612baf90d96f67cbf4018ec1f5804ff19b5b6751d7f663"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenRecordingPermissionChecker.evaluatePermission (cognitive 17): ScreenRecordingPermissionChecker.evaluatePermission has cognitive complexity 17 (threshold 15). Drivers by points: error handling 5 (11 pts), if/else 4 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCapturePermissionGate.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"481617a4efe5a5ade8c4620d5ebdad8cb493b565bcd674ee06a1cf1a460e9753"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopObservationService.validateResolvedTarget (cognitive 17): DesktopObservationService.validateResolvedTarget has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (7 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService\u002BOperationLane.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"7746b94de94f2725301fcbfc166a0b49d06e8a1239a1a72e35621bca334b6955"}},{"ruleId":"D2","level":"warning","message":{"text":"ApplicationService.bindSelectorResolution (cognitive 17): ApplicationService.bindSelectorResolution has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BLifecycle.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbcbc60afb318f1dde419e85b2712ef4717c50793eb3d452c9f4336e0ee6d30e"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationElementResolver.bestElement (cognitive 17): AutomationElementResolver.bestElement has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 5, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AutomationElementResolver.swift"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92cede8937e185643526289e920101e9bf7b5f45402abd413074eb4179ce59b"}},{"ruleId":"D2","level":"warning","message":{"text":"ControlCenterIdentifierLookup.loadMapping (cognitive 17): ControlCenterIdentifierLookup.loadMapping has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraSupport.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"87bd286515675a34a9d102fe902b36e6622f0b62fb40a52d8605595c79839d95"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuService.getMenuBarItemsViaWindows (cognitive 17): MenuService.getMenuBarItemsViaWindows has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraWindows.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aee93b0d74ae4302e8144828c1a7bea35ec8b613527c4c66b51296ca9ad523c"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeService.typeActionsByFocusingPixel (cognitive 17): TypeService.typeActionsByFocusingPixel has cognitive complexity 17 (threshold 15). Drivers by points: error handling 9, if/else 4 (5 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1971f26cf2fa44f20ef7ac165bfe6b64399e41cb94c387d6baf430eea81216a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentExecutionTraceSanitizer.baseResultSummary (cognitive 17): AgentExecutionTraceSanitizer.baseResultSummary has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 1, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentExecutionTrace.swift"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f8d118e17fc2ef71817cc655dddf1ead625b70e481b0143391eb6296a29aad"}},{"ruleId":"D2","level":"warning","message":{"text":"ReasoningReplayTarget.init (cognitive 17): ReasoningReplayTarget.init has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":1487}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4acbd03216322f3217d329ecae620f0a86342ff84a71a1a1195cba15e8ba34"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooAgentService.isAgentCancellation (cognitive 17): PeekabooAgentService.isAgentCancellation has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BLoopLifecycle.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0605f169999726cd0065432b4e42902843122dac06db3f89254e50532be8ed7"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserMCPChannelEndpointResolver.parseActivePort (cognitive 17): BrowserMCPChannelEndpointResolver.parseActivePort has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 12, if/else 4, 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPChannelEndpointResolver.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1e5c62d38b10ff928c7e5d69326b1dcf880896cfeedb947ac4754387fb1c04"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserMCPProviderConnection.version (cognitive 17): BrowserMCPProviderConnection.version has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 8 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPProviderConnection.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"013313040665528bfdd5f3903ebab0ccd38c99fb084c6353d9403b19716bf374"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolResultExtractor.int (cognitive 17): ToolResultExtractor.int has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (ToolResultExtractor.double) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/ToolResultExtractor.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"593b11d71bdadeba50e691d78f3d3401059435050f247eda6640499354841d28"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolResultExtractor.double (cognitive 17): ToolResultExtractor.double has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (ToolResultExtractor.int) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/ToolResultExtractor.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"af683eadd3ad37611b5ccde751cf695b308fadc24dc5847c21ff67a57f9e3750"}},{"ruleId":"D2","level":"warning","message":{"text":"SeeElementTextFormatter.describe (cognitive 17): SeeElementTextFormatter.describe has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 6, ternaries 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SeeTool\u002BFormatting.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"110889718badc199a38ee741aa79d857e18064defb9af7de70cd0d5a6bb415e6"}},{"ruleId":"D2","level":"warning","message":{"text":"SpaceTool.handleList (cognitive 17): SpaceTool.handleList has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SpaceTool\u002BHandlers.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec9b1231414006d810c506969e2a3742525ff3e82a6e92b48bde50e719365ed"}},{"ruleId":"D2","level":"warning","message":{"text":"SpaceTool.moveWindowToSpecificSpace (cognitive 17): SpaceTool.moveWindowToSpecificSpace has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), error handling 1 (2 pts), boolean chains 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SpaceTool\u002BHandlers.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ad43d7ea673a3f5a6e0d144b2486c7a0c7d36772deecc2eccd7777c2f80638"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeTool.resolvePixelFocusTarget (cognitive 17): TypeTool.resolvePixelFocusTarget has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 4, error handling 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/TypeTool.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dcb07de7419ff072a710c295fd246e7e197222c06600ae28fa61c1ea9ecab04"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuSystemToolFormatter.menuItemDetails (cognitive 17): MenuSystemToolFormatter.menuItemDetails has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter\u002BMenu.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd76d02e78a3ae63e1e95829c419af07afc032d7eb805d50c53357f49b0ce1f"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemToolFormatter.formatWaitResult (cognitive 17): SystemToolFormatter.formatWaitResult has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/SystemToolFormatter.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"5908ba52a9148acd150ced98120b59d923c8d52b585fbea20ca9a83734fb82b1"}},{"ruleId":"D2","level":"warning","message":{"text":"UIAutomationToolFormatter.formatScrollResult (cognitive 17): UIAutomationToolFormatter.formatScrollResult has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 4. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BPointerResults.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd062b44a183161646923d1548ba82ed37c99d54bac7df810ae9a01d7f5e492"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelMessage.sanitizedForProviderContext (cognitive 17): ModelMessage.sanitizedForProviderContext has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 5, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":1380}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb50263bf5f042bb8f8b99b9c76cac2a2f0bffe6ac1bbc5972fc1a30c3380b30"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeCaptureBinding.validateWindow (cognitive 17): PeekabooBridgeCaptureBinding.validateWindow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCaptureBinding.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"16518d7d921503bb5eb03977fa60a4d1f3053abba853e2fb348238e9e60f904b"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeClient.exactDialogEnterText (cognitive 17): PeekabooBridgeClient.exactDialogEnterText has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 6, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0013f904513ab58745df2cadbbf0407fae94f8428903ae297e904ae3f8de1e"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeHost.acquireLease (cognitive 17): PeekabooBridgeHost.acquireLease has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, error handling 1, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost.swift"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ec22c200b7a13e282b8af64c43423e706eb00a43578eb8fa236bf663e07579"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.validateFailedTargetAttribution (cognitive 17): PeekabooBridgeOperationReceiptSemantics.validateFailedTargetAttribution has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 3 (5 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"f313e18bf7c81ff3ebe871caa00edf3c01c82a6ee05ce0528ae74006c6db72f5"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationResultSemantics.exactReadTarget (cognitive 17): PeekabooBridgeOperationResultSemantics.exactReadTarget has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2284983b1f08a91919fb67ef88a83ebe41767b3e7ed5b851175dd518e7f5eb"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationResultSemantics.validateSuccessfulTargetDisposition (cognitive 17): PeekabooBridgeOperationResultSemantics.validateSuccessfulTargetDisposition has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":1487}}}],"partialFingerprints":{"codehealthFindingId/v1":"0895406572a572b82a3381d2c7d3b5449d50a5e4a967b36789a5ab2e5eaad5e8"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgePrivateReceiptArchive.prepareDirectory (cognitive 17): PeekabooBridgePrivateReceiptArchive.prepareDirectory has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgePrivateReceiptArchive.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3ac879b1dddfe54fef72f849a4108e959df1b8d344aef8fd6f691840aec1a4"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopSelectedLeafEvidence.validate (cognitive 17): DesktopSelectedLeafEvidence.validate has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 16, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopSelectedLeafEvidence.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"7904ef4b3ea9ee65b81d92aee932855bb865647a53dd0cb0a12e4aed8e1439a9"}},{"ruleId":"D2","level":"warning","message":{"text":"DetailedMessageRow.body (cognitive 17): DetailedMessageRow.body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, ternaries 3 (4 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Main/MessageComponents/DetailedMessageRow.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"112ed24f03fc70b3e46f64448302e25011b0ee37afdbdc66932d386f3bae44bb"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentExecutionReleaseGate.waitIfConfigured (cognitive 16): AgentExecutionReleaseGate.waitIfConfigured has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 14, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/AgentExecutionReleaseGate.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"707c700d81a0bdac095fb99558828d69de31843a64043defac50926e16b97e62"}},{"ruleId":"D2","level":"warning","message":{"text":"CommanderRuntimeRouter.containsOnlyRecognizedRuntimeOptions (cognitive 16): CommanderRuntimeRouter.containsOnlyRecognizedRuntimeOptions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/CLI/CommanderRuntimeRouter.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"37626cb9b841e71c5b66dcaf55084d5afec5d6ee0637ab53c5ba1b01eeb374e9"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentCommand.makeAgentJSONResponse (cognitive 16): AgentCommand.makeAgentJSONResponse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 1 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BExecution.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"a88138f7684a885d37d4b55be791ea89ba85737d6e0b90a399f827e351c00ea3"}},{"ruleId":"D2","level":"warning","message":{"text":"MoveCommand.validate (cognitive 16): MoveCommand.validate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, ternaries 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/MoveCommand.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dac5ca0af7fb2f9b6adbf4f74696fa9954b233a6bc818fac1b6b3713c9d1434"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserCommand.run (cognitive 16): BrowserCommand.run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), error handling 3 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserCommand.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45f0c40f4f728a6e49a78288fdfac7fc4454adef222ae40d513dee1aef565a9"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeHostResolver.shouldSkipOnDemandDaemon (cognitive 16): RuntimeHostResolver.shouldSkipOnDemandDaemon has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 3 (4 pts), error handling 2 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BResolution.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc5b19d7d9f1165ab55d73f38431c53194f9ade794441bbb6af283a7cbdcc3d"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowCommand\u002BState.swift.validatedRestoredWindowOutputInfo (cognitive 16): WindowCommand\u002BState.swift.validatedRestoredWindowOutputInfo has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 13, if/else 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand\u002BState.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19051a9cc705b4d90f37c3894d9f4cf6bd9037e95227044a59e8b4fc352b3f9"}},{"ruleId":"D2","level":"warning","message":{"text":"HeldPointerReceiptTracker.record (cognitive 16): HeldPointerReceiptTracker.record has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 12, if/else 4. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/HeldPointerRunner.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"343199b809eb00fb562931633d2e6be541841eb7167b4cd0aa12c66a76f52f46"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveCertificationBridge.validateCanonicalResponse (cognitive 16): LiveCertificationBridge.validateCanonicalResponse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 6, match/switch 1 (nesting depth added 4). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/LiveCertificationBridge.swift"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"349f130bf8e545f96dfc11ef1091c751ea4b3078d65a87c48e0685799beb2e3b"}},{"ruleId":"D2","level":"warning","message":{"text":"CertificationObserverAttestationServer.serve (cognitive 16): CertificationObserverAttestationServer.serve has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), error handling 2 (5 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"0baf96ef9a2cde1fa9053d4793e6df135c35b6e899e65098bbdf2b7c3f4a7911"}},{"ruleId":"D2","level":"warning","message":{"text":"FocusRaiseSettlement.attempt (cognitive 16): FocusRaiseSettlement.attempt has cognitive complexity 16 (threshold 15). Drivers by points: error handling 5 (7 pts), if/else 4 (6 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/FocusUtilities.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a4b45cba682ad5dcba54c57ce97e882f573f033c6aeefbd192dd805f5faf81"}},{"ruleId":"D2","level":"warning","message":{"text":"FocusManagementService.focusWindowWithOwnedLane (cognitive 16): FocusManagementService.focusWindowWithOwnedLane has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), error handling 2 (4 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/FocusUtilities.swift"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"4017dba878c0690905eadad131045b3ed51cab4200edc628c788b628fb635fbb"}},{"ruleId":"D2","level":"warning","message":{"text":"RunningApplicationProcessIdentity.resolve (cognitive 16): RunningApplicationProcessIdentity.resolve has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 6, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/RunningApplicationProcessIdentity.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"42483d5fb38c90beecb19dc448dd1d4b451273a7e6f04489a920321f46cb5386"}},{"ruleId":"D2","level":"warning","message":{"text":"SpaceManagementService.getAllSpaces (cognitive 16): SpaceManagementService.getAllSpaces has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SpaceManagementService.getSpacesForWindow) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceUtilities.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b27ef23b199c8713b3faf1a5ee54dd813427b02fb229e9b738dea2b583df55d"}},{"ruleId":"D2","level":"warning","message":{"text":"SpaceManagementService.getSpacesForWindow (cognitive 16): SpaceManagementService.getSpacesForWindow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SpaceManagementService.getAllSpaces) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceUtilities.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0ba501ab44a44712445b8e2f71b49f68c6dc3015a492f84cecec4ba3ca3e58"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenCaptureFallbackRunner.run (cognitive 16): ScreenCaptureFallbackRunner.run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), error handling 2 (6 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (ScreenCaptureFallbackRunner.runCapture) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"030f64e19fdafb55908de323bfaa73520fdb0485de039c043b08690894a9297f"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenCaptureFallbackRunner.runCapture (cognitive 16): ScreenCaptureFallbackRunner.runCapture has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), error handling 2 (6 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (ScreenCaptureFallbackRunner.run) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da8b62ea9b4d09bb7b0f89ba5909ab17f276032052b29ab30bf65a9a0c75158"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenCapturePlanner.matchDisplay (cognitive 16): ScreenCapturePlanner.matchDisplay has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCapturePlanner.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"119a0b7a1501f2f957b4defaef4c6728d1daa74bfb890252d4dfc47ef8670c72"}},{"ruleId":"D2","level":"warning","message":{"text":"WatchCaptureSessionStore.performAutoclean (cognitive 16): WatchCaptureSessionStore.performAutoclean has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureSessionStore.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe5100c83a8d71c16597a008edac5ba7aba12595d274732969b153f04f86a38"}},{"ruleId":"D2","level":"warning","message":{"text":"ObservationMenuBarPopoverResolver.candidate (cognitive 16): ObservationMenuBarPopoverResolver.candidate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarPopoverResolver.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"371821b4c83ca5c4021e031c62fea7f17cbd9e8123585c1806415227824c9f48"}},{"ruleId":"D2","level":"warning","message":{"text":"ObservationTargetResolver.backgroundMenuBarClick (cognitive 16): ObservationTargetResolver.backgroundMenuBarClick has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 4, match/switch 1 (2 pts), error handling 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationTargetResolver\u002BMenuBar.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"845d1af869441e9789de4c45683bcd9f525f0e202ebe8a3af857bdbf52d63a8d"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopMutationWatermarkStore.hasPendingMutationUnlocked (cognitive 16): DesktopMutationWatermarkStore.hasPendingMutationUnlocked has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"62433fe7e80915bceaff9392b385f92c1d28ef18397320c23d0a9eedf31af792"}},{"ruleId":"D2","level":"warning","message":{"text":"DetachedAXObservationWorker.resolveWindow (cognitive 16): DetachedAXObservationWorker.resolveWindow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5 (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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb6ec5dc49fe4c4593ab1aff3001128cc6163359b7256d0fbb0e4e5af942275"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogHierarchyReader.attributeValue (cognitive 16): DialogHierarchyReader.attributeValue has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogHierarchyReader.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"c269470511d9590f663a266b314d715c267c0bbc59413c89e479c39d953e10b1"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogService.findDialogUsingCGWindowList (cognitive 16): DialogService.findDialogUsingCGWindowList has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BCGWindowResolution.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"4917018ce246c524e2d45eaa3d1d9bc373504655e1f31a0dc1a4f42a7e38febf"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogService.navigateViaGoToFolder (cognitive 16): DialogService.navigateViaGoToFolder has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 1, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogNavigation.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc028e040698cdcadf60564371354ffaba4a984e5537ea13cc60cdac1ae606a"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogService.executeDialogInput (cognitive 16): DialogService.executeDialogInput has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (7 pts), boolean chains 3, error handling 3, if/else 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.swift"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b6d4c00600d451eeef674fcd008d084e3cb7f6b08370e4534d6c0b55e6ad97"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogService.dispatchDialogInput (cognitive 16): DialogService.dispatchDialogInput has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 2 (5 pts), loops 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.swift"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"6595944db029a5e2f25098a2a937529f6b763eabe9ebf414319fdad640d34b87"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogService.performPreparedDialogAction (cognitive 16): DialogService.performPreparedDialogAction has cognitive complexity 16 (threshold 15). Drivers by points: error handling 7 (8 pts), if/else 4 (5 pts), ternaries 1 (2 pts), boolean chains 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BPreparedActions.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e125eda686831eb6b4ee7c54415c411a1226e4195362579160ab305ac80bdde9"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogService.exactFileDialogTarget (cognitive 16): DialogService.exactFileDialogTarget has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 11, if/else 5. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BResolution.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d29f95b170d1a81dd22af48b6ed32a32532a1e51e6f648c79e009a26a0c71bc"}},{"ruleId":"D2","level":"warning","message":{"text":"ExactWindowHeldPointerLifecycle.begin (cognitive 16): ExactWindowHeldPointerLifecycle.begin has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 2 (4 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ExactWindowHeldPointerLifecycle.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa69a78bcd123dcbd44c218263ee412ce8661dea3870a407ede54fe5801226f0"}},{"ruleId":"D2","level":"warning","message":{"text":"UIAutomationService.resolveActionTarget (cognitive 16): UIAutomationService.resolveActionTarget has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 2, error handling 2, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementActions.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"3212c5244b7e550e75582a3b8c96c1f6a8eb0b18f91b1e295857f0a2187a37e6"}},{"ruleId":"D2","level":"warning","message":{"text":"UIAutomationService.searchElementRecursively (cognitive 16): UIAutomationService.searchElementRecursively has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementLookup.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd6225489f9c1380a4406514ad81ace551c9548a694ba470faf98cf17a0b577"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowManagementService.restoreWindowActionResult (cognitive 16): WindowManagementService.restoreWindowActionResult has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 4 (6 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"74eaacff508b50edb463b5376789543c2eeea882dd37f41084848537758abea0"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentToolMCPBridge.convertNonImageContent (cognitive 16): AgentToolMCPBridge.convertNonImageContent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolMCPBridge.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45b0898016b101188d7a76a1971c34752992543fa4c626940b08beb31464879"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentToolMCPBridge.makeModelImage (cognitive 16): AgentToolMCPBridge.makeModelImage has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 7. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolMCPBridge.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"979bb52b9b54d16847a3128776623f981e6f3113420bad53543494a31213161e"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooAgentService.clearAllSessions (cognitive 16): PeekabooAgentService.clearAllSessions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 3 (6 pts), error handling 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BSessionLifecycle.swift"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"c715b8d0077b3e7af666fed1e3f7ada9997a8dd0b5e0b590343352fc1907b714"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooAgentService.restoredTurnBoundary (cognitive 16): PeekabooAgentService.restoredTurnBoundary has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BTurnBoundary.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb08186fd3d9ac6069126d971d0a1833017ffbc70797d9ab8a066d4325b57234"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserMCPSessionManager.resolveTarget (cognitive 16): BrowserMCPSessionManager.resolveTarget has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 6. 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0777774834efcdcb7ad0123fb03e3fe6313f3d59aba49977f37fd678fccdea"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPToolArgumentValidator.rejection (cognitive 16): MCPToolArgumentValidator.rejection has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), error handling 3, match/switch 1 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolArgumentValidation.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3ba73fa1afa29e878df990cfea03561208a97aacb0a80e3240c10e1d02459c"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPToolContext.recoverPendingInvalidations (cognitive 16): MCPToolContext.recoverPendingInvalidations has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 1 (2 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb7efa31d686142cf6cfa14be7bd9e21d11a370f01735c29d5bf010ce4d6fa9"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserTool.executeSequence (cognitive 16): BrowserTool.executeSequence has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 2 (3 pts), ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"091cf345c9c6b3c58c899c28617acaf85e452993771cd2e869a2ec5813add55c"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuTool.handleListAction (cognitive 16): MenuTool.handleListAction has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 3, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MenuTool.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"073677db6bdc773900c452b4e10a2904fa13c415095cbfa0938218ca261bdb46"}},{"ruleId":"D2","level":"warning","message":{"text":"PasteTool.resolveDeliveryDestination (cognitive 16): PasteTool.resolveDeliveryDestination has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 1, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b027d65d302faebdfed0e29029f7620c6955bdcbbed71121395923d3ab0c9e"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollTool.dispatchScroll (cognitive 16): ScrollTool.dispatchScroll has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 1 (3 pts), error handling 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ScrollTool.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6e975e38fe995aa4272cbfa71bb08a623d34d4cbaad222e3e2857975bd1f39"}},{"ruleId":"D2","level":"warning","message":{"text":"VerifyStateTargetIdentityTracker.resolve (cognitive 16): VerifyStateTargetIdentityTracker.resolve has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"d842fceded31fb0e962dad3c4dc6e00f1e46fd0656b248720c7e2a98b8e2756f"}},{"ruleId":"D2","level":"warning","message":{"text":"VerifyStateTool.evaluate (cognitive 16): VerifyStateTool.evaluate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 3 (6 pts), boolean chains 1, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BEvaluation.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"1359bdd17c718f1fa70feb179360afa93c5b32231fa3e5d2b9ee7314f2ed461d"}},{"ruleId":"D2","level":"warning","message":{"text":"VerifyStateTool.response (cognitive 16): VerifyStateTool.response has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BResponse.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0aac07389d25150e526cb98eca7f387ab7aeff6ec59d204da0e72cde103d2b"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemToolFormatter.formatStarting (cognitive 16): SystemToolFormatter.formatStarting has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 2 (6 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/SystemToolFormatter.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f6a063dff7d3a2e4eca67f5745da29ce73818e3368a565407c9e35984a5730"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeAgentExecutionProcessWait.retainExactReap (cognitive 16): PeekabooBridgeAgentExecutionProcessWait.retainExactReap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionProcessWait.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"a071a6d763b16bdaab626a3cee8993e853c893a2ce9893b1c766cf60684d61da"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeAgentExecutionReleaseGate.waitForLockdown (cognitive 16): PeekabooBridgeAgentExecutionReleaseGate.waitForLockdown has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"05aea645b37da91d5dbf484af0ef2b9cf9a0b009425ad244aca2a6339b2f7eae"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeCertificationMonitorSealPayload.validateForegroundPlan (cognitive 16): PeekabooBridgeCertificationMonitorSealPayload.validateForegroundPlan has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 15, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationMonitorSealValidation.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a65bbe94196011401a2bd5811d9821704c21c795c6613914c47d78947b8b64"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeCertificationProducerTransport.perform (cognitive 16): PeekabooBridgeCertificationProducerTransport.perform has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 2, error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerTransport.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4febc170fb8508435cab4f91aaa09760e44f560c2782859b0964f145ead13a8c"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeClient.reserveOperationSession (cognitive 16): PeekabooBridgeClient.reserveOperationSession has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d53cca42e984fe77b839d362c70b3ab5cc7b041125d1b29505cbbfee91c0da"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeClient.renewOperationSession (cognitive 16): PeekabooBridgeClient.renewOperationSession has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 3 (4 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d687be6e2a4f2db2b4fa7bdaeba7e2072d2cbfbf2c16f842480d05d3a231f61"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeHost.removeOwnedSocket (cognitive 16): PeekabooBridgeHost.removeOwnedSocket has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost.swift"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"9136e80000384e279ea6582f60e100ff6d8a17df49a5cbf51fc5c5db56358426"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeErrorEnvelope.init (cognitive 16): PeekabooBridgeErrorEnvelope.init has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (8 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeModels.swift"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e63595a498490e82d9c2b8bf6c6fcf1de64ace2caa165992d5e46b76e499cf"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationReceiptSemantics.selectedLeaf (cognitive 16): PeekabooBridgeOperationReceiptSemantics.selectedLeaf has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 13, if/else 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"34de0fb7de2d34fa08652cdcb280ce0479bacbbe58bc2d80e2d3aade222243fa"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeOperationResultSemantics.successResponseMatchesPolicy (cognitive 16): PeekabooBridgeOperationResultSemantics.successResponseMatchesPolicy has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 7, match/switch 1 (nesting depth added 4). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"24df60b485b5541d26319c83fa4fbac57253806741e7e64609d4a8f1c45bd866"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.handleTargetedClick (cognitive 16): PeekabooBridgeServer.handleTargetedClick has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2148bc7149706ba3b9f0bf2457cd46d5338a698ca138f6ee6518049df6b3b49"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.validatePeerAuthorization (cognitive 16): PeekabooBridgeServer.validatePeerAuthorization has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 6, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BRouting.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"322b0144eac9c1b3a0d5dd2b49bb25b07586ac9c8d5ac894c6b0d5bac7203ecf"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.handleDialogRequest (cognitive 16): PeekabooBridgeServer.handleDialogRequest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c24e9b30d1c2c2d121575db8a4987aa3b2e360cdfb9da4159f95458fd7a21a"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeWindowContextBinding.matches (cognitive 16): PeekabooBridgeWindowContextBinding.matches has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 14, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeWindowContextBinding.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d886cf7774caa42376e1672cad30f01719fabdd64aec34dc6602919b66d8780"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooBridgeServer.swift.protocolHostCapabilities (cognitive 16): PeekabooBridgeServer.swift.protocolHostCapabilities has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"801a0c4127a5a31df785c8ec4cbb5fee79f27eb43600c05096f29ad7a3135a1b"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooServices.firstAvailableModel (cognitive 16): PeekabooServices.firstAvailableModel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 1 (3 pts), boolean chains 2, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BAgent.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3f0170b27a2212afde67faa4d7255df3138691e4a7a0c7a318837c4ce1e35a"}},{"ruleId":"D2","level":"warning","message":{"text":"CaptureError.errorDescription (cognitive 16): CaptureError.errorDescription has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooFoundation/Sources/PeekabooFoundation/ErrorTypes.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5777cd53a467b43eec1d02b3ffd491528dca6d8b8458c579f2a190d33c45a1"}},{"ruleId":"D2","level":"warning","message":{"text":"PeekabooApp.body (cognitive 16): PeekabooApp.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/PeekabooApp.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3f1682ab0578e16448bc619a4b0e3e9ab769a8876d9e5b25ac674b93afd8db"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.startBridgeHost (cognitive 16): AppDelegate.startBridgeHost has cognitive complexity 16 (threshold 15). Drivers by points: error handling 3 (7 pts), if/else 2 (4 pts), ternaries 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/PeekabooApp.swift"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"34672a008a6a77f6d3211faa4ed04de482ea43743227a4ede2c15ae3614e35a1"}},{"ruleId":"D2","level":"warning","message":{"text":"DetailedMessageRow.determineToolStatus (cognitive 16): DetailedMessageRow.determineToolStatus has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 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":"Apps/Mac/Peekaboo/Features/Main/MessageComponents/DetailedMessageRow.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ea55d2e142216516a963518661ce768fb976bc30481f9edb9b93c3ac6be6fd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PeekabooBridgeClient: TooManyMethods \u2014 353 methods, declared across 16 files: PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift (67), PeekabooBridge/PeekabooBridgeClient.swift (65), PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift (47), PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift (35), \u002B12 more file(s). The bar is 30 methods; this is 323 over it, 11.77\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1a1e1a5743be38e3a682a66a3c84cec439f9e29d457072c39eeeda2a672be2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PeekabooBridgeServer: TooManyMethods \u2014 220 methods, declared across 18 files: PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift (39), PeekabooBridge/PeekabooBridgeServer.swift (38), PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift (31), PeekabooBridge/PeekabooBridgeServer\u002BHandshake.swift (20), \u002B14 more file(s). The bar is 30 methods; this is 190 over it, 7.33\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81ac743b700b767e6472533c7d19164b2bd3d1893f0ddc80d85e13611ec60b5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeOperationResultSemantics.operationDescriptor: MethodTooLong \u2014 operationDescriptor runs 731 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 631 over it, 7.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationDescriptor.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33582ea8717ca5147db426e7198512be525242a478adef6dbf283e69b5f7a39"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PeekabooAgentService: TooManyMethods \u2014 216 methods, declared across 14 files: Agent/PeekabooAgentService\u002BTools.swift (48), Agent/PeekabooAgentService\u002BStreaming.swift (34), Agent/PeekabooAgentService\u002BSessionLifecycle.swift (27), Agent/PeekabooAgentService\u002BExecution.swift (18), \u002B10 more file(s). The bar is 30 methods; this is 186 over it, 7.20\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"86817eb1f00500c26525cba52ff559f2efe8a5d47079b200fc3c95af153d682e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DialogService: TooManyMethods \u2014 206 methods, declared across 23 files: UI/DialogService\u002BForegroundOutcomes.swift (45), UI/DialogService\u002BPreparedActions.swift (34), UI/DialogService\u002BFileDialogVerification.swift (22), UI/DialogService\u002BElements.swift (16), \u002B19 more file(s). The bar is 30 methods; this is 176 over it, 6.87\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"458a2ff0a4e1be3a09b9ac79a8fbe44717cd9147daf9b9519b2c624a932b56cb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SeeCommand: TooManyMethods \u2014 141 methods, declared across 18 files: AI/SeeCommand.swift (23), AI/SeeCommand\u002BOutput.swift (16), AI/SeeCommand\u002BPixelCapturePipeline.swift (14), AI/SeeCommand\u002BMenuBarCandidates.swift (11), \u002B14 more file(s). The bar is 30 methods; this is 111 over it, 4.70\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2149a0324b9082c082e0cd70e8523a00468c9158a406ba6356c063a233fda3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ApplicationService: TooManyMethods \u2014 113 methods, declared across 5 files: System/ApplicationService\u002BLifecycle.swift (54), System/ApplicationService\u002BDiscovery.swift (23), System/ApplicationService\u002BActionOutcomes.swift (22), System/ApplicationService\u002BWindowListing.swift (12), \u002B1 more file(s). The bar is 30 methods; this is 83 over it, 3.77\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c244ae7829aa81832e9cbc8ba2ba8b0f791728dfee3320bd9b5589e74305a153"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UIAutomationService: TooManyMethods \u2014 113 methods, declared across 10 files: UI/UIAutomationService\u002BPointerKeyboardOperations.swift (23), UI/UIAutomationService\u002BElementActions.swift (19), UI/UIAutomationService\u002BOperations.swift (19), UI/UIAutomationService\u002BTypingOperations.swift (16), \u002B6 more file(s). The bar is 30 methods; this is 83 over it, 3.77\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"66788ed054a3ce9e0c96952db4950366520e68e4a8748be1f6ab3bfd01707b55"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeServer.handleHandshake: MethodTooLong \u2014 handleHandshake runs 346 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 246 over it, 3.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandshake.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b328c0c2eea04d1f13120d69a08ae32dfdcd394a68811b7a815fa7cdcd55880"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BrowserMCPSessionManager: ClassTooLong \u2014 1367 significant lines (blank, comment-only and punctuation-only lines excluded), 58 methods. The bar is 400 significant lines; this is 967 over it, 3.42\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"706165e903cd2e78e93191d9b36ab76a226b1e4c1eb6b9607c48295d5a7263b3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MenuService: TooManyMethods \u2014 99 methods, declared across 11 files: UI/MenuService\u002BExtras.swift (26), UI/MenuService\u002BActions.swift (12), UI/MenuService\u002BMenuExtraWindows.swift (12), UI/MenuService\u002BList.swift (9), \u002B7 more file(s). The bar is 30 methods; this is 69 over it, 3.30\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"75745e82f66728162ff59e0474a5d15d08f48c436806a58bfd86e955b490db98"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PeekabooBridgeCodeSignatureIdentity.swift.peekaboo_csops: FunctionTooLong \u2014 peekaboo_csops runs 296 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 196 over it, 2.96\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6ce4cbb90841db9fa9c167d43d4f46a4509e68e756e85c487f52e419a132cd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PeekabooBridgeCodeSignatureIdentity.swift.peekaboo_csops_audittoken: FunctionTooLong \u2014 peekaboo_csops_audittoken runs 290 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 190 over it, 2.90\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7063cfff0bd09217fe503f82e743d26632d3f08d53edd41124d9e7bcf983256a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentCommand: TooManyMethods \u2014 85 methods, declared across 7 files: AI/AgentCommand\u002BExecution.swift (21), AI/AgentCommand\u002BModelParsing.swift (15), AI/AgentCommand\u002BChat.swift (14), AI/AgentCommand\u002BSessions.swift (14), \u002B3 more file(s). The bar is 30 methods; this is 55 over it, 2.83\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e7773bc5d598af7a5d3e73815217e06fdfc62a198abfd18ea94cd11421bcc9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConfigurationManager: TooManyMethods \u2014 84 methods, declared across 6 files: Configuration/ConfigurationManager\u002BAccessors.swift (35), Configuration/ConfigurationManager\u002BCustomProviders.swift (15), Configuration/ConfigurationManager\u002BCredentials.swift (10), Configuration/ConfigurationManager\u002BParsing.swift (10), \u002B2 more file(s). The bar is 30 methods; this is 54 over it, 2.80\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dfd343791e159288531c3470a748133c5c090253cac7bc9cb70155ce4a9891c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Browser/BrowserMCPSessionManager.swift: FileTooLong \u2014 1399 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: BrowserMCPSessionManager (48-1766). The bar is 500 significant lines; this is 899 over it, 2.80\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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9d0e942d4a29f9b853c989f66cc965d4a69a54fa09b50cfb87eb2855053c10"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeOperationResultSemantics.deliveryRules: MethodTooLong \u2014 deliveryRules runs 275 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 175 over it, 2.75\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3dc3d914d68e87100ebbe37ecaa97c25ffd7020007409cd04aca719176c97f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift: FileTooLong \u2014 1363 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 863 over it, 2.73\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9909db2557bd67cd39be9bf8d50db8db799889c94d23b337850a7d4278172cb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RemoteUIAutomationService: TooManyMethods \u2014 80 methods, declared across 2 files: Support/RemoteUIAutomationService.swift (48), Support/RemoteUIAutomationService\u002BActionOutcomes.swift (32). The bar is 30 methods; this is 50 over it, 2.67\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aae0c2fead6363ca9f7bef2aae8e595962b4ae32fac8f64c7a8e9c638664cfb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PasteTool: ClassTooLong \u2014 1055 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 655 over it, 2.64\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55cd4c1049ab12cc6970eca7f45465029c941231f7bd9ebf544c148f477c521"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WindowManagementService: TooManyMethods \u2014 77 methods, declared across 8 files: UI/WindowManagementService\u002BStateOperations.swift (28), UI/WindowManagementService\u002BResolution.swift (13), UI/WindowManagementService\u002BGeometryOperations.swift (12), UI/WindowManagementService\u002BSearch.swift (7), \u002B4 more file(s). The bar is 30 methods; this is 47 over it, 2.57\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a1b2331be8d70cb90e1445d4b7ddb69cc225772fff1c22759428aaa860bdfdc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeClient.swift: FileTooLong \u2014 1262 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 762 over it, 2.52\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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dae003ecc4fb34b7ae7dbb336b321d8c20129c21ca963a25681beb2c1fe35e8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PeekabooBridgeServer: ClassTooLong \u2014 1004 significant lines (blank, comment-only and punctuation-only lines excluded), 220 methods. The bar is 400 significant lines; this is 604 over it, 2.51\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e30ed50a3793ebeff94224839e0d64ef09e11cce0fdb1bc6756b02b652ba8f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Agent/PeekabooAgentService\u002BStreaming.swift: FileTooLong \u2014 1244 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 744 over it, 2.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af967cbc70f4eca68ccde3710d9b34fcef171c5237260fdac368e5cf2421827"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeOperationReceipts.swift: FileTooLong \u2014 1239 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 739 over it, 2.48\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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceipts.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf01ebeb437e18b525959671d0ee37295d1b3e0942c41c9d9e3c0df23767158"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift: FileTooLong \u2014 1237 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 737 over it, 2.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60131fd1dda7eff14d466d054deda1f413bfb8a58642cad67e9b0934cfd77ba3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/TypeService.swift: FileTooLong \u2014 1235 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 735 over it, 2.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"996686fc37db0174ddecfe0232f2d793b9aa60e84462672a7552c1780d4c2e79"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/BackgroundInputDriver.swift: FileTooLong \u2014 1230 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 730 over it, 2.46\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"241c2d0157e8e2fbeb50cf3f2e07a7882d565ef0a174ecb0af842be30032c6b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeServer.swift: FileTooLong \u2014 1220 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: PeekabooBridgeServer (71-1325). The bar is 500 significant lines; this is 720 over it, 2.44\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5431bf9abfa71474f0ee30cac33e9707d0b6bcc44a3e0e5ec881290142b7b737"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SnapshotManager: TooManyMethods \u2014 73 methods, declared across 5 files: Support/SnapshotManager\u002BHelpers.swift (45), Support/SnapshotManager.swift (20), Support/SnapshotManager\u002BElements.swift (3), Support/SnapshotManager\u002BScreenshots.swift (3), \u002B1 more file(s). The bar is 30 methods; this is 43 over it, 2.43\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9fc6dd7d5078a0a403b3037a644dd933a1f7060c0f516ffc453d33b6dc54ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Browser/BrowserMCPService.swift: FileTooLong \u2014 1209 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 709 over it, 2.42\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b55bcfb72034dd5cad5b90c95118042a4cf161c715f99eb242beb9f7d95e55"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeLiveAgentExecutionRunner.runDetached: MethodTooLong \u2014 runDetached runs 239 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 139 over it, 2.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionRunner.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5806812adb7e090b6a3e07dda14b9e15d9f1677247f9a2f6e46679e19f25f24"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/WindowManagementService\u002BStateOperations.swift: FileTooLong \u2014 1189 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 689 over it, 2.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0c32f87cb88ab5426c3f95286656b95d59e979583d6429a7aa6244d2959fe7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/ActionInputDriver.swift: FileTooLong \u2014 1179 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 679 over it, 2.36\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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41b44744db16b9f98aec729b06a9c49db40a6d97bd2093abc7e8e32925b83de"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeHost.swift: FileTooLong \u2014 1176 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 676 over it, 2.35\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad4134f26a18c8566abeed10432c528746769a38c5cf8151551ce7fa4d12b64"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift: FileTooLong \u2014 1167 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 667 over it, 2.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"785c903d260aa4c0ed9292a10255f4a1da4b813c10187f86b2b6f941b756b3b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tools/BrowserTool.swift: FileTooLong \u2014 1137 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 637 over it, 2.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f532e0e85d8c1a5b4abc485c96a4e7560dce7f83e225444071eb4274cb7de636"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tools/PasteTool.swift: FileTooLong \u2014 1135 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: PasteTool (12-1305). The bar is 500 significant lines; this is 635 over it, 2.27\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e002e7dcc374ba1571a09a2552ab4a567a3d7a5ccc58a4656453eb3227cc3d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/ClickService.swift: FileTooLong \u2014 1134 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 634 over it, 2.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91011a1ad75d56748079417955b159051323e2e6d1bf1c2bb350ba63479e541d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: MCP/MCPToolContext.swift: FileTooLong \u2014 1102 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 602 over it, 2.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5738c4e79c7bc5914424604d1bfc8e1007751716b5670e52fc260f2637fd2d74"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift: FileTooLong \u2014 1095 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 595 over it, 2.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4dab962f01e2956106cf7f09606cd583bef8801fef1a4bdcf97abf29af1449"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift: FileTooLong \u2014 1094 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 594 over it, 2.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde6b5cd1a81bbb170e46a75ffc86615f930ae6b302642347b0b1107ebbbbc8e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeBrowserSessionHandoff.swift: FileTooLong \u2014 1085 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 585 over it, 2.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserSessionHandoff.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96b48c4a2f6965e7fb35c0cc787f92c7d07021288fcacc1f73e42d5c35f806a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/CaptureCommand\u002BAction.swift: FileTooLong \u2014 1075 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 575 over it, 2.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4610654a8849afcc272723d459696361fdb6c418b4f0caf2b240e9143094bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Utilities/FocusUtilities.swift: FileTooLong \u2014 1047 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 547 over it, 2.09\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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/FocusUtilities.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f618cfaa8a2c995301a6c64e7e5ee4212a519462f62168e955b5ce2ae1f3534"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tools/ClickTool.swift: FileTooLong \u2014 1044 significant lines (blank, comment-only and punctuation-only lines excluded), about 63% of them inside a single declaration: ClickTool (10-801). The bar is 500 significant lines; this is 544 over it, 2.09\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"475f3bde72195bc28945a0e189459ad149c82b234b4a65427fd2f62d958f2bb0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ActionInputDriver: TooManyMethods \u2014 61 methods. The bar is 30 methods; this is 31 over it, 2.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"144667cc456e698d1905cde833da9b5fd8abcbf7777d726937c49ce2dc43a64e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: System/ApplicationService\u002BLifecycle.swift: FileTooLong \u2014 1014 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 514 over it, 2.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BLifecycle.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f1fa3052344ff21d3a759a6a5078da97be46037506735ce2d59f067b0cb4cd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift: FileTooLong \u2014 1011 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 511 over it, 2.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe8a83fcfc23a480d18cb6f0a347f267fc23676509e92eccff7d5dc83bd817f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MCPToolContext: TooManyMethods \u2014 60 methods, declared across 4 files: MCP/MCPToolContext.swift (42), MCP/MCPToolContext\u002BBackgroundApplicationTarget.swift (13), MCP/MCPToolContext\u002BBrowserSession.swift (3), MCP/AuthorizedDesktopTargetPlan.swift (2). The bar is 30 methods; this is 30 over it, 2.00\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd87fb7a605d6f34e430c1591bc492d23762b824659b756b01fa24d921254cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/DialogService\u002BForegroundOutcomes.swift: FileTooLong \u2014 988 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 488 over it, 1.98\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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde8fe14b7349c734ecba790c9e2c10bfb5e8573f264b8906772b7a93f5bcf21"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DockService: TooManyMethods \u2014 59 methods, declared across 6 files: UI/DockService\u002BActions.swift (17), UI/DockService.swift (14), UI/DockService\u002BSupport.swift (12), UI/DockService\u002BVisibility.swift (10), \u002B2 more file(s). The bar is 30 methods; this is 29 over it, 1.97\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a3c36f0a8e86d09d7d22d316ecb36661d8b85e636667d9765bab61ec8c7b37"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BrowserMCPSessionManager: TooManyMethods \u2014 58 methods. The bar is 30 methods; this is 28 over it, 1.93\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba63e1b55cf3d4c9ae924284b8d85aaa757235db12fc1b50312e784c7d6ff6c4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeCertificationMonitorSealPayload.swift: FileTooLong \u2014 935 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 435 over it, 1.87\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationMonitorSealPayload.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7ccbc8c3027e0c30e63939ca14ad13f0fe58680a62f3e079976409b507b36f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BrowserMCPService: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"7868ac56dfbba3ae256bb4547b44668983ad906cee429083545233baf0e0fac4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PeekabooBridgeHost: TooManyMethods \u2014 56 methods, declared across 3 files: PeekabooBridge/PeekabooBridgeHost.swift (38), PeekabooBridge/PeekabooBridgeHost\u002BClients.swift (15), PeekabooBridge/PeekabooBridgeHost\u002BBrowserHandoffMaintenance.swift (3). The bar is 30 methods; this is 26 over it, 1.87\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b19d5f3626baf3b42adb57bc300cef6baf2d6a6e84c2604520ef41a69c1984c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tools/TypeTool.swift: FileTooLong \u2014 931 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 431 over it, 1.86\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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/TypeTool.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0639c3fc6f558d3ff5ad52d64ce89f4043c358270d7f66478d5c53b3ed8167e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Interaction/ClickCommand.swift: FileTooLong \u2014 929 significant lines (blank, comment-only and punctuation-only lines excluded), about 64% of them inside a single declaration: ClickCommand (26-869). The bar is 500 significant lines; this is 429 over it, 1.86\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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d687e98efc2ea4706bb3cba990414c17c8363f6e8855fbd8d243c12981abe1b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/DetachedAXObservationWorker.swift: FileTooLong \u2014 894 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 394 over it, 1.79\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbdd631c762829e7d97a0edcf9842b696b96ffca9049dc38557c3e610fa9dae1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/ForegroundModifierClickExecutor.swift: FileTooLong \u2014 888 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 388 over it, 1.78\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ForegroundModifierClickExecutor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"546cb1e973469b1b75826ffb146ec5fb86d9f745f88c77ea859edbfe96e1a718"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PeekabooServices: TooManyMethods \u2014 53 methods, declared across 6 files: Support/PeekabooServices\u002BAgent.swift (15), Support/PeekabooServices\u002BBrowserBridge.swift (15), Support/PeekabooServices\u002BBrowserSessions.swift (12), Support/PeekabooServices\u002BAutomation.swift (5), \u002B2 more file(s). The bar is 30 methods; this is 23 over it, 1.77\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05bdbb51cb597509316c96a769b2485f5377bae2f9a839f9c8814a77b207189"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Base/CommandServiceBridges.swift: FileTooLong \u2014 866 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 366 over it, 1.73\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6fe61151530af635c5ec15ad3007219eb287012e54cd545a57878abbb3265eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Runtime/RuntimeHostResolver.swift: FileTooLong \u2014 864 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 364 over it, 1.73\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3827a5a0a2ec7746b24067bfc1929b5c42e28f41fdffb59d0edeed36adfc13a7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WindowRoutedPointerDriver: ClassTooLong \u2014 689 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 289 over it, 1.72\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowRoutedPointerDriver.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93c9b13e040d5c7df336b42b3717d47b7c22073e3c7c54ed540acf1da16a5f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Observation/DesktopObservationService.swift: FileTooLong \u2014 860 significant lines (blank, comment-only and punctuation-only lines excluded), about 64% of them inside a single declaration: DesktopObservationService (382-1053). The bar is 500 significant lines; this is 360 over it, 1.72\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"058abea654add41ec210b1aea39fcc9486424e21f891f27b5937713001219488"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DesktopObservationService: TooManyMethods \u2014 51 methods, declared across 6 files: Observation/DesktopObservationService.swift (23), Observation/DesktopObservationService\u002BDetection.swift (9), Observation/DesktopObservationService\u002BOperationLane.swift (8), Observation/DesktopObservationService\u002BCapture.swift (6), \u002B2 more file(s). The bar is 30 methods; this is 21 over it, 1.70\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"057ce594ec6495c71c5fcd1c26b1017d636a8454766533ff1046da6618ed09b1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DesktopMutationWatermarkStore: ClassTooLong \u2014 666 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods. The bar is 400 significant lines; this is 266 over it, 1.67\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f325a9fd83e6cfbfbea20b229994a2a2e8763d8710b50a10184fba734b98be"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PasteCommand: ClassTooLong \u2014 665 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 265 over it, 1.66\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"168b80d5b0f988782d6c9774886810adf23234ee85c3439f1c0f4e9d5347903a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooFoundation/DesktopActionOutcome.swift: FileTooLong \u2014 830 significant lines (blank, comment-only and punctuation-only lines excluded), about 63% of them inside a single declaration: DesktopActionOutcome (8-705). The bar is 500 significant lines; this is 330 over it, 1.66\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":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc2621ad727eaa8e14fa0d56901a85343a62e3e25a7582211a685755ea273dc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ClickTool: ClassTooLong \u2014 656 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 256 over it, 1.64\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf84ebc0b29529c78e22f1ff23d5126af79a0a62549102cb1b7932bc5c3fe28e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DesktopMutationWatermarkStore: TooManyMethods \u2014 49 methods. The bar is 30 methods; this is 19 over it, 1.63\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4d8c541056efa3f220cc39d8b8d51bd203da5d0e2d7ca13a713208602dd9da"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PeekabooBridgeDesktopObservationBinding: ClassTooLong \u2014 645 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 245 over it, 1.61\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e74c8da913b8a299d63fd1f524718acc8d447a0b17097edc5377f2be1614f4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BrowserMCPService: ClassTooLong \u2014 643 significant lines (blank, comment-only and punctuation-only lines excluded), 56 methods. The bar is 400 significant lines; this is 243 over it, 1.61\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"346daad1e3a82a3dd77de3bab3d796a0e57642aef8139f2ca6567fc80e21f3a9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RemoteBrowserMCPClient: ClassTooLong \u2014 643 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 243 over it, 1.61\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteBrowserMCPClient.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"015448bdbc6191cf850e51cafdcdc876d9853e9052a43455a7b980185177f474"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TypeService: ClassTooLong \u2014 641 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 241 over it, 1.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53d5ae756a344af89dac5bbb0f8ed6b3e9a6f512b6be2e63a56f1bfbe7b05e6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InMemorySnapshotManager: TooManyMethods \u2014 48 methods, declared across 6 files: Support/InMemorySnapshotManager\u002BLifecycle.swift (18), Support/InMemorySnapshotManager\u002BDetectionMapping.swift (9), Support/InMemorySnapshotManager\u002BPruning.swift (7), Support/InMemorySnapshotManager\u002BScreenshots.swift (7), \u002B2 more file(s). The bar is 30 methods; this is 18 over it, 1.60\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bdff53a5b2132e93c866303576f50a1169afc968b2bf03226016df63353269"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ClickService: ClassTooLong \u2014 640 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 240 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"404381128ecc0817bd32b5ba83e881bb0b9fc7eed13ae2d272eab9ea393e83ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/CaptureActionManifest.swift: FileTooLong \u2014 792 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 292 over it, 1.58\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb699cfbcddf98a6d7617aed56dc17aa701b52e99ba318a46d50356b86dfd355"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Interaction/PasteCommand.swift: FileTooLong \u2014 790 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: PasteCommand (10-899). The bar is 500 significant lines; this is 290 over it, 1.58\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff73ebee73383bd0d0d6cf0ef527e88e96ff2c8a8f4fbc16bf35bf00d1968455"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BackgroundInputDriver: ClassTooLong \u2014 628 significant lines (blank, comment-only and punctuation-only lines excluded), 71 methods. The bar is 400 significant lines; this is 228 over it, 1.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e1ac55661a65b39c873ad7dba272099480f04ffa1efe30a6242ba2efba6d18"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DialogTool.perform: MethodTooLong \u2014 perform runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DialogTool.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b66b2aac058af1b2e6d202a368ba9bcf3d3ca9ce9948808c2e723e2ca1e4c1f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DialogTool: ClassTooLong \u2014 619 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 219 over it, 1.55\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DialogTool.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea00dc4e16771fb2e7f8c82060597a07b19b306c3323f45ef45e48db683e66b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ActionInputDriver: ClassTooLong \u2014 616 significant lines (blank, comment-only and punctuation-only lines excluded), 61 methods. The bar is 400 significant lines; this is 216 over it, 1.54\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee822675520c6ec7beb3835401ad3a152b81ae6a10204a43413b630c31db2211"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PeekabooBridgeBrowserHandoffGrantRegistry: ClassTooLong \u2014 616 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 216 over it, 1.54\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserSessionHandoff.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"7126877c88718c5be37cbc7abaacca74692d08db57b63c1d9a432fe4d9cb51bf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DialogService.executeBackgroundDialogInput: MethodTooLong \u2014 executeBackgroundDialogInput runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e026e5e3b5a6db979dab7f1cba3bf3e5697ba44da0f52dc7a7ec6cbef052450"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FocusManagementService: ClassTooLong \u2014 614 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 214 over it, 1.54\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/FocusUtilities.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a7eb29cf3808e0e44908cbd0fdf623666e8b0b975dd2fcf3a52dd1f5b74603"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/Settings.swift: FileTooLong \u2014 767 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 267 over it, 1.53\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Core/Settings.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8199345c4ae3509216426160a0c0395d75a83078a8ee0c055bed832f05de46"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PeekabooSettings: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Core/Settings.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda11bac718433c0bad8618612b2a02adf858f700977538d19b69f7babd517b6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PeekabooBridgeBrowserHandoffGrantRegistry: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserSessionHandoff.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cdf54372e7ae8288f7da2eb7f9a353a2de62c68352699627e4fd016ed3c3ca6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RemoteBrowserMCPClient: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteBrowserMCPClient.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e3bd33bf3323f27d06919d49f50bbf6f449808a1c8670d878884539c971667"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ClickCommand: ClassTooLong \u2014 597 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 197 over it, 1.49\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbd31684f97b71522d2ceb65e3b80bc0606a4114c387e05f98a9a75df949173"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/CaptureActionProcessRunner.swift: FileTooLong \u2014 746 significant lines (blank, comment-only and punctuation-only lines excluded), about 61% of them inside a single declaration: CaptureActionProcessBox (203-843). The bar is 500 significant lines; this is 246 over it, 1.49\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":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionProcessRunner.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02c3b6379379bdb302aa634d650b19446766cdba3a6252f787e1041b4fb31b8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeServer.performAttestedOperation: MethodTooLong \u2014 performAttestedOperation runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BOperationReceipts.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a451e34cb78627e1b8bea6ed38d14c0e4abeed1155aba94c7c41e832cfe1992"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/WindowRoutedPointerDriver.swift: FileTooLong \u2014 744 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: WindowRoutedPointerDriver (19-895). The bar is 500 significant lines; this is 244 over it, 1.49\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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowRoutedPointerDriver.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c202d8e8ac073cc6d33980af89185fc9728c54866ea4f146f7b7dfb24a86cb57"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeOperationDescriptor.swift: FileTooLong \u2014 744 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 244 over it, 1.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationDescriptor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd77fef04c4e83c72b1e2d4c41afdca9c7f94999399c7f232ae6fcca806a187"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PeekabooBridgeOperationResultSemantics: ClassTooLong \u2014 590 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 400 significant lines; this is 190 over it, 1.48\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultContracts.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ebd4548ba46b27fbc35f90d724373da4c98d2cccb93ccc625db70aa60db236"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BrowserTool: ClassTooLong \u2014 587 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 187 over it, 1.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa269423a1317d8bfbe537437ea44d0b696f65cbedcd0302f4951c5e0a3bb3e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClickCommand: TooManyMethods \u2014 44 methods, declared across 5 files: Interaction/ClickCommand.swift (32), Interaction/ClickCommand\u002BValidation.swift (8), Interaction/ClickCommand\u002BCommanderMetadata.swift (2), Interaction/ClickCommand\u002BFocusVerification.swift (1), \u002B1 more file(s). The bar is 30 methods; this is 14 over it, 1.47\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0372ba4a4a1bc8acb2880c441e8df0f939ed6864b892f384daa6bbe26ff8e23"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/DialogService\u002BPreparedActions.swift: FileTooLong \u2014 730 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 230 over it, 1.46\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BPreparedActions.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d357e5dff4bb6495b14515b8a73d6436c6e95a26faec9ab9b70225773874ec"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeOperationResultSemantics.typedResponseRule: MethodTooLong \u2014 typedResponseRule runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce3a0afc75a17803e1736fb275b6c05ca0ea87143849149c82c073a53242c24"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeModels.swift: FileTooLong \u2014 728 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 228 over it, 1.46\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeModels.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b207abce79836883cca960ddca8a18a7d9d8ec7528cb89a3e86dfb5f41532298"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PeekabooAgent: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Core/PeekabooAgent.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba64a57bef2ff0bc6998f168412961777de9849caedc8ca9343a980fc4b8227"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PasteCommand.performClipboardPasteTransaction: MethodTooLong \u2014 performClipboardPasteTransaction runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd58a66a5beb3801d288b44b07660ac3f85314a06030775fe7aaffaf1b4731f3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ScreenCaptureKitOwnerLease: ClassTooLong \u2014 571 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 171 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c19963bce0add859b29edcc225ba27d20dcc9e24641656f26843c7baba245f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TypeService.executePixelFocusType: MethodTooLong \u2014 executePixelFocusType runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"1014713666960cb320f5ce09f629887acc72eb78f58ee70bdc8a3812ed49a428"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Agent/AgentExecutionTrace.swift: FileTooLong \u2014 703 significant lines (blank, comment-only and punctuation-only lines excluded), about 66% of them inside a single declaration: AgentExecutionTraceSanitizer (328-920). The bar is 500 significant lines; this is 203 over it, 1.41\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentExecutionTrace.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ed41a453cb4771ae2b98ac08ee06dfb206870e26ad29bf07570f671ea3573f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CommandRuntime: TooManyMethods \u2014 42 methods, declared across 2 files: Base/CommandRuntime.swift (39), Shared/InteractionObservationInvalidator.swift (3). The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandRuntime.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bdd5692f9b1cba6bdac316f8f5f24c8239b4407d7b73d639688280cbcf36ed5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TypeService: TooManyMethods \u2014 42 methods, declared across 4 files: UI/TypeService.swift (34), UI/TypeService\u002BTargetResolution.swift (5), UI/TypeService\u002BTypingCadence.swift (2), UI/TypeService\u002BSpecialKeys.swift (1). The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"775dbc39be50661252981dd810e781bd1cb6147188980fbefe0c1bec92e89801"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeServer.handleAutomationRequest: MethodTooLong \u2014 handleAutomationRequest runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8dc87f45115b60360880b018ea1672b4357b22367f497548ad34e627e3d8702"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Support/DesktopMutationWatermarkStore.swift: FileTooLong \u2014 697 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: DesktopMutationWatermarkStore (10-915). The bar is 500 significant lines; this is 197 over it, 1.39\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67810fc4c71612f8306aafeaee1e3175b0352e1399b54a0eac6389664766eaaa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PasteTool.performClipboardPasteTransaction: MethodTooLong \u2014 performClipboardPasteTransaction runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"983905c07a3847c0c8406509471475409a95309bf51b69ca5cdd95b1f77e30de"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RemoteUIAutomationService: ClassTooLong \u2014 552 significant lines (blank, comment-only and punctuation-only lines excluded), 80 methods. The bar is 400 significant lines; this is 152 over it, 1.38\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"da06234e9d7c1b99af434c4ee66af39b388a755c7f9c3aca75edc359fc2a6d0d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CommanderCLIBinder.makeRuntimeOptions: MethodTooLong \u2014 makeRuntimeOptions runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"83cf2bea58f9981da9cdfa90923d6af5625c5f3f2cfa9508193536ccf63e7b22"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ForegroundModifierClickExecutor.executeOwned: MethodTooLong \u2014 executeOwned runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ForegroundModifierClickExecutor.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba63cf2734919f1118fdad2e6c753477b1cf98fac6c65fc29f25e7ef76adcd17"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HotkeyService.hotkey: MethodTooLong \u2014 hotkey runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/HotkeyService.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"89113b70267354ba93a4a919b7a984446cb95171bcdefa5ce548c35d95a244cb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooAgentService.handleToolCalls: MethodTooLong \u2014 handleToolCalls runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf7f2d1cb15bc542d94dc8cc5a2302eed614e47703002a074093da8a3553f20"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DesktopObservationService: ClassTooLong \u2014 549 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 400 significant lines; this is 149 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"750a258d373fae31c1c793ab939c17c071c2100d1565bc6d65a930e6d30251cc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CaptureActionCommand: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25a8976bf3310234d5be8af8735690e5c2201563e210e96acbdc93c9f7812e6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClickService: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12307a63f3b3069390858c2c7d0f04ff6ff714d27f43eac7e8bd3d45b6354a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Support/RemoteBrowserMCPClient.swift: FileTooLong \u2014 683 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: RemoteBrowserMCPClient (8-837). The bar is 500 significant lines; this is 183 over it, 1.37\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteBrowserMCPClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43fddb38c49f05eaf39463c1903e813300743281ba3bc2a713ac7de792023c4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/ExactWindowHeldPointerLifecycle.swift: FileTooLong \u2014 678 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: ExactWindowHeldPointerLifecycle (182-842). The bar is 500 significant lines; this is 178 over it, 1.36\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ExactWindowHeldPointerLifecycle.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f639d9f5dbff3fb4f97f7661616a534c2a3b69d683e91b83b30005f95a9f3753"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Protocols/ApplicationServiceProtocol.swift: FileTooLong \u2014 676 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 176 over it, 1.35\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a10ac88f4d66817ec146749d2677bfb418ac80bed5e7afc92125d2f1d9f039d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DialogService.executeDialogInput: MethodTooLong \u2014 executeDialogInput runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.swift"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d9627ad4f3100471d18fd5c886055b78fccd67b6ef50e273aa0b655a3c3c1f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeAgentExecutionTraceResponse.validate: MethodTooLong \u2014 validate runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionTraceModels.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ce9b3fe2310c335c7b5a7d53126a31e85b393e51e662b2f35bc51e73e44b01"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeClient.exchange: MethodTooLong \u2014 exchange runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04e01426c37624fccc194127fa0a2a548f4f916cffbb7cc6a2b1e16d988e2d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Capture/ScreenCaptureKitOperator\u002BWindow.swift: FileTooLong \u2014 665 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 165 over it, 1.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOperator\u002BWindow.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada952f6335080a5e5c6c3ac8d04043ac5ebd38bbd29b67a1924188f1c067b52"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ElementDetectionService: ClassTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 130 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionService.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a960bd421cdd2e51b422a33e04e38f3a0f015ef1c6b672d62aced55cae6705f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Runtime/BridgeCapabilityPolicy.swift: FileTooLong \u2014 661 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 161 over it, 1.32\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a64f370b1469b0df6561e0c9c5267e119706277c434bbb23bcd3653102637ec"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DetachedAXObservationWorker.inspect: MethodTooLong \u2014 inspect runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d05f45039e8d23932cb33b9ebf2a68bf3356c4745e1aa1b9c12511c186839f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DialogService.executeFileDialog: MethodTooLong \u2014 executeFileDialog runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogs.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0770775432a0e95f72c5b6891e1fb133245ac88d3fcf3ee52a3433d6243b56"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MCPToolContext.execute: MethodTooLong \u2014 execute runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2efc8680d28a0a5f8ba1019f808bf2a364124ed792a41244b7291f2f51e372"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DesktopActionOutcome: ClassTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 126 over it, 1.32\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff78784a92664de760aafa39e9ce5a795491879f42069259945631bc3a53137"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeOperationResultSemantics.contract: MethodTooLong \u2014 contract runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"6caeed388a7f40e1e17ce37529a71d8702b5d61e6256853cadd1b0c420318dd9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HotkeyService: ClassTooLong \u2014 522 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 122 over it, 1.31\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/HotkeyService.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06010fe74e4fc01343ca7cb690dc192fa75c477181920f4d36f89bb05bdc9d9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DaemonLaunchPolicy: ClassTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 121 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonLaunchPolicy.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"423e0b19b48160241fa3a292e9f0c6d90326ed0ab78e9590dc20cb17c4431812"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SeeCommand: ClassTooLong \u2014 520 significant lines (blank, comment-only and punctuation-only lines excluded), 141 methods. The bar is 400 significant lines; this is 120 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"577516f1c9abb2af84431a198625160631e1575184bd1dac2426ce500c824f2d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ObservationTargetResolver: TooManyMethods \u2014 39 methods, declared across 3 files: Observation/ObservationTargetResolver.swift (17), Observation/ObservationTargetResolver\u002BMenuBar.swift (11), Observation/ObservationTargetResolver\u002BWindowSelection.swift (11). The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationTargetResolver.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9facd777907a04b2989efb8732393fd8ad7eb6ef5ce1da5c1af8ca0cf25fb1f4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WatchCaptureSession.captureFrames: MethodTooLong \u2014 captureFrames runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureSession\u002BLoop.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7f4ef010fc353e8be71248843400b67cfa2835787afa05bed3e61a7281f989"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift: FileTooLong \u2014 648 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: PeekabooBridgeDesktopObservationBinding (10-963). The bar is 500 significant lines; this is 148 over it, 1.30\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c576a85ea51389ae4e0912dd76855e5a563866bce074e3c1ba6001fb641cd7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/ElementDetectionService.swift: FileTooLong \u2014 647 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: ElementDetectionService (58-711). The bar is 500 significant lines; this is 147 over it, 1.29\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98bc1373ddcee7ceb93e0c47ff8cf01a8b6525e3d5e1d5919726b6bf04f1b989"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Browser/BrowserToolCapabilitySession.swift: FileTooLong \u2014 645 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 145 over it, 1.29\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserToolCapabilitySession.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"703ecbd4f52f60bdd4e4aea81d739c0bbac7d347585a9ab0f17cdd1c7f4ef3b0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DragTool.execute: MethodTooLong \u2014 execute runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"28992dd314db022f8212f002a64f1ee80c5fa4b482851103fea111d80130b2e9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeClient.handshakeCandidate: MethodTooLong \u2014 handshakeCandidate runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8f06176cb61ad9c65c3a908cef686403745d7b5efeb14caba6358d1566a314"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Shared/InteractionObservationInvalidator.swift: FileTooLong \u2014 644 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 144 over it, 1.29\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationInvalidator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd8511c35d5f004693bbccd65789a8d6a20d2869c06fcadd323f0e40bc8cfaa"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CommanderCLIBinder: ClassTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 113 over it, 1.28\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df8aec36c499b1b87c9fce3fcc845300c84d368b2a1a98a3b36e920eee3eb8e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Base/CommanderBinder.swift: FileTooLong \u2014 640 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: CommanderCLIBinder (9-665). The bar is 500 significant lines; this is 140 over it, 1.28\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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de3439e36f5333d143c0c6da239b142d25e69cf1aef7bdc38c2d4437b3f9bdc8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Runtime/RuntimeHostResolver\u002BScreenCaptureKitOwner.swift: FileTooLong \u2014 636 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 136 over it, 1.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BScreenCaptureKitOwner.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb156373e0aeb0b8c6340ef3772a9bf3a96158c74814e2c573c028b770ea2cc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeServer.handleBrowserExecute: MethodTooLong \u2014 handleBrowserExecute runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BBrowserHandlers.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3862df367f819b3ddb8759d5282c3405222575e69abef1407818abf9320ae556"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeServer.handleHeldPointerRequest: MethodTooLong \u2014 handleHeldPointerRequest runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHeldPointer.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf11780e0def0a79710616405c745ebfb4ce83460f69327b5a02db361cea262"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgePayloads.swift: FileTooLong \u2014 634 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 134 over it, 1.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgePayloads.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d16290d6456254a059272f7b60511a8d3012db9f0788d4fd18f4b7b9adea1b1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WatchCaptureSession: TooManyMethods \u2014 38 methods, declared across 3 files: Capture/WatchCaptureSession\u002BLoop.swift (23), Capture/WatchCaptureSession.swift (11), Capture/WatchCaptureSession\u002BSaving.swift (4). The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureSession.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"826555976361bcec80a472178534ed09e3310e2226a2fa623a6228b92030bb1e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PeekabooAIService: TooManyMethods \u2014 38 methods, declared across 2 files: AI/PeekabooAIService.swift (35), Audio/AudioInputService.swift (3). The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Services/AI/PeekabooAIService.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce28f4b7935cd56b05c89f9630c029cc20abe253a2dc9db70cbab9f44bba07f8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RemoteWindowManagementService: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47733dbcd44d2b6ed6f873dbe304064f29c8856c18b506b1fbd78d4309c74dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tools/VerifyStateTool\u002BExecution.swift: FileTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 133 over it, 1.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3da34584878cf7be5582f682518a1db9b904608e96a8f269905957d315eef3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PressTool.execute: MethodTooLong \u2014 execute runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2ee4658a1c9192945e0c58c5786d183bc8f4b94e54c8b9ec8ae4da619b7068"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeServer\u002BHandshake.swift: FileTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 129 over it, 1.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandshake.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77824dbf6b91381d91efc3b955e21a889dc1af8e06e57f2a770842ea7bc90153"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ExactWindowHeldPointerLifecycle: ClassTooLong \u2014 501 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 101 over it, 1.25\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ExactWindowHeldPointerLifecycle.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb951e435514bffc987eabff07e3a8cea211fd8e519b4bf6fc36c7aa01990aa7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ScrollService: ClassTooLong \u2014 500 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 100 over it, 1.25\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"000f54bed1f7dabd54eed67a6674b2fa2c39f4932d6125148443f2d5872d2d73"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tools/DialogTool.swift: FileTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: DialogTool (9-753). The bar is 500 significant lines; this is 125 over it, 1.25\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DialogTool.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b711c7a7db96408c559b9ba4a4af5cdd1f8ba012bd23b9d548c53e9ba14fca2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift: FileTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 125 over it, 1.25\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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"543db3547f64c74c73ae59fc488398a9ed4581391b735b1fb7217761599cb101"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CaptureActionCommand.executeActionCapture: MethodTooLong \u2014 executeActionCapture runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"001350d4e51e9706dded19a4e53911576483ce16a63724535964fb2c0f69ca88"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MenuExtraAXReader.readSynchronously: MethodTooLong \u2014 readSynchronously runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuExtraAXReader.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"676ba918d8198be7553a80268826956ad1a9ab59f23c2d8c12794d5d417cc475"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooAgentService.collectStreamOutput: MethodTooLong \u2014 collectStreamOutput runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreamProcessing.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0137a8680a846103a64f863ceb08b6fb9a16241db0fbe78f0711383f0b7da9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeRequest.operation: MethodTooLong \u2014 operation runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeRequestResponse.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e73b42985e019891da1db128257ba08291367aa13807639e867176bf6999a40"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BrowserToolCapabilitySession.project: MethodTooLong \u2014 project runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserToolCapabilitySession.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ccdc4a7ea573d63c0fd1866e0b8c69e657dbc523776fdfc07170f640c4a8c60"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeClient.sendCarryingActionOutcome: MethodTooLong \u2014 sendCarryingActionOutcome runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded4499ba5b170f03159fe3f754f72eb06d84d211d401fde24b1b9d1503bd152"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Observation/ObservationOCRService.swift: FileTooLong \u2014 617 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 117 over it, 1.23\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationOCRService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"725d1a36529987505286048a23fbe154ec5b1418d21cfa0651a40c74a8c8b49e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Support/RemoteUIAutomationService.swift: FileTooLong \u2014 615 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: RemoteUIAutomationService (9-737). The bar is 500 significant lines; this is 115 over it, 1.23\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"828316b4ebce9a5af5a60523afe04389365a5c79f908c672698f8dac060c5aef"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooAgentService.runStreamingLoopBody: MethodTooLong \u2014 runStreamingLoopBody runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"6081ac264c49397b1f0c8d319c1985e0509eab7505ded5073dc8bc427ada1c32"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PressTool: ClassTooLong \u2014 490 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 90 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52d17e1c92f60867a33bb938ca85412cba30d8bc6a2bd18f30bb307eaae1e38"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ScrollCommand.run: MethodTooLong \u2014 run runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"da854aa5a80e03af96d4437c80006d0c8aef4ba0cf785fc3b3b241cb4d0d4dbe"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UIAutomationService.init: MethodTooLong \u2014 init runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf0ac5f9cee282452535bb6b781b3f9456d69f41df8d7c1bf03359e1e961812"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BrowserMCPService.executeSequenceWithOutcome: MethodTooLong \u2014 executeSequenceWithOutcome runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89a6df93c263238f4b0c9b5afdd0192e829805166bfd8c6e26b57d27a7912a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AI/SeeCommand.swift: FileTooLong \u2014 609 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: SeeCommand (11-761). The bar is 500 significant lines; this is 109 over it, 1.22\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c4a565ca3c840528ec5ca4fa2a02c7d7b5c298fe5a6fe37ef9c7a10b684317"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UIAutomationActionResultSequenceAccumulator: ClassTooLong \u2014 484 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 84 over it, 1.21\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/UIAutomationActionResultSequenceAccumulator.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f6e51c5da7033a0c620de6415128a2648352efe97b2bff8e3c7a88a8ce1fbf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClickCommand.run: MethodTooLong \u2014 run runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5ff11b8efcc2a142fb4285d2fec61cad054c9eb19cc4260f7c9796df57d70c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DragCommand.run: MethodTooLong \u2014 run runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"042483ada4a8f2ac162b967555d6a25d878cdfa3657f120eed71a7ec66c14ba8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ApplicationService.performApplicationVisibilityMutation: MethodTooLong \u2014 performApplicationVisibilityMutation runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BActionOutcomes.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb60f0c462948979d6163e7b2f1ffc160bfd11a4eba8c9f5253c412e3d10827"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ElementDetectionService.inspectReadOnlyElements: MethodTooLong \u2014 inspectReadOnlyElements runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionService.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba7711ec3877030b716e60e37e9d9f3afa89c32b8b5fcd0eb751d4a61096311"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SpaceWindowMutationDispatcher.moveWindow: MethodTooLong \u2014 moveWindow runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceWindowMutationDispatcher.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a97492d883e9071435c60150f613b22d48b8c9315d2049bb70021fd3e9e42b0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteDesktopObservationService.observeActionResult: MethodTooLong \u2014 observeActionResult runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDesktopObservationService.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6202d4e6c4fdb08320a4d208adac532bd76b8bfc2ccfd49eeb51fa983c111f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MenuTool: ClassTooLong \u2014 481 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 81 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MenuTool.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"0771f70f97b3f30c22b08736c73b437812fe285afe1a68d3c3e0d3c7430503e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tools/UISnapshotStore.swift: FileTooLong \u2014 601 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 101 over it, 1.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/UISnapshotStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee43dccdcd22a4cd1f99705c0b30d5355b2ac9b19c87dd3120bb66780d891a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Agent/AgentToolMCPBridge.swift: FileTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded), about 70% of them inside a single declaration: AgentToolMCPBridge (43-612). The bar is 500 significant lines; this is 100 over it, 1.20\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolMCPBridge.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b970753ae5437e4785d8395136775feb403ab04587e4e597a960b9cef30a24"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SeeCommand.commanderSignature: MethodTooLong \u2014 commanderSignature runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BCommanderMetadata.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c20f34880e04dd9a2a40a4ee522ca00b6ebe0be6c7c7bd4b73c87a0475b5040"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/AddCustomProviderView.swift: FileTooLong \u2014 599 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 99 over it, 1.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Settings/AddCustomProviderView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d813cb80e2c45cca3407af71a4a3742bfb93debbdc25c887eaf972be1fbacfb9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AI/PeekabooAIService.swift: FileTooLong \u2014 597 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: PeekabooAIService (175-858). The bar is 500 significant lines; this is 97 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Services/AI/PeekabooAIService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f90776b9940222b096ca61238afc85f550b97f6cd056fa0667095c1c0a8c3f8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeOperationResultContracts.swift: FileTooLong \u2014 596 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: PeekabooBridgeOperationResultSemantics (11-807). The bar is 500 significant lines; this is 96 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultContracts.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d64faaf266654b9e0ba5932ca63880084cea21ba7293007699091fef77ba9d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentCommand.runInternal: MethodTooLong \u2014 runInternal runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"72da416ae3553aa0e4854b26624abb3dbaced70e987743bb12dcc2e1dcb7c7ba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ElementActionCommandExecutor.execute: MethodTooLong \u2014 execute runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/SetValueCommand.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55514ecd489855fb22cff3d93f8ec58da6b51831464ca41d53daa2e7db86b5a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MCPToolContext.backgroundTargetAuthorization: MethodTooLong \u2014 backgroundTargetAuthorization runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c9daf895a7ff06ddd98219cee7f36dc45424320bbd4a84aee665fa0bd7d742"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DetachedExactWindowFocusReader: ClassTooLong \u2014 474 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 74 over it, 1.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7474430aee8e29fb1d8ef283b0b9b0802c0ce3a17f939b409ebbb21609a6ad"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BrowserToolCapabilityProjection: ClassTooLong \u2014 472 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 72 over it, 1.18\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserToolCapabilityProjection.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"05404b5f5673387d57fca2f94d5e56f0433cedbf41c9d4294d966201fc82df9c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RemoteDesktopObservationService: ClassTooLong \u2014 472 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 72 over it, 1.18\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDesktopObservationService.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"15941784dfdc5cdd1a68f51011ac4f374ece1aaf1bbe6102dad6ceb7d2ab9b92"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClickService.executeClick: MethodTooLong \u2014 executeClick runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c4ecce45cf3b7b6ea7c1e74d73027c4b9e7765522e04f286430a473b7c5dad"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeServer.handleApplicationRequest: MethodTooLong \u2014 handleApplicationRequest runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8de1aed9f18d2d1b27b0141e3955a5ccd1442fcf4bf8b7b0245abbf31092ddc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DetachedAXObservationWorker: ClassTooLong \u2014 469 significant lines (blank, comment-only and punctuation-only lines excluded), 52 methods. The bar is 400 significant lines; this is 69 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d9d630b425c5c471bf28d6a3105f107d51d6f04b08ef9719f32793d133a482"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PeekabooAIService: ClassTooLong \u2014 469 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 69 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Services/AI/PeekabooAIService.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e276666a411ca0b9368016bf2968f47867b122239f52544448db839343abc1a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RuntimeHostResolver.resolveServices: MethodTooLong \u2014 resolveServices runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"9110809e55e735de28488d3066e51281622d4b4d58e0711aad3ec4e23545674a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CertificationObserveOnlyRunner.run: MethodTooLong \u2014 run runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ObserveOnlyRunner.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad11e3c9da992ac132ddfe013a4d998ad60f96160e59033ce08c2894de9ea63a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WindowManagementService.closeWindowWithForegroundFallbackResult: MethodTooLong \u2014 closeWindowWithForegroundFallbackResult runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BForegroundClose.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"131f59b184646b2bbbbf91c8c45a632420075b3a473394fdb7fc6de243f18b30"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TypeTool.performOrdinaryType: MethodTooLong \u2014 performOrdinaryType runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/TypeTool.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8f11478799239a575bec84ade612b4299923b3f544fc4e2e46e8ad5a4b1708"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeServer\u002BOperationReceipts.swift: FileTooLong \u2014 584 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 84 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BOperationReceipts.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2c24c1f519d1b8418d458206d67f4991611feacd21e83bd116d39324a1a2ef"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ScreenCaptureKitOperator: TooManyMethods \u2014 35 methods, declared across 4 files: Capture/ScreenCaptureKitOperator\u002BWindow.swift (21), Capture/ScreenCaptureKitOperator\u002BSupport.swift (7), Capture/ScreenCaptureKitOperator.swift (5), Capture/ScreenCaptureKitOperator\u002BDisplay.swift (2). The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOperator.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1456787b3910fede5a928fcf55545211a4ab271fc83e02bf7dcc351f557b7a19"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ScrollService: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"17963385d5ce0eeaf6a53f3d3113043bae37abd39721b98200e4cf95e412302c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Protocols/UIAutomationServiceProtocol.swift: FileTooLong \u2014 583 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 83 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationServiceProtocol.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77f3607acca106f1855b46a10eaa46b2e2ca108255900485627a2063d4799cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeOperationAttestationModels.swift: FileTooLong \u2014 582 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 82 over it, 1.16\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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationAttestationModels.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"476a2343ece5a599877fd89e6d2a08400d6a267396476eb8778bf2e9e3f394c6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SeeCommand.run: MethodTooLong \u2014 run runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd526e43860bd3ea1072141660170cd064fa0b3701fe91170b1da0295fd06db0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DaemonLaunchPolicy.startOnDemandDaemonWithStartupLockHeld: MethodTooLong \u2014 startOnDemandDaemonWithStartupLockHeld runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonLaunchPolicy.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf1208b54b396b64c44306f5a1eaf28dc53ae931ce10fd37b02206e64676d3d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentExecutionTraceSanitizer: ClassTooLong \u2014 462 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 62 over it, 1.16\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentExecutionTrace.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d50f917199fbdcf672b385a2674080a6bc48e8d14ef09c177eb66c3153f885b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PeekabooBridgeOperationReceiptSemantics: ClassTooLong \u2014 460 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 60 over it, 1.15\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"c734b0141853642215f215a4f1d3a95db17a43e2b9a62b2ebe103b3b037b8fd6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Capture/ScreenCaptureKitOwnerLease.swift: FileTooLong \u2014 575 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ScreenCaptureKitOwnerLease (10-824). The bar is 500 significant lines; this is 75 over it, 1.15\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1eadf4e4bb296a6aabac725c0418433833906e7a5360e7af3ee7d3a9f541e1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: FocusCommandUtilities.swift.ensureFocused: FunctionTooLong \u2014 ensureFocused runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/FocusCommandUtilities.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"61579a4d100aa420e96bf084e4a7c5db4fa2d60f3edba7505f486dbf56dd5fa1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WindowEnumerationContext: ClassTooLong \u2014 457 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 57 over it, 1.14\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"696406102727f6bc293b1462d1cd0cb1dcf75205b3d8648952210df67b9648e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/PeekabooAgent.swift: FileTooLong \u2014 571 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 71 over it, 1.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Core/PeekabooAgent.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e83adb8afc62e642fb67044edb96fec70c5eee505a0e27fae84b3991145d12"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ElementDetectionService.inspectElements: MethodTooLong \u2014 inspectElements runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionService.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"5852cba6dd07904e423a78c058765e7b5ed8bd31236e700d1520a703d81cd553"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeServer.handleAuthorized: MethodTooLong \u2014 handleAuthorized runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1984a0176a27b74ac5c4bb8b98e6c98bd8f860b29fb663299c8e793c46b25e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CaptureActionProcessBox: ClassTooLong \u2014 455 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 55 over it, 1.14\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionProcessRunner.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"39af8befb543af2432da0bfb5a545b79a316c2bd4318cc67952f1c8038e823be"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClipboardService: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardService.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"7594aa629f3c3aa386185fd6432d124a5e8e69369287c2648fcfbe9d4bdcd4a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: System/ApplicationWindowEnumerationContext.swift: FileTooLong \u2014 565 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: WindowEnumerationContext (7-627). The bar is 500 significant lines; this is 65 over it, 1.13\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4020a693cf3a0a4d78370fdc2620913c43ed82a5515bd393ea132f69a87ed1e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooCertificationController/ControllerEvidence.swift: FileTooLong \u2014 564 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 64 over it, 1.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerEvidence.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf393e1724ea035e0b5eeb7758b434fa5e7113d6f9676742192281a49e6cb11"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AutomationServiceBridge: ClassTooLong \u2014 450 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 50 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7593c38f440f58bf91365e9fa4c2f2a92f17f41551f0023745c45a39601805"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TypeCommand: ClassTooLong \u2014 447 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 47 over it, 1.12\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/TypeCommand.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e7ba78ba9d6547df6a3978d46fcb03f07cd36c8e4aa9ccb48aee567470c70e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PressCommand.run: MethodTooLong \u2014 run runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PressCommand.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"843f4a72f744d0cbf45a2dfe8fc2868a0b1db6a9cc099ef0d19ba2453d7b204e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ApplicationService.listApplications: MethodTooLong \u2014 listApplications runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BDiscovery.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8f6843823158475bedf73ae09410ec7b9da542da2f3e34875a0c164fa26926"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WindowRoutedPointerDriver.click: MethodTooLong \u2014 click runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowRoutedPointerDriver.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93693ac31dedc8eaee20e1d663d359c6cda5ccc72d3e38bb3ace9a7151cf562"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PasteTool.execute: MethodTooLong \u2014 execute runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae1324f82408483f0e08a2e6d402d0d0c8ad7a00f7ed3068ec6bd4f1c417d73"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeRequest.operationTargetEvidence: MethodTooLong \u2014 operationTargetEvidence runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceipts.swift"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"578148959017d8ecbcaeac06d590ce1d1f650a82506f7b5707bc505a2a57059c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: MCP/BrowserHandoffReceiptStore.swift: FileTooLong \u2014 553 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 53 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"622b5174e0ddb032259b75e849369e8fbb572fe0f8cb53990e268ed9f0d63ead"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CaptureActionManifest: ClassTooLong \u2014 442 significant lines (blank, comment-only and punctuation-only lines excluded), 4 methods. The bar is 400 significant lines; this is 42 over it, 1.11\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca63c5660ca7b24c4b98b2f7e45b38b0a78675b1a09f4069df31f20769e2c80"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentChatUI: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatUI.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"9590bfe49f125bd92a8194a42d3b29ad76f6c2626a9acc2ace5928af00db3538"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CaptureActionProcessBox: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionProcessRunner.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"77fb19bcd228a31dc5bb27947c9559a405b7a5635515379af1e644e1ac08fdfd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ScreenCaptureKitOwnerLease: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae7b24678d8321f6a4fb1de0b2a74071510f350df425d4d21459ca0a0619a42"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PasteTool: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"7334ec406d3689a4802a54ee811002761664acc0ec67d051385fab188676a04a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MoveWindowSubcommand.run: MethodTooLong \u2014 run runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/SpaceCommand\u002BMoveWindow.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b3ea14381c23c2bc532d9cd4541f3691bf8a7091a3c24bc9b8bc1a97952d35"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HeldPointerCertificationRunner.performLifecycle: MethodTooLong \u2014 performLifecycle runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/HeldPointerRunner.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0398a2d3b8cf5d09a26a1a6c6ccc6f66c548c134985ee52d6213be65595367a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeServer.handleDialogRequest: MethodTooLong \u2014 handleDialogRequest runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc18bfe24531b633cca8260ac6feb8ec336a3353a5dcb167f9c3846bd9c39c42"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tools/PressTool.swift: FileTooLong \u2014 548 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: PressTool (10-608). The bar is 500 significant lines; this is 48 over it, 1.10\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d76e594c2f6f524189f1b97739105d01c20795b89d91649fffeb6340d7fff5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/HotkeyService.swift: FileTooLong \u2014 545 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: HotkeyService (11-687). The bar is 500 significant lines; this is 45 over it, 1.09\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/HotkeyService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"381bff431bc7e2874959336f052936a2ffcb4ad64074eaf09c8919022e087cb8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/SettingsWindow.swift: FileTooLong \u2014 544 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: AgentSettingsView (293-760). The bar is 500 significant lines; this is 44 over it, 1.09\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Settings/SettingsWindow.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30b2cdc3722bb1fcc581ec6715bbb3738e93696487d0f077b931a1ccf2f5b88"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DetailedMessageRow.body: MethodTooLong \u2014 body runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Main/MessageComponents/DetailedMessageRow.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3444039d75ee1d13c6ff3991406a6222ab0543fbc04e90fb3722520292b19f6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BrowserTool.inputSchema: MethodTooLong \u2014 inputSchema runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29043414974ca15d675713307f744b032b0d69643425a1d6f87ec4154df026f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooCertificationController/HeldPointerRunner.swift: FileTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 39 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/HeldPointerRunner.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a3c7d3c8b435de3b0ec75c38bf3f86d7533489e7a2e7226cb0a3d8d01caa96"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Output/JSONOutput.swift: FileTooLong \u2014 536 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 36 over it, 1.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/CLI/Output/JSONOutput.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4b653a06a686562b6356e8af37b5c19cfa66b6dd8f2a8c5cda60437917c62ca"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooAgentService.executeToolCall: MethodTooLong \u2014 executeToolCall runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1a9dca20bf81d836d72cbae0643a9470b88be7769580a1787494aadc7d1fcc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BrowserMCPSessionManager.executeSequenceUnlocked: MethodTooLong \u2014 executeSequenceUnlocked runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89b758e796ba47504ef0a59ad0d40d827728417d92cd1e6bdd90e03dfe8a257"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UISnapshot.setScreenshot: MethodTooLong \u2014 setScreenshot runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/UISnapshotStore.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5aaa28bf1c9ca8ef0da664c9659fa9a853c236aee65e59ae490c5d6f8832fb1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Agent/PeekabooAgentService\u002BExecution.swift: FileTooLong \u2014 534 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 34 over it, 1.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8e3c9fe79579f31dc0405c01a63eb8561c33d37fed104ffb25f684aba52f44"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BrowserToolCapabilitySession: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserToolCapabilitySession.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae445c489c6c3864c23a51116f8644a7f3b97d319fccd766a37abd75d56799d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UISnapshotManager: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/UISnapshotStore.swift"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"af284674d992b58aeda2c315352b06ce8d5e44b4a9cb2428c9f2037b3e18d0ee"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PeekabooBridgeCertificationMonitorSealPayload: TooManyMethods \u2014 32 methods, declared across 2 files: PeekabooBridge/PeekabooBridgeCertificationMonitorSealValidation.swift (30), PeekabooBridge/PeekabooBridgeCertificationMonitorSealPayload.swift (2). The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationMonitorSealPayload.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"792db1a4dcd7aeb9109342a5598b69ed48f6c0b11da63a3bb0427c1aa046572d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RemoteApplicationService: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteApplicationService.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"675510e6ff0bad3fe7455eeffd649b0ec2f341e31a32ccbcca51c201273ba83f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Interaction/TypeCommand.swift: FileTooLong \u2014 532 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: TypeCommand (9-616). The bar is 500 significant lines; this is 32 over it, 1.06\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/TypeCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"837d64ac2a0316425d90bf7f0caaa3944120fb7c7b19f1bf7a7b3b7e0402cbe2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/ScrollService.swift: FileTooLong \u2014 532 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: ScrollService (27-703). The bar is 500 significant lines; this is 32 over it, 1.06\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6dcb3ce619fb93ba90324c7861a43a20c6d78fb06a679b0391b6a2d4c97ef7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc8770095d291332d549929f812b5d4e970a3555d379b1feb738756a0df19ca"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RuntimeHostResolver.resolveRemoteRouting: MethodTooLong \u2014 resolveRemoteRouting runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a61c9b187adda12559ac89972be3f9709769b541714917b0f66348ecfe7b7e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LegacyScreenCaptureOperator.captureWindow: MethodTooLong \u2014 captureWindow runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BWindow.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1720c01ce451e6c821dc497f972685f06bfdf3b6e949b0000432353752e2b01"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClickService.focusExactElementWithOutcome: MethodTooLong \u2014 focusExactElementWithOutcome runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1665fda4bb22bd67c80e62d4fb7e968898ca688a5b0dd0600ae0760b59dc47d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeHost.handleClient: MethodTooLong \u2014 handleClient runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost\u002BClients.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"243c933f424e9461e6e6b1d14b69437034cf4da88679b73eb5a780437e8056e2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooServices.refreshAgentService: MethodTooLong \u2014 refreshAgentService runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BAgent.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed9b117dd702e455eb8101338697d68e52a2c2a6e84eae9d5652bfdcfce6058"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: System/DaemonCommand.swift: FileTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 29 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":"Apps/CLI/Sources/PeekabooCLI/Commands/System/DaemonCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5436f4721f0181c90149042f8a1681a3da3ac5c34d27f5d50ee47362710622db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Agent/PeekabooAgentService\u002BTools.swift: FileTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 29 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BTools.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4b8b0b21b4d717d87a73534e634fdf00e669b8a5a877ce324fa957e86c214d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentToolMCPBridge: ClassTooLong \u2014 420 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 20 over it, 1.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolMCPBridge.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"325b6e3967af908d0f42aa7d965bc97115ad089029f852834ff543d12ceb78d6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Runtime/DaemonLaunchPolicy.swift: FileTooLong \u2014 525 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: DaemonLaunchPolicy (6-717). The bar is 500 significant lines; this is 25 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonLaunchPolicy.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"597dbd6f44c1809cd53a191d92a298e855839720bc486f94421ef19a6552eb16"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RuntimeHostResolver.remoteServices: MethodTooLong \u2014 remoteServices runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver.swift"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ccc7b9cc624a6ac5b2622429a50280ed004e0945162e20ac8c3770bcf5cf60d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BrowserMCPSessionManager.resolveTarget: MethodTooLong \u2014 resolveTarget runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5d2a70a065e1a3387d32df970fdb0476b029f4e26dd7fc22f558ceb06ddf94"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Support/SnapshotManager\u002BHelpers.swift: FileTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 24 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0271dd65100f9623bf753d980775f4dd6d97984fa8b5ea7b54efc29898e734"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SeeTool: ClassTooLong \u2014 418 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 18 over it, 1.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SeeTool.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa9842cb10c7c5d9362a01be3ba71eb40bc68bd81f9468f8b1efbf26cb1e1b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/DetachedExactWindowFocusReader.swift: FileTooLong \u2014 520 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: DetachedExactWindowFocusReader (62-699). The bar is 500 significant lines; this is 20 over it, 1.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c3b3782be0693b07db7dd684eb3f04491121db57404c4e5cae74723523ee0f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BrowserMCPSessionManager.prepareExecutionReceipt: MethodTooLong \u2014 prepareExecutionReceipt 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a13e73d53970d867a4ff5fe6d98e0d52bb588998b4e9ddfda91c8b79a5352c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PasteTool.performBackgroundTextPaste: MethodTooLong \u2014 performBackgroundTextPaste 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c98700348ef24d73e1b862013282085840c3bdae0aff26aba2e153d15bf3a8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeResponse.operationTargetEvidence: MethodTooLong \u2014 operationTargetEvidence 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResponseTargetEvidence.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4e69594ad73cbc0134d85238eb44e3615a0ca9cce4cc9eb84fd85ec71ac7f1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentOutputDelegate: TooManyMethods \u2014 31 methods, declared across 2 files: AI/AgentOutputDelegate\u002BFormatting.swift (20), AI/AgentOutputDelegate.swift (11). The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentOutputDelegate.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e9ce2f37aa7390ee68057f093874f19e7c3efaa3347130126bc473538607a1d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LegacyScreenCaptureOperator: TooManyMethods \u2014 31 methods, declared across 6 files: Capture/LegacyScreenCaptureOperator\u002BWindow.swift (9), Capture/LegacyScreenCaptureOperator\u002BSupport.swift (8), Capture/LegacyScreenCaptureOperator\u002BSystemScreencapture.swift (7), Capture/LegacyScreenCaptureOperator\u002BPrivateScreenCaptureKit.swift (3), \u002B2 more file(s). The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd72fd276b90ef81dc712547c46881fabf26402cf1770fc1d7eb0b7dac2500bb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TypeTool: TooManyMethods \u2014 31 methods, declared across 2 files: Tools/TypeTool.swift (26), Tools/TypeTool\u002BActions.swift (5). The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/TypeTool.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"011e8f6fc7b3c1c7a1d9645fb9b80c2d7ec5fff1d4d4456b5b13b595acb4984e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VisualizerCoordinator: TooManyMethods \u2014 31 methods, declared across 4 files: Renderer/VisualizerCoordinator.swift (14), Renderer/VisualizerCoordinator\u002BAnimationAPI.swift (10), Renderer/VisualizerCoordinator\u002BInputDisplays.swift (5), Renderer/VisualizerCoordinator\u002BSystemDisplays.swift (2). The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Renderer/VisualizerCoordinator.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"388bd49bcb0af7fdc66a2a2c9e0564a2055bda6f5a3e5dd924766e187ac73c4d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PasteCommand.run: MethodTooLong \u2014 run runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c324fc528403d2e7ce9576378486f4719dabe10675c8eb2285984823e01f90"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClickTool.execute: MethodTooLong \u2014 execute runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"9697704ee5525a10aa7aaa64a6af84f4deb7bbadc8e3592ea3b23ee95f8603f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Capture/WatchCaptureSession\u002BLoop.swift: FileTooLong \u2014 514 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 14 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureSession\u002BLoop.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"162a972f20cbe42d89725d7f56e3196e0cd8ffbd1bc2b20c3ad5c86f9c93baf5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tools/ImageTool\u002BCapture.swift: FileTooLong \u2014 514 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 14 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ImageTool\u002BCapture.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a755fa462f11da0d8c0a081388d91b488cd1ff3da78ef6ce146da4fc873a4ae6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PeekabooCertificationController/LocalPIDAttestation.swift: FileTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 12 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3942dcb95e8878d48beeb6ce2d89d1ecc9a7e9d9004016f169349f1df043d81"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeClient.requireNegotiatedInputCapabilities: MethodTooLong \u2014 requireNegotiatedInputCapabilities runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f97cd3d71ba2594b7820b1881f22e39a8d4dcbbb18482e7bae11370d4b1f41"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: System/ClipboardService.swift: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded), about 67% of them inside a single declaration: ClipboardService (241-735). The bar is 500 significant lines; this is 9 over it, 1.02\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df545caf4e31fa5ef899bd8fbb16e7d3505acc4445723552556accb71e693ee4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CaptureActionCommand: ClassTooLong \u2014 406 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 6 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c90fc09fa5de82c7d0e89a59deeed9d0d37d421d233cc5cfcb476cdd690afa"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: InspectUITool: ClassTooLong \u2014 406 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 6 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee77b1c835cf617c58588a03098f9dd5de24f2ad0f741f79bc0d6334cfae20c4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ScreenCaptureKitProcessCapabilityRegistry: ClassTooLong \u2014 405 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 5 over it, 1.01\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitProcessCapabilityRegistry.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"49029567f7a81adcc3554c0acf2e49083f89bca1f3467e7de680355fc33187eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Support/RemoteDesktopObservationService.swift: FileTooLong \u2014 505 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: RemoteDesktopObservationService (48-644). The bar is 500 significant lines; this is 5 over it, 1.01\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDesktopObservationService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cbbe3dbc8f305a3f850a1b657bf6fad90f45dfc595d2d0cd74beff92e8abc67"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SeeCommand.prepareResult: MethodTooLong \u2014 prepareResult runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand.swift"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"1966503cc85408c227363ffd8e4d39ebd1ae41b40e293ad1cd4dc01ecfd45319"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeServer.handleExactWindowTargetedHotkey: MethodTooLong \u2014 handleExactWindowTargetedHotkey runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"99bc7cf951777ebffa490af672b1fed51466ee70353ee0de77100f8252aca93a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PeekabooBridgeServer.handleMenuRequest: MethodTooLong \u2014 handleMenuRequest runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b626cdeb661c76485958f9dcb8f2b5b9ebc4149aae247dfc2f798367582137d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (77 shared lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift:305-413 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift:416-519 \u2014 These two members are variants of one another: 77 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c506104935f9c45097150915f9fd28f02a6b144fc19256d8a14c7e21ca9ab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift:191-226 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift:596-631 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f446532c57022ec9a7371dd02bafccda583d5db563ca98cfeeae2acd2cd05ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BCaptures.swift:155-188 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BCaptures.swift:190-222 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BCaptures.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8425d0f10aa91b36e889d0f2b1b2070fb909cc04774debd327f1380b4dcf43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AnalyzeTool.swift:214-239 | Core/PeekabooCore/Sources/PeekabooAutomation/Utils/AIProviderParser.swift:36-54 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AnalyzeTool.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7299432bcb87e2ba4b65155c19f9dc8e74eb89fcb80a6e5dbb2941085c0cca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Apps/Mac/Peekaboo/Core/Settings.swift:645-710 | Apps/Mac/Peekaboo/Core/Settings.swift:864-891 \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":"Apps/Mac/Peekaboo/Core/Settings.swift"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8d7eb0e646ce2d2ead9145bc94c1131e44d5542ce62f8d685f33c920b84c59"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift:342-357 | Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:520-535 | Apps/CLI/Sources/PeekabooCertificationController/PrivateArtifacts.swift:229-286 | Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/CredentialFile.swift:88-144 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgePrivateReceiptArchive.swift:65-123 | scripts/support/background-computer-use-probe.swift:2423-2451 | scripts/support/background-computer-use-probe.swift:2798-2817 | scripts/support/background-computer-use-probe.swift:2984-3004 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fac5bd895432dd9f044336e853eff71f71cbdcd054cd706604e783291f4dce1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BReceipt.swift:354-402 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift:911-1002 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/CaptureArtifactIntegrityValidator.swift:108-187 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/CaptureArtifactIntegrityValidator.swift:235-301 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift:734-777 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift:1224-1276 | scripts/final-qualification/integrated-cu-emitter-calibrator.swift:223-306 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BReceipt.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"80720992db973e0838d21871adcca56138824a22118a93cd58b365cc1110bacc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationCrashInventoryPayload.swift:36-48 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationMonitorSealPayload.swift:25-34 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationObserverSemanticPayload.swift:105-131 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:117-135 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:203-218 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:401-417 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:469-487 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationCrashInventoryPayload.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e8ea907147d696efcf154e5e99f6864ffb1d1700e688e117fcc9773f95e3b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelCapturePipeline.swift:330-355 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:1296-1318 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveScope.swift:152-174 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/TypeCommand.swift:453-464 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationROI.swift:13-26 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/TypeTool.swift:437-506 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelCapturePipeline.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e35772544d00d59cfb44848a04f4e8158441368413a5229aa6bc3cb07b1beb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:48-82 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:84-129 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:178-220 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:222-264 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:266-314 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:316-355 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a197a1e68fe81dd45560c407dfc0573b9f7b668842fbad5795ad224a15a5d663"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Core/PeekabooUICore/Sources/PeekabooUICore/Presets/AnnotationPreset.swift:121-139 | Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:135-153 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/ElementStyleProvider.swift:139-157 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/ElementStyleProvider.swift:159-177 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/AnnotationPreset.swift:58-76 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/InspectorPreset.swift:78-96 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooUICore/Sources/PeekabooUICore/Presets/AnnotationPreset.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f204c14d591048021a1d74df16f19b33a7eb03f02120fe9d9456e580e8a247fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverDetector.swift:112-122 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BSupport.swift:79-114 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BWindow.swift:365-375 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift:193-263 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraWindows.swift:250-333 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverDetector.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bae358790ddcdf1b588b5e2beb9cde8d9dd4e886598c525ec256e5b846f10e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift:1088-1115 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift:630-654 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift:656-683 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift:686-710 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift:320-351 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3b9ae79b8d843a3147393a20c4d97ec1f546088424c12062cd7bd274fa8a9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:255-285 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:323-353 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ElementToolFormatter.swift:376-400 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter\u002BMenu.swift:110-147 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter\u002BWindowResults.swift:242-264 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee75df1aafa33e487e87cd46980938ab3fba12c4126eae4eb38b435fa2efe0e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:268-307 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:309-341 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift:44-101 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SetValueTool.swift:48-112 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c895282cb600cf6764ca14d124f3b954f2da09bf316184c900246774541239"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift:329-368 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService\u002BCapture.swift:90-152 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationTargetResolver.swift:281-305 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BWindowListing.swift:35-65 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f711ecac7a06605860cc60ea95d311b5c3d4f60da0722e5d6c7277ddd0f432b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift:372-380 | Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:125-132 | Apps/CLI/Sources/PeekabooCertificationController/ObserverPlan.swift:213-220 | scripts/support/background-computer-use-probe.swift:26-33 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"db008e44bca5ad80583b411c5549c7fc3b9a6f4432dfd8405f5402049ca9ef3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift:444-478 | Apps/CLI/Sources/PeekabooCertificationController/HeldPointerPlan.swift:180-216 | Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:60-86 | Apps/CLI/Sources/PeekabooCertificationController/ObserverPlan.swift:276-295 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd188bfd66b1c928464e06b44d7960bface40822bb373cc1677c58c44ef019af"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift:81-151 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager.swift:159-230 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:533-651 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementClassifier.swift:122-152 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a1d7c8796c3c0108a4f6e1ac694fdde061c4592e9b8317dd2c3bea2fcce696"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (167 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift:222-398 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift:597-763 \u2014 These two members are one piece of code written twice and then edited apart: 167 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"53371e82aba6f3f1c66bfb5dd908f4d2fe09cadfea26e7386d1e19400b2de4e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (78 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift:126-203 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift:205-289 \u2014 These two members are one piece of code written twice and then edited apart: 78 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d2549e6d7feb956b5da7a9d0dd16b8c42feaf234ac77c4f2761952f815f9b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift:10-65 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift:111-163 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e3ca2d047c92e5976214a1a08984e1b5aeb57f5f4381e5928c3842f32fddbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (72 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:523-598 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:601-672 \u2014 These two members are one piece of code written twice and then edited apart: 72 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8334363f7b2ee28aab345a4f5462f8e8920b3e461fe49d91a1ef2370b8c414"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:1374-1411 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveBindings.swift:20-50 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":1374}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2428998ad6269c30058dfb3393925e06f0cc14f5063d9823f8bbce53474b87b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (64 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift:744-814 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService\u002BTargetResolution.swift:36-99 \u2014 These two members are one piece of code written twice and then edited apart: 64 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1eb598c40e969731560b38c388e87dfa7a2f85109331382eecca014d0a4175a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift:136-188 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift:190-249 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d56d9d5b67357c95c687dbbe24cad168438005c7e7412514206dd103069506"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:694-744 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:746-780 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"561f59fc4be6a99c9262c15b2468dbabca93303cdd95e9f1de9f2f5ef47ea36d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceUtilities.swift:93-154 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceUtilities.swift:210-273 \u2014 These two members are one piece of code written twice and then edited apart: 62 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceUtilities.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8b9c65e597992f0bbefd87a24237fb1c9ed308e52d5219f16765fae515152e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BTesting.swift:266-317 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BTesting.swift:319-358 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BTesting.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d574777fd90ecec4f7387007154ebc37b9ce58d22d702566a84b9d95976ab4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool\u002BFormatting.swift:32-61 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SeeTool\u002BFormatting.swift:20-54 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool\u002BFormatting.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"4803e8698333daa7e98d79dea3c15227b9d7c8af5e4ae1ede39d018196be279e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift:903-965 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift:967-1020 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"54742bf7f93766a9bb2ce47eeba29fd2fabb532eb21e1a42ca9ea650b10dc037"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/CoordinateTransformer.swift:54-93 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/CoordinateTransformer.swift:96-134 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/CoordinateTransformer.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa132a22a731de0d7525d91f0a6f12b6474c62e239d614ed647791f0f1891fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (77 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift:28-106 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SeeTool.swift:31-107 \u2014 These two members are one piece of code written twice and then edited apart: 77 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe0354b1cd6c4868cef3d218d8a1218d209e25fde06c118ad1ae67440e67601"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BResponses.swift:9-41 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BResponses.swift:43-70 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BResponses.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"992b02ef820e738a817ae90845fca46764251bb043b624cf78c1e1a81ee5dea7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:733-775 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/VideoWriter.swift:364-402 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"21fb207415603959a5d35adae8ffdd108541bb81a045fba1f3cd7c42d2249924"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift:357-385 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BActionResults.swift:296-333 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0f41340ceb478e7bbf9d01960283cf8da71f81da490cfa9851048535f3f1b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuBarElementCollector.swift:8-60 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuBarElementCollector.swift:62-117 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuBarElementCollector.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"113877ea8a0555b438080282702e54035396ef4150857d22608bc4e295215927"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift:251-281 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift:283-313 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62c96b574c836d0cd68264979310e6d35c00baf04e89566370e47a511618609"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:1228-1272 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveScope.swift:75-127 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c75692a21cdf724d4d046d7a7ac4b40dd05716506771f5b5fbfdc99acdcecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:368-416 | scripts/support/background-computer-use-probe.swift:2756-2796 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"3576c9375f4b86ffe35cf1e1016800f725b14982801f3e54822ce3a47b1ba2e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/FileService.swift:19-71 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/FileService.swift:73-131 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/FileService.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8821be2060ede9dfb4f9f86ba37e2f8790147000bb376833c9a76c5408b4d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift:129-154 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SetValueTool.swift:141-180 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"9541cd8f37c561d993700b1c9002dd2e20c59dea80f3495c7389efe5ff57ef65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValue.swift:162-192 | Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValueConversions.swift:79-106 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValue.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b3bf2aeab2b44dd75db9f59d049772a944b7e2a42b363e9f3daaceded6d4ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift:28-66 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/SetValueCommand.swift:26-64 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5beac9501397548810a6e86eb9f0777b9e09751cd125df17a08a7e416bd7a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 44\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Helpers/ProcessWait.swift:11-66 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BSystemScreencapture.swift:173-216 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService\u002BProcess.swift:9-61 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 44 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or 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":"Apps/CLI/Sources/PeekabooCLI/Helpers/ProcessWait.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b158151969cf72a07a48c255517ff58db9f6d174ebc36596279eb0fce82e9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraState.swift:13-56 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraState.swift:105-152 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraState.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba748e36187971125c35380ab62640c5830f96690ed6a0232693fc65c909dbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:588-615 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveOptions.swift:6-33 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"dedc74f5f09c9830aacac60915c0c57fc7aaa049859ce38c5239407ded430295"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): Apps/Mac/Peekaboo/Features/Settings/AddCustomProviderView.swift:313-353 | Apps/Mac/Peekaboo/Features/Settings/CustomProviderView.swift:371-407 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Settings/AddCustomProviderView.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"852369e444b7cb00d8c8562a4d52b41f338b3d449ce2f6642d0491bdf0bd8f29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:10-46 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:131-176 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1332d7df09c905131c05b57dd646800fb0c1905982a314c0be6d884a2f22ace"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/ToolResultExtractor.swift:70-114 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/ToolResultExtractor.swift:119-149 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/ToolResultExtractor.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7285351943940e620ab51a7520a277ceb1d4f62c0ec46577c2487082acce93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBootstrap.swift:23-61 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBootstrap.swift:63-99 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBootstrap.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6444385b676bd1008388807f9aadf25da202b8995a50d5e2778c54bdac5d9029"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand.swift:69-124 | Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand.swift:148-193 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93bb21f1e1578584c956f9ae583627032a550c16192e54322e69cdcf8032300"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift:42-76 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift:152-191 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd9b9e547a08b295db075b8ac1f9b6db8c4c588b83f460f91af8649d836952b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureApplicationResolver.swift:22-43 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BDiscovery.swift:496-520 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureApplicationResolver.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b269ea66990aa3207b6282515e3c7eb3fcc078b56de41fa53edbaf3c1a8f7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:1132-1168 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:1170-1197 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ce1448622eb2e5983a5cef1c02dbc93ec193139856e5bd163f76d36b03c8af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BReceipt.swift:420-456 | Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift:313-340 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BReceipt.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c113301b2c943318163d9ec003254078940edb4858e3a89ecca575af0c6134"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BLifecycle.swift:84-107 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BLifecycle.swift:109-135 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BLifecycle.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb46f050d89c55b237bea09c05ed140a9bbea1e0a17d61861a8ae7af21a5727b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift:185-210 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift:241-270 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f13a188a40a426b8ead89e6fdcd0612ca1ef3ba0ab4140a2d839fce5e7d8e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.swift:75-100 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.swift:102-134 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c813c7a0e49c2790a6f8d5a41e43fb67d5a913ce9ca624d3eeb5f989ea6531"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/Snapshot.swift:107-147 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Support/UIElementSummary.swift:29-67 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/Snapshot.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ff396daf96f1c8fd5f1e4dd77b6eb7bc73b248b9a70a9eb506afeef418f695"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BScreenshots.swift:125-146 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BElements.swift:17-42 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BScreenshots.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d27d07afe111e61dae5f5bccf06238e56181cd99326dd912459b64dc165745d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:542-574 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:576-606 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc3e196f293ec5118a069d2b909c168455ce35706facb7190735389ae4cdd45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/HeldPointerPlan.swift:138-151 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceipts.swift:101-119 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/HeldPointerPlan.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"d045a812d08d031e445492014355caf335234e1ac2ad2ff3cf80527af26296cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 37\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.swift:277-313 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift:1177-1213 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/ToolEventSummary.swift:36-78 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 37 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d5556e7608c74adf712f139e8928423fe1b4acf9dcebf5a758db528ff82dfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift:712-751 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift:753-787 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd7abeb07966386f2b5ca2bf11f0649dae4a715154de7241e0bd86a52ab0a62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool\u002BResolution.swift:62-82 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MoveTool\u002BParsing.swift:6-24 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool\u002BResolution.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"738e88b5c8a8a2d6845789de876169554a8c0f7a05b089f770ec8d87862e4b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool\u002BFocus.swift:5-40 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MoveTool\u002BExecution.swift:59-89 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool\u002BFocus.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0b64d4ce29bb3675d29e43e2601c79833422837364e13b62bb6e4ff9dc02c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift:521-550 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift:165-198 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa6593787acf7149fec9a12e40f956193af6097216245633de8bcc92c394156"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool.swift:382-407 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SeeTool.swift:224-251 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca43db5484b29e7cecaca057eb8dbe8c9eb3b730b4862e83c1f57adeb2412f68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeResponse\u002BCaptureDiagnostics.swift:5-28 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeResponse\u002BCaptureDiagnostics.swift:33-56 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeResponse\u002BCaptureDiagnostics.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5492c17d2ab62a5853b85a87bfbe24ed51540ed9d187a134b0b7a2c7f3598af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift:773-802 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift:804-843 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift:878-907 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"42592be0aa47f58441abd4fb0ba69481f4ec7b7d65ddc0cffb03158d4f7b449f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift:255-282 | Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift:482-507 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f04f54756fd68c2c24d94ede9d4168f748929c030ccd1f322473c3b2f88774f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Apps/Mac/Peekaboo/Features/Settings/SettingsWindow.swift:393-410 | Apps/Mac/Peekaboo/Features/Settings/SettingsWindow.swift:412-432 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Settings/SettingsWindow.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5f1d0c7bf387e180f2e28ca6adf082ec71f8cee395e3ce5cc1a596ef7c8833"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift:578-605 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopOperationLaneCoordinator.swift:255-288 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardPasteTransactionGate.swift:195-220 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1db0bac6c1f82ebda264f35fa6d047b8dcc684d3593e39f3f06e51cbc4a343"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:242-262 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:295-315 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7e488eaf33d13a36fabd92bcf4846357f4c862fb2a7f8f124b1513a8cb155f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentOutputDelegate.swift:277-302 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentOutputDelegate.swift:306-323 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentOutputDelegate.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4cfe5620fa0698bc588b257acfc415d270a58b7fd0ea2cf21032a859a05e14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift:846-870 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift:665-692 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService\u002BTargetResolution.swift:112-137 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71a7873792eca226f889d58ee7b0ee05ff43d4f80e6fab61001a3400b2f7210"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelOutput.swift:202-220 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelOutput.swift:222-246 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelOutput.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94b27c75001559c3074bffa771540919bc72242a1eef5cbe19a6e4990105bd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeRequestResponse.swift:344-366 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeRequestResponse.swift:404-426 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeRequestResponse.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50dddae404eac163bde0946edf35d50faa19089c846f6aff3cd1a3701efcbf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BCaptures.swift:7-37 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BCaptures.swift:126-153 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BCaptures.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff2989e4b1c48f9f7f39ab13502e70f458b731b61f1278bbdc2d1fa75f28262"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift:230-262 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift:309-342 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6b5f18090eeeef5db7402c6138ad3f2069be009dfcb65af9b9512501e03bf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift:282-305 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift:307-325 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4078d1164fceb35cea98b62e4680eca57f1ac2df74b8acbea4038cb952c5044"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift:454-487 | Apps/CLI/Sources/PeekabooCLI/Commands/System/ClipboardCommand\u002BCommander.swift:409-441 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3fb458821799a7167b833fc55b38367ed2eeefd19a8f270c58e4bf4d6f13cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:1140-1159 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:1161-1183 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7744539a74cc63a14abb74784e6d677d3e42a557691e8ba1d543da925f39a04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext\u002BBrowserSession.swift:45-69 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift:823-848 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext\u002BBrowserSession.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"31bf627bf132dfe74b6075a3e0945bb427b62c670471d74b829998ddd8c84040"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BPointerKeyboardOperations.swift:326-343 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BPointerKeyboardOperations.swift:358-383 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BPointerKeyboardOperations.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"5daa5aacb9f480151d206fc357926c9998822159d1e552d5b48441daba8e436d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraState.swift:188-215 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraState.swift:217-249 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraState.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbfd5e3f75bae832cf519e51edfc0127fe49736978e72dfb4b18941e9ed421fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClipboardTool.swift:170-195 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClipboardTool.swift:219-239 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClipboardTool.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"741902e9e627abfdd788ab2a346b94258cce49e0001447e2cca7c5efa67a8c03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionTimeoutRunner.swift:5-40 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateDeadlineRunner.swift:8-40 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionTimeoutRunner.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ddea39301dd6eeb6aaa3c51c1303d073f1d2cda86c88c232d405be9d1e2fb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift:219-247 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift:359-390 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"e817c2738c8cf18d70f4502232cb94a6173f87367c7478d1ab93d823030637fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/HeldPointerRunner.swift:129-148 | Apps/CLI/Sources/PeekabooCertificationController/HeldPointerRunner.swift:165-191 \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":"Apps/CLI/Sources/PeekabooCertificationController/HeldPointerRunner.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9452cc0a819b7b580d66b0b08551ef2859f168a8a4fec26a9437aa42ac132d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:610-638 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:640-668 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e6d8b466ff4eb8c160c6669d8dc7b0a489b06c882665be880d279ee795a882"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift:38-57 | Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift:59-79 \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":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ff3b702ab79565444088e96e94e6a1aaf862cc3df4497a0066814b5461e20d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:137-147 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:489-501 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe295b8131200fa691efb18a318fef0e639453441c7026c87fae9fa1ce3a055"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BLifecycle.swift:712-732 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BLifecycle.swift:734-755 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BLifecycle.swift"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa006954d1a5d86802df0ab8dd1a90d64a372f8e81c5b13b2a70989800b1789c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationContext.swift:468-490 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift:486-504 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementActions.swift:374-395 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationContext.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b35612652fa5ba0515411e410331c0bdde198faf0ae660e85cf375200016c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService.swift:393-422 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService.swift:424-446 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf451714a468e4d2bac7fe2f672f250ab8666505a910753bb108e4db2231f4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/SystemIdentityResolver.swift:351-372 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/SystemIdentityResolver.swift:376-406 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/SystemIdentityResolver.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbaa1b62f81d13b20143f2c183533493bb0f9d44cd9113308cdf1cfd0d43909"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentCompatibilityTypes.swift:191-202 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentExecutionTrace.swift:62-80 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentCompatibilityTypes.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"26716af73b9cf3b9d5fa8db63fd1aa80c2c240ea43b06ceed435ca77f11d7b5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift:730-758 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift:465-494 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a689dc06cf75c0ea8074d9d19880494e15fe3e15aca9e1910e5c019fda9672"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureSessionOptions.swift:67-95 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureSessionResult.swift:20-50 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureSessionOptions.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"aacf506cff93805538be6364a7d4f2a93a6f114abdbd035ebd2c0c2104ab5076"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValue.swift:194-213 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeJSONValue.swift:31-49 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValue.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2ff183b2fe95293764d97a0f0143cdf35f8e1b4939e081968130775fd0353d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift:552-567 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeJSONValue.swift:12-29 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0119cd264e6d7ca5434ca2f28e9f6963b40e2dc8d82671c2ee42cc5f3b0ca2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogHierarchyReader.swift:156-177 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuExtraAXReader.swift:284-306 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogHierarchyReader.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"2600516d6e671c81c8a759e6c03d2d5c6b4aff5d13ca826ea5143204e33e9f3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationAttestationModels.swift:26-44 | Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift:726-746 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationAttestationModels.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c316e0f6a5c62119c6a50f9281bbb5cc4480c930c6c5f969e286fd30e09f96f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:462-477 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerTransport.swift:224-235 | scripts/support/background-computer-use-probe.swift:2741-2754 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"5becf51a9a6e136b3907576e1b9a1a81281a774e33f0c352e5156219171fdf0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Server/PeekabooMCPServer.swift:68-87 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Server/PeekabooMCPServer.swift:89-106 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Server/PeekabooMCPServer.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2013f53cf83115a74885702b558da7d74cd41408ec5315cfffb2dc00fa5c1bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift:592-602 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BActionResults.swift:187-197 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee41504a81e5096fa17b5b52bc4dd98df2cb101a0efe5e67b6478467b62bd1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolSnapshotMutation.swift:148-176 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolSnapshotMutation.swift:183-216 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolSnapshotMutation.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"19381a21bbd67b9f5348f39be5cb2c21513addeac5b204fa038bd525f11b1559"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatUI.swift:166-173 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatUI.swift:175-184 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatUI.swift:186-193 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatUI.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"563898583fa18ee5b0e587960632a685f39fe2e73f270e5e595270688b013254"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift:757-777 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift:1329-1347 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d15afc3050753f71f5de2ecf84748d2b565cee0ef3f90e9dd1a37d8589635d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Apps/Mac/Peekaboo/Features/Settings/SettingsWindow.swift:206-232 | Apps/Mac/Peekaboo/Features/Settings/SettingsWindow.swift:267-288 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Settings/SettingsWindow.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43c2929bdb8281a97928e856c5ba9144f53eeee892070889145b7dd5ff5c2a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift:105-133 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift:146-173 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2350ebcad32085cfe29085fda2ff7ecc894171c68c3eee2b34a5b3b2efa7811"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandshake.swift:465-481 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandshake.swift:483-502 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandshake.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b19dbc4d542063ccdf12b644de402a566a9c9b8721f8f5e13b409371a58da8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:777-802 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:804-828 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/VideoWriter.swift:404-423 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e665df4957ea3a963243ddbddde41b454f7bd2ecbc02cbb2dd282335d83e5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureFrameModels.swift:99-131 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureFrameModels.swift:134-161 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureFrameModels.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b563029937ea4621be0ecc23bfa4a92869864457a21bcf080e1b354843a73a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService.swift:69-87 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService.swift:105-124 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ef53e35ebb055a53d53bfeaac3585132a58d373ef5b11702082883889b07e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Apps/CLI/Sources/PeekabooCLI/CLI/CommanderRuntimeRouter\u002BHelp.swift:214-232 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandHelpRenderer.swift:135-154 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/CLI/CommanderRuntimeRouter\u002BHelp.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bca122fca011399c3d26226839f693807c37dd992ac79c0d783b801078bfe58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Apps/Playground/Playground/Views/KeyboardView.swift:243-270 | Apps/Playground/Playground/Views/KeyboardView.swift:272-295 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Playground/Playground/Views/KeyboardView.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09d250fb015011eed956549e0d171082ca977f4dcad29fb8d4304b3f01a4ce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/WindowIdentityUtilities.swift:319-342 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/WindowIdentityUtilities.swift:348-364 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/WindowIdentityUtilities.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec88cdeaa94b7a45a144c79dc15e479b73560153c7e0d662e731df14458c4fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:78-98 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:187-203 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d525dc67e1e07c1b3a4887cb55da908fa9e936c35eb59dfc135f09847416c02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 16\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/CLI/Completions/BashCompletionRenderer.swift:135-152 | Apps/CLI/Sources/PeekabooCLI/CLI/Completions/BashCompletionRenderer.swift:154-173 | Apps/CLI/Sources/PeekabooCLI/CLI/Completions/FishCompletionRenderer.swift:144-159 | Apps/CLI/Sources/PeekabooCLI/CLI/Completions/ZshCompletionRenderer.swift:142-159 | Apps/CLI/Sources/PeekabooCLI/CLI/Completions/ZshCompletionRenderer.swift:161-180 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/CLI/Completions/BashCompletionRenderer.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"396bf08cc9f76f302a4ebd4dec9673b613b3af52927b01af0e1aa91ae2e807cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService.swift:357-378 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ImageTool\u002BCapture.swift:569-589 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"063198506726097b5663e3e5fbd6b629364898be7453bba60184d7899570eedc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift:406-422 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift:424-438 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef1d83f69f5fbeb6cd24ea7b6b40d9c1c7eee75b3313a3b07d7d26012c139e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandHelpRenderer.swift:107-118 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandHelpRenderer.swift:156-166 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandHelpRenderer.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"21fc56711bcd70c03bfedadd5dcfa922e247be306681526d80da2f604d736059"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonLaunchPolicy.swift:238-248 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonLaunchPolicy.swift:250-260 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonLaunchPolicy.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf548ad45c6525ceb1fb77c53ebd1f46feaf4d526e5025b4f33d9c7a8add87e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/CoordinateTransformer.swift:257-278 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/ElementLayoutEngine.swift:144-165 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/CoordinateTransformer.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3c56c15d008827623177e464e9ea6aa1abed7da9c740c5b494fbb044ac3a34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift:774-786 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift:794-807 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d0315256b589f761891a7b60a2a2eb3b927b1b2540b80e1b5d51b5aa4e268e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceWindowMutationDispatcher.swift:269-300 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SpaceTool\u002BHandlers.swift:423-446 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceWindowMutationDispatcher.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2b2ffbbe12341dc892b3a32872b0b5017cbfb7b322c2b3b73157c50402489c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:108-128 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserModels.swift:79-100 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f398f298b821ae7f90e9475702903b54cb7a5a623a67c7dbc3abde3fbd6337"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:36-53 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:78-95 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"7827e01603c90d203317a4a9c5835f6aa6c756af546f61b3975e9cb3b609111c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 23\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:805-827 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:829-851 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:853-875 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:877-901 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:903-927 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:929-953 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88a8ef320b2bd4058f8bf9f8f0a54d2b658e709da9ca0abc1246a8376a4c09f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/ControllerRunner.swift:143-159 | Apps/CLI/Sources/PeekabooCertificationController/ControllerRunner.swift:161-176 | Apps/CLI/Sources/PeekabooCertificationController/ControllerRunner.swift:178-202 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerRunner.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"91895cac7837a607682d1096e413beecada2b02f660e584b9a452a33d6ae69f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/HeldPointerRunner.swift:26-35 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift:57-66 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/HeldPointerRunner.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3164b94428b7255cf90db694aae7455b48f8106166b306c0eb0fe3a11b6a5bd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift:38-52 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift:637-650 | Core/PeekabooFoundation/Sources/PeekabooFoundation/BasicTypes.swift:210-222 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"932f0d5c47b1a2aa79aa7a5153f1d39226b41fbbfeb03dfba227edcd3c108fb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift:169-187 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift:1479-1497 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"012d50f603414e7df20c0e60e5e230aa9535a2864380ae905a46e2f2143b6625"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionProcessWait.swift:173-197 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionProcessWait.swift:199-222 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionProcessWait.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a30190d080efe940da20ee3cf6aabe15f88fe82ea33d8a0d30b4fd40095620"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BAgentExecutionTrace.swift:39-64 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BCertificationProducerAttestation.swift:43-74 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BProcessGenerationObservation.swift:35-60 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BAgentExecutionTrace.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4779c84b301a68f51a7869cfb429842be18e2cb74d25635c4a5d2708bbd2b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/SmartCaptureImageProcessor.swift:42-61 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureArtifactWriter.swift:95-115 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/SmartCaptureImageProcessor.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea870c8054b9025801b41fa6482021bad27aef1b4d3283d34bf116a8540d7a4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BSessionLifecycle.swift:193-217 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BSessionLifecycle.swift:219-242 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService.swift:418-443 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BSessionLifecycle.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6910913cf525019f5ada15ec00b916a2a04a7ad84a254ae8a0c0e319d43e9f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceUtilities.swift:333-359 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceUtilities.swift:410-437 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceUtilities.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2ae94a9f87ee664860f64acf5e2a3375beb7232535d7c0ae1ba3646a56a4c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BTurnBoundary.swift:138-154 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BTurnBoundary.swift:170-186 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BTurnBoundary.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"60bbd2dfc9fe6b66aef38a854beee650bcd61debff584c3b8ece26402056c648"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BOperationReceipts.swift:551-577 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BOperationReceipts.swift:622-641 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BOperationReceipts.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"d984a2acb65db83e43e8d63244bbe2e582f3dfc5533d69b6a95e825a7add39a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService.swift:771-790 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService.swift:792-813 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService.swift"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"772d89acacc7d196ca5f6f86ca0ddb18f8e0589c6abdee8402db3d0277ac32c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarPopoverResolver.swift:206-216 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarWindowCatalog.swift:190-200 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowCGInfoLookup.swift:105-116 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarPopoverResolver.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"99799a0767dcc119b790fc2a270d21d3132339f28d34d19444159194654b48f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:355-367 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter\u002BWindowResults.swift:266-280 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"b417181e53fe80e1303d820995373cdabfddf656a66c22e76c24fff2c112ccf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:456-480 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:482-510 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63e9ad6b733774481bc1999282815bd06b5892a0f14e954be34ba1debf46d3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift:41-54 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift:69-86 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b484ee971facf1be7b8ffb6781fc2c34f15144c3b375c1ff141a5f2b0b3d8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BChat.swift:338-364 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BSessions.swift:45-67 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BChat.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5e395dfd0cc17a8b660ec027e81b8a23dd047f83814c6c2c7f113e8c4f14d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationRequestModels.swift:136-145 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationOCRService.swift:57-64 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationRequestModels.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"44497593d39fbe0a4acc521695bd04486909f1dc5e9a41a875c6916c03445b4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BDiagnostics.swift:371-387 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHostIdentity.swift:81-102 | scripts/support/background-computer-use-probe.swift:2306-2319 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BDiagnostics.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a85e6a0f3f6edd424230c2cea4533c2005b55240d1645bf4aa23bff841749c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift:60-69 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationRequestModels.swift:409-421 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0afc359960321d2a3b57d92c5a75531df617f0ba3df826fc96acec68a66e56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/SnapshotTargetReceiptPlanner.swift:94-114 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/SnapshotTargetReceiptPlanner.swift:117-137 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/SnapshotTargetReceiptPlanner.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"be042b9a1a3deb56272d4f0881f0b98f3ed98ab4eb5bfa52460b77eb1a00a978"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeModels.swift:701-726 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeModels.swift:728-752 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeModels.swift"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"121d55383f9176a7d39714863672f344af49338065199c14035822fe22d9d651"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverDetector.swift:130-148 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ScreenService.swift:78-110 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverDetector.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8abede62bde7f12d43160ada234488cb943b87322c6933e2d6d5b51627e05f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogFileOperationModels.swift:40-49 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogOperationModels.swift:357-365 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogFileOperationModels.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"716b7b5ceee2e3131e908aa6b4b481006aa7e509125efe599d41a63c94556659"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationOCRService.swift:557-571 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateDeadlineRunner.swift:72-86 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationOCRService.swift"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"977b571b306650bebcb52c19380b05e10845927818a52ee134bb6af8f723a325"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift:37-55 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift:87-105 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift:137-152 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb7e7f7d3e6b4f49253f4d5c1cd9df59f7a731750e1ab56269b2952e3168c58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift:103-120 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SetValueTool.swift:114-132 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50f4d38792bfb31d2c38ef4454b7a2674e011b000c66608bbb3aff7e5375840"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationContext.swift:295-319 | Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationContext.swift:342-366 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationContext.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"4168445029a1f9402f21d8db5b7103790145eb65f66c1a2f6e68dfe4718ec73a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService\u002BActions.swift:274-298 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService\u002BActions.swift:300-320 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService\u002BActions.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"857271bf41e4b6e5884b6e8a534c455147eb385b8526aa7b0968fe8fcfed1f63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BPointerResults.swift:9-30 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter\u002BWindowResults.swift:27-47 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BPointerResults.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9452e382baea5fe5a9fe6ab091909e8b630ed63af3d4422804b02ae8b089876"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter.swift:29-52 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter.swift:75-98 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"264b09d22193ee10e5c536d16b74e63bde7279c4dd7e618695b5d5304ef5fa97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Renderer/VisualizerCoordinator\u002BAnimationAPI.swift:57-71 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Renderer/VisualizerCoordinator\u002BAnimationAPI.swift:92-105 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Renderer/VisualizerCoordinator\u002BAnimationAPI.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed32d807eb1d43c68f7b6d06ada14f053eae0cd46e3a7f7cb73cd690e5ee9563"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:347-364 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:366-384 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad87b171b8bfb989ceff08010b0a7a29cb718a4dbaf0432d94da7ef79daf7fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/UIInputPolicy.swift:78-98 | Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/Configuration.swift:218-236 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/UIInputPolicy.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5028455b90fd4e7b2ee9ef64b3b67ccaea4535873492415521770a08e3b698"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteApplicationService.swift:58-80 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.swift:21-45 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteApplicationService.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40316adb3af6996a31f3979881f88ae5771318de477924d88ca2ac7fa7922c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogOperationModels.swift:301-310 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogOperationModels.swift:357-365 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogOperationModels.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c7119b64868e20dbce7e15a31d20f53df651b440534e77c7a734a191b5a968e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift:48-60 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift:106-126 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1864c7a2674a6b21641fb1a664ba31473653182891907c3307ce38008129faf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationOutputWriter.swift:198-212 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationOutputWriter.swift:214-228 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationOutputWriter.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6c51e6f410c0b2146a207194e2512dafd28b3eecab3658d21e77c06751cbf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift:176-188 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:197-209 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ce83ea2f75a279b0f90ebe317c9e8ff14937f0b3142111da8f9740f1d03838"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogFileOperationModels.swift:13-34 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogOperationModels.swift:324-347 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogFileOperationModels.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71e1192965a75adcad2db50c4545e0a91576336c06e8b1d54b16e97d9f96d9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:730-754 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementClassifier.swift:16-36 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d35cf7a2a4cc7096a2fd47e1db27ff5aaf3f37842a8df04c74010d8bb33789"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MouseMovementProfile.swift:14-30 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift:621-635 | Core/PeekabooFoundation/Sources/PeekabooFoundation/BasicTypes.swift:190-208 | Core/PeekabooFoundation/Sources/PeekabooFoundation/BasicTypes.swift:253-269 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MouseMovementProfile.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"505da0f040c60d609d3a1c18c997ee4c56aaa9c7a185bdf641d3379a834bbc13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/ToolResultExtractor.swift:13-41 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/ToolResultExtractor.swift:192-213 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/ToolResultExtractor.swift:218-238 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/ToolResultExtractor.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1bf4a44bc079e4e684650265d73feb050ba2ef54016e502700623baf6b4d0ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:1023-1042 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:1044-1063 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"121ff89d1c5bfa308923d15e0526d4c2763d5bf00af97e10ab9e342adf42a525"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/ForegroundSemanticObserver.swift:18-34 | Apps/CLI/Sources/PeekabooCertificationController/LiveCertificationBridge.swift:62-79 \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":"Apps/CLI/Sources/PeekabooCertificationController/ForegroundSemanticObserver.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5264204ca6c4a6f024a70942cec0de89d665b864fd365001446ce2de5e0c3ba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:594-608 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:610-624 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ce3af3429ce19e1ebfc7a79ab18ac50b0508ca70a00afe1915f63addc4d364"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BExtras.swift:89-108 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BExtras.swift:110-127 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BExtras.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8b48664935b3e4c24fb310fe072d7c389f05878a79572251559efa373c4504"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TargetedTypeInputDriver.swift:60-76 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TargetedTypeInputDriver.swift:78-92 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TargetedTypeInputDriver.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32e20898ac70625ae9cbda28792f83f09bc839cc3c8b7904335f11a63fd3d8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserModels.swift:291-310 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserModels.swift:312-330 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserModels.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"797fc83053e58893d48d606688aa7ecaf4db1b6a7579b261c66ef29af90dc6ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 18\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/WindowManagementServiceProtocol.swift:404-428 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/WindowManagementServiceProtocol.swift:430-447 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/WindowManagementServiceProtocol.swift:449-466 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/WindowManagementServiceProtocol.swift:468-485 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/WindowManagementServiceProtocol.swift:487-507 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/WindowManagementServiceProtocol.swift:509-529 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/WindowManagementServiceProtocol.swift:531-551 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/WindowManagementServiceProtocol.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe96cb4da29bad65ed4a62c321ca445d353101cf1a9030dabe0de9cf484cdf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/CLI/Completions/BashCompletionRenderer.swift:94-110 | Apps/CLI/Sources/PeekabooCLI/CLI/Completions/FishCompletionRenderer.swift:104-120 | Apps/CLI/Sources/PeekabooCLI/CLI/Completions/ZshCompletionRenderer.swift:97-115 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/CLI/Completions/BashCompletionRenderer.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f178e8d91651a69d83a6e0d5035060e531fd8982425fed152ca79186bfb520f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift:161-186 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BPointerKeyboardOperations.swift:124-139 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift:320-344 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d54c1149c6cf1edfccfa02d1cf24982b36ce2a55b0a48f8c45ee9bafd41250d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift:1213-1228 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift:1240-1255 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b1a062a170629d2e166c1e14540a3a27347cd9f12b1e0b0c169b856f485a9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MCPInteractionTarget.swift:100-116 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MCPInteractionTarget.swift:120-138 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MCPInteractionTarget.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"502dbbdc13f6ed1f98474bc9e4ef38fb73a0ce780ac13e2b9553ca7e3e982648"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:29-46 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:460-491 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:548-567 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1881926499e65d76d821c53219dddb7fcb3f489360a39f0f4053e5fd9f738790"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BExtras.swift:31-43 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BExtras.swift:346-362 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BExtras.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c63fd2c3e1aea9f9a97575434ccdac478607f27cb42931108fd445cd830229"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/ScriptedInventoryServices.swift:423-439 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteApplicationService.swift:111-124 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/ScriptedInventoryServices.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"c318f8aa0c6bc5dddd12a6b72d98cd87d3f0872949f7ef2526731f6fd6828d45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationAttestationModels.swift:158-174 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationAttestationModels.swift:295-315 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationAttestationModels.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ac9b71ceb59a8351ea120d299adc64e73c6fba1509cc3bd646a0552c293969"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/PeekabooUICore/Sources/PeekabooUICore/Presets/AnnotationPreset.swift:83-99 | Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:50-66 \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":"Core/PeekabooUICore/Sources/PeekabooUICore/Presets/AnnotationPreset.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f16304bb3d615b34bb106951443eac97bf41ca872a1e6a84fec0ccc5f7eee1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionTargetOptions.swift:65-85 | Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionTargetOptions.swift:87-108 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionTargetOptions.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"673b9fce832d5cb4dbd218998104b3a21169ddaaba78eaf2d50fb57869bea711"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift:44-68 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift:209-227 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a793f54da51a321a6e42f2106a62391760531d083b6fe81e7343357d3f47fec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift:9-22 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:342-353 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1fff1876c653d39658053e664886c425d2a10b9fa74d06914d104796095c3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentExecutionTrace.swift:832-844 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolCallArgumentPreview.swift:58-68 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentExecutionTrace.swift"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae67971cead0129e5506a45f6c55b347638086ebf0e87e296fcf653b021d3dcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserBridge.swift:35-55 | Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserSessions.swift:55-71 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserBridge.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8cafe9361d57d24f88fa63603ac56c43abecd00eff56bfcd0b8bf80dc73a03e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Apps/CLI/Sources/PeekabooCLI/CLI/CommanderBridge.swift:147-160 | Apps/CLI/Sources/PeekabooCLI/CLI/CommanderBridge.swift:164-176 \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":"Apps/CLI/Sources/PeekabooCLI/CLI/CommanderBridge.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26a1440bb719edb892b6f176e9678fac5712b9fca90cebff3f644e63532a507"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundWindowChromeReader.swift:407-418 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowRoutedPointerDriver.swift:880-894 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundWindowChromeReader.swift"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad3d8859d5b5737a9018e0452adedd67f8bcfa25f903189500226e9004072b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:207-223 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift:460-477 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"8504630a1b26d90090eeda5401107611bb5053efd0e7a2aaf09020d6ee209cf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:19-39 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:379-398 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d754b1f005f88c632d1647f0095030faad4b869a03ee1ba5e584d1409e723b7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift:154-162 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentOutputDelegate\u002BFormatting.swift:189-198 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"fada50ef9b28135953ae3028bb7c18cf6757ed5adc99fb70655aabb3b0df2d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/PermissionsService.swift:184-197 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/PermissionsService.swift:227-239 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/PermissionsService.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"736e5c4dace387fb908e053feb907437e3eaef983f704dab10be945223ad7d68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift:1285-1309 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift:1311-1335 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"9acf4f8b36d1621519ccfedb91c1a7e4076ee400aae610287cbf89cda60acf9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BList.swift:50-73 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BList.swift:111-137 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BList.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"18848d54f3fdf5c01fcc7589d1fcde1d31ff11c731529180aec4ecc8fe975969"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValue.swift:108-126 | Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserBridge.swift:306-323 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValue.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"52735d37a77d534a3cb54f5969684a244353a0ae9a990bdcdec3904cef84992b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BScreenCaptureKitOwner.swift:703-718 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BScreenCaptureKitOwner.swift:720-735 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BScreenCaptureKitOwner.swift"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"4799e5220eec690265ef1592daffc095f76bad5d53c93e90aebbe1605de66d2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand\u002BValidation.swift:122-132 | Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionTargetPointResolver.swift:115-129 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift:583-594 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand\u002BValidation.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd90abdad1115d770d0becaba6208b20c08b3c241c582846de5f263f047d270f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:418-429 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:431-442 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"875e89980db7af15dc0fbfd06f122b45ed757ab805738de92244a8300437e58f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:147-166 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:168-190 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab5f9f94bad222d75d4af84cc2dff2a7203dd94579a623ec7992bd432ff2b28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserToolCapabilitySession.swift:678-688 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift:1161-1169 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserToolCapabilitySession.swift"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4e4be431b8474580c656f4056cfd1c5f58a7c26d321e82ef1d859698f27faa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand.swift:376-385 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BEnhancements.swift:245-256 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"5608464316928e467afe76a6daac3202b857410ececb8041d8a08115089eb3e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverResolver.swift:173-186 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarWindowCatalog.swift:150-164 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverResolver.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8bf9667636cd783355696f8fec12bae53e8d746f019ea047ecfd3f281f0623e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarPopoverOCRSelector.swift:60-72 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarPopoverOCRSelector.swift:74-88 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarPopoverOCRSelector.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf9a1fa042ea2e78e91ff9173079914edd8c7a42295cddcee70f23f5d8ac48d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:475-489 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:491-504 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:521-535 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ec3477cd60dd0b0ed8ef5b9c70607c056ccffcc29aeca21e535bb5903ed8e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift:100-120 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift:153-175 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift:177-196 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2fbaeec519f542ebf0a1919d36c2edde8d0d01f09c2846bc81561809d95997"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:682-704 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:706-726 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:728-751 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f08f758b51b0d2318443f9e94b506aae0e7651c597c4ba361bf93dd21682407"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift:162-176 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SetValueTool.swift:201-214 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c8f08e973c0097fca9a2b590b9086bf7f868bda08e44442ee2380dddfdee8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.swift:133-148 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.swift:150-169 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.swift:217-232 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"604da2fc47fb23ef7ac45e0c6378c81db71a476053c5e982f9fbf88259fdf537"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:103-117 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/InspectorPreset.swift:46-60 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c5b05f16a401cb81102792dd75b65d0b72b1e18c3f652b0d2a17550a1ed86b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/HotkeyService.swift:638-657 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift:1032-1051 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/HotkeyService.swift"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2bbce2cd552eddedce84767d7945cbae60461a51ffcfdc69ad2a390872daac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeProcessGenerationObservationModels.swift:215-228 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeProcessGenerationObservationModels.swift:230-242 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeProcessGenerationObservationModels.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"099e672e636abc9f9d76752ad61dee91b8464c08da7579ba9f01516949f39474"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift:842-852 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/VideoWriter.swift:352-362 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7de10d4db11b789fc6f075e87f32bd15e42bf5e127982b7b7834c98e6a77f8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DockServiceProtocol.swift:78-90 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:377-388 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:390-403 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:405-416 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DockServiceProtocol.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"770d48065254156e18cde2bcdeca86711d01a976270811d4567abe064dc21541"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:308-326 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:328-346 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:1303-1321 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f45c6f16cc69d9cab122c2e63c1d582ef0c93fef79e900ec5c47aba25d9127"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/CaptureCoordinateContextMetadata.swift:58-65 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ObservationDiagnosticsMetadata.swift:97-104 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/CaptureCoordinateContextMetadata.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"3478521f85c847c31ce4ac65118df7c7ebf1b58cf389a062ba625d3f46122c7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 23\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:214-237 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:260-282 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:284-312 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:314-341 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52fbf88a7cffafe97e349090b0657f142274327dccc63169eaaa4389e4cff4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift:720-732 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift:734-742 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift:751-764 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f411259cc1ad35acd43f8a960eb9d4da47a8f704eb1a09e679b99da0cc54150"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardService.swift:132-144 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardService.swift:157-169 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardService.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac386ee838a5313c1692868b690afc5d68db9b1e4bda3a1e13d8366b64dfbbb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationCrashInventoryPayload.swift:341-347 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationMonitorSealValidation.swift:563-569 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationCrashInventoryPayload.swift"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b35fa98ac16bbf490e009d2914fd811f6c265a8bddcad471dc3ffec6f7590d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BAgentExecutionTrace.swift:22-36 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BProcessGenerationObservation.swift:16-32 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BAgentExecutionTrace.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8a899599233044ae78ed274fea1d72eafb702f0947773381a671f3c27d07f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:461-478 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:674-692 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:694-704 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70ea7e76e584062024085d576f091bf8baf958212f804d83b9e2c15fb820f4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BActionOutcomes.swift:128-137 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BActions.swift:43-56 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BActions.swift:86-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 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BActionOutcomes.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"df001cf8943e005cffe242beae516ad926fb14e907af66f18a7d43fa732e9e64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BParsing.swift:231-245 | Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BParsing.swift:247-262 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BParsing.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"5336d57081f9638349bb8a01f86592ec9303688f4ada7b229c0df95a866e28bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/ControllerBuildIdentity.swift:163-169 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitProcessCapabilityRegistry.swift:532-538 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/RunningApplicationProcessIdentity.swift:88-95 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerBuildIdentity.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"9889c2cdb1c95424ea3ef7df88a28610d45efe510e51290c2d43e3de1ed92219"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationTraceRecorder.swift:40-45 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationOutputWriter.swift:230-239 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationTraceRecorder.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc4cfb6988b7e1ced92ce082c51a228e91ded77acf1017ffbde2ac5e59eff4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift:574-579 | Core/PeekabooUICore/Sources/PeekabooUICore/Inspector/OverlayHitTesting.swift:147-155 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f72f061b2040b4f812617d2a177c0f9166163419bfa744a1f7d6ac14616ecc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraState.swift:93-103 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraState.swift:154-169 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraState.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"b569a9325a3d7fb6f2f9732c1a75e4db38f181cbeda599bb71b2e52bae0af0e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/System/MenuCommand\u002BOutput.swift:57-69 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MenuTool.swift:566-581 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/System/MenuCommand\u002BOutput.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a468c8624b8c73b81d672515bdf3df91bd0fca3a00bd16d264e82d3ca7e06591"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/ControllerBuildIdentity.swift:211-221 | scripts/final-qualification/integrated-cu-emitter-calibrator.swift:214-221 \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":"Apps/CLI/Sources/PeekabooCertificationController/ControllerBuildIdentity.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be06b587e6bfeccb25612417ddc1583f659bc23ecefc8688d124048645f75d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/TextSelectionRange.swift:17-28 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardTemporaryWrite.swift:53-63 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/TextSelectionRange.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"542cffe5a57d572838fd2790f2d1d40fb2f12a9f8bdc215ddade3efdcde911ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:554-565 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:567-579 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52ff524274c9857482b6bbac189679e586bda47c8587f9803ab88a845521c18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BCapture.swift:83-101 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BCapture.swift:112-125 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BCapture.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ce69b5de23f42e44e7e1fccbf974f9f7395a0882dcad6c695f099a5aec1a96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 15\u002B corresponding lines): Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:83-97 | Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:119-133 | Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:155-169 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/ElementStyleProvider.swift:179-193 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/InspectorPreset.swift:62-76 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/InspectorPreset.swift:98-112 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf342e8a1482f2f948300825aa655bc0553a48ce7bc83500ee563b581603793"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/AgentExecutionReleaseGate.swift:158-164 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift:39-44 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift:480-485 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/AgentExecutionReleaseGate.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee792693d66a74e2114a6cd88c18e93a54c45eb8ef1585bc7adf25bde70d17c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift:862-876 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift:1123-1129 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift:1234-1249 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"2899274f1f1235fbc2e241d57620c2aa90e24794011e01700da5db2e5ce01770"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.swift:176-194 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/ElementVisualization.swift:38-54 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"27892104b02e472815b880957aa3b1c2fe2c1bf051519de97a6d397a31775e38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift:719-737 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/FileService.swift:182-196 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18f02aaff1b7fc8b75673ee159267dbf98088554f92e431471ccb48203acf4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ExactWindowHeldPointerLifecycle.swift:863-875 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ExactWindowHeldPointerLifecycle.swift:877-889 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ExactWindowHeldPointerLifecycle.swift"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc823ffa46ee23169f54a8b90362f20e6137c51dce213ca835fe35d4ffb7c60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BSessionLifecycle.swift:342-358 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BSessionLifecycle.swift:360-379 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BSessionLifecycle.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"7671d2f34efc2f3ddf9aca3c3d0ff3ab4b89b015049db17f0591f675061e1878"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift:1138-1154 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift:1189-1209 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift:1211-1228 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"13cfa009d840be96c51721556c3962f25402438d2e963a552b2c350c11b053ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationInvalidator.swift:78-91 | Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationInvalidator.swift:93-109 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationInvalidator.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3dca5f4b6b497801070050af64a1303c5e8d2edc5827f19871b465d5756c688"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Apps/Playground/Playground/Views/ClickTestingView.swift:200-216 | Apps/Playground/Playground/Views/ScrollTestingView.swift:414-427 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Playground/Playground/Views/ClickTestingView.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54b20c5f66900b58eeba35b797cc065bf80eaf1344b4d43e035aae11815fdde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Apps/Playground/Playground/Views/WindowTestingView.swift:278-288 | Apps/Playground/Playground/Views/WindowTestingView.swift:290-302 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Playground/Playground/Views/WindowTestingView.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b4fa141231efe2142d8783998e0ef22dda4e5e6a0fff7d962387c3d7ed3a1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift:1293-1311 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift:1349-1366 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9e2ccf7163db5617d47d1d548d29ec53c8fae4b39add13fe3e64aedb9f0983"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BExtras.swift:388-402 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:287-305 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BExtras.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2d2ffc80e2383154ee200b2716ce504460ca245a4141d86b18de6f6bd27a08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:239-258 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:381-400 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:402-423 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e706236538baf3a2d22341e41e6d9db58461c1ab6a45471257e3b841349a077"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:138-157 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:343-355 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4c99fa76ac85fc975952d6e0f9ed1ad034e143e8c329708bfdc5cbedd6fcc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder\u002BInteractionPermissions.swift:97-106 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift:364-372 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder\u002BInteractionPermissions.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc447ea32c5fd18420426d0a97cf597d3d6376c9c0a5cbd742b48fff4d4b93e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift:359-370 | Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift:561-569 | Apps/CLI/Sources/PeekabooCertificationController/ControllerBuildIdentity.swift:255-263 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7296777a4206d3e794006a823cc43bcacc664a37f254abe776136885a132c83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Apps/Mac/Peekaboo/Core/ToolFormatterBridge.swift:84-93 | Apps/Mac/Peekaboo/Features/Main/SessionHelpers.swift:85-96 | Apps/Mac/Peekaboo/Features/StatusBar/UnifiedActivityFeed.swift:428-437 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Core/ToolFormatterBridge.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"8850d2f8c6d8e4087ee907f3b26104d1c8550e9c866c63abe75b737415a0d0a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooEmbeddedBridgeRuntime.swift:285-297 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooEmbeddedBridgeRuntime.swift:310-323 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooEmbeddedBridgeRuntime.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"754b1ad3b1b1dfe0ad9b95b28af748ae35f0a81426c6249202ae7db1a599a1aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.swift:238-256 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.swift:258-274 \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":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2eed4fab519967ed8a40ad114cc06673051d1dec07a3d4cca9d6254c3fc8f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/CLI/Completions/FishCompletionRenderer.swift:184-190 | Apps/CLI/Sources/PeekabooCLI/CLI/Completions/ZshCompletionRenderer.swift:190-196 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService\u002BActions.swift:95-102 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/CLI/Completions/FishCompletionRenderer.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"53445de0a2bd10988422634500985db424b439583dbc7c4290da796fa2155ee2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift:141-148 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/SelectTextCommand.swift:116-124 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/SetValueCommand.swift:113-119 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe2044a453bbdaa4cd220f74274979e1368f8c7827309dae129aa7ff7734142"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogOperationModels.swift:68-75 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserModels.swift:244-252 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogOperationModels.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"333bbe7ac828287ac2441cbebc8870fa99ff14a22b9c5660a61284b9ae322a84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:219-233 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:272-286 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ecb1b277e9898cd73818b64c220d2700a490530ba17a517ec672d23701c841"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationTargetModels.swift:65-83 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationIdentifierMatcher.swift:57-73 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationTargetModels.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"028fdad6c5b4c5e2bfbbdce1095b7e3814293a8ba577e294479e754119548633"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundWindowChromeReader.swift:333-342 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundWindowChromeReader.swift:344-351 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundWindowChromeReader.swift:353-360 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundWindowChromeReader.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15cb5af8b5dbb41baf4f2a5228144c47c63e98da2dd81baa24210633dde7a41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift:86-102 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift:8-23 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"763e592904407055823b03df446016ac0dfaf3959d5497c4c29ac0de696098fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 7\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift:684-690 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift:692-698 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift:543-555 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift:557-569 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:1544-1554 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:1556-1566 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0c399f97f99cf2aaba50795231f870cd848c60d4d6f91f4aab403341c672f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:48-64 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserModels.swift:48-64 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2682cbdfabcee72016206fd1fa807c5a2df425d34a825ec6f9f3e3aff430a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift:866-879 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:728-740 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf6788ca8672f3dafcf90723730b4fa2963539a221d7de76e67afef3e06d753"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift:164-170 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentOutputDelegate\u002BFormatting.swift:200-206 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6378f4907b6eed13fa5859f420a21a97186e05797f4623f63615d815da88ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Shared/CommandActionSequenceAccumulator.swift:48-65 | Apps/CLI/Sources/PeekabooCLI/Commands/Shared/CommandActionSequenceAccumulator.swift:124-141 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/CommandActionSequenceAccumulator.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d63542990b68d545c846ff74e7361b50b2cc9c8a0b312f5fe0ae95cc54c8929"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand.swift:469-475 | Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand.swift:483-490 | Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand.swift:543-551 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe67f252ce95274418e3e7ebca1270b439e00600deba71432a9f4705daf88338"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): Apps/Playground/Playground/Views/ScrollTestingView.swift:326-337 | Apps/Playground/Playground/Views/ScrollTestingView.swift:339-349 | Apps/Playground/Playground/Views/ScrollTestingView.swift:351-361 | Apps/Playground/Playground/Views/ScrollTestingView.swift:363-373 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Playground/Playground/Views/ScrollTestingView.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b724d7157596a210e19e3c2188430c8daf592b8e799cd96b747a526f812d433"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 20\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:788-808 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:810-832 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:834-855 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:993-1012 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"575ad5d111672adaf4e886b8b9790194d0c104f215b19d22ed61be29419dfdda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 14\u002B corresponding lines): Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift:829-842 | Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift:844-862 | Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift:864-877 | Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift:894-908 | Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift:926-944 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7854f3b8fb8848369568a34a932f176658a794fb10c170d01e85b02955387b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/ControllerEvidence.swift:355-365 | Apps/CLI/Sources/PeekabooCertificationController/ControllerEvidence.swift:367-380 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerEvidence.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c774d2f2c2c0c59f38c9a8d183b3f325d680cee7206f740ac553fe13fa87477"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MouseMovementProfile.swift:32-41 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:339-349 | Core/PeekabooFoundation/Sources/PeekabooFoundation/BasicTypes.swift:271-281 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MouseMovementProfile.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a523d2d3b3a59a7f20ca36e430986db12930cc69fff8b7a43cc6a74f525061"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationServiceProtocol.swift:454-471 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationServiceProtocol.swift:807-824 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationServiceProtocol.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c539e355d1c45fbd545282ce2b8daa1d5fee2857ba9b925bf8763dbd4ffaee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BActionOutcomes.swift:349-366 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BActionOutcomes.swift:368-384 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BActionOutcomes.swift:386-401 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BActionOutcomes.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"484d1313f3a93165bc7f3138537574e31f40f565b095310f0ba5e4d6c5b321b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/UISnapshotStore.swift:440-452 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/UISnapshotStore.swift:454-466 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/UISnapshotStore.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"7203f3fe30e600c237c38315f7b22b7bd7a122c76cd4c97b80415e23d5c8baba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ElementToolFormatter.swift:37-54 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/SystemToolFormatter.swift:114-129 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ElementToolFormatter.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23e22f5f14d16696907c2645fce9e8f933b18739c5c05096ed705ffe1aa051e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteScreenCaptureService.swift:39-52 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteScreenCaptureService.swift:54-72 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteScreenCaptureService.swift:74-85 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteScreenCaptureService.swift:97-106 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteScreenCaptureService.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7b3c0dd8a31e9f5c6474e1272dcd9bb90c888f0d520a6ab466082209a14197"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:180-194 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:196-213 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:215-232 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:234-249 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4a86bdc27d4840a3af4092d43b04ba46258f8ad94a342776431736ed229612"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:115-123 | Apps/CLI/Sources/PeekabooCertificationController/MonitorAttestationRunner.swift:136-144 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd54749ec1bdbe91d7b0d3002f14597ff5b6926635cd7f0fafe0d77bf6d34460"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureSessionOptions.swift:25-43 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool\u002BTypes.swift:127-143 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MoveTool\u002BTypes.swift:29-45 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureSessionOptions.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d05d814b8638b5575fcd30c967b3e676c811995efd20ee00c9a1d6ddcdb39ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/PermissionsService.swift:148-159 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/PermissionsService.swift:211-225 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/PermissionsService.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5bf0f91073bc8024b7fab2e7acbc295b9b5db74f81c1bdfbd72b97bbaa1ae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:741-759 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:761-775 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efd1668edda49e588f1056f04ac63c8b963f173f4657462da48a62a68551535"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 15\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:49-69 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:71-85 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:87-107 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:109-126 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:128-148 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e26a4ad735853df668b0945a0b1f989c6c729e5c7b82f4b011d1c012adfcee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 20\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationContext.swift:205-224 | Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationContext.swift:252-272 | Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationContext.swift:274-293 | Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationContext.swift:321-340 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationContext.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a51468a64dd6740e6515ef8ce45ec303a31b5264ed96ba5f9024e1b878a798"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/ControllerBuildIdentity.swift:130-142 | Apps/CLI/Sources/PeekabooCertificationController/ControllerBuildIdentity.swift:144-154 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerBuildIdentity.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"f328bf31584990181eb149d2ebc3919c26ec434d8c55aeac2c7b7e6a70bb7b2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementLabelResolver.swift:13-31 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeModels.swift:364-381 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementLabelResolver.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f65241587ad31bc9151723cb9c43e57f7df902a767a7eaa3117dabf92d7f4db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Server/EOFDrainingTransport.swift:168-177 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Server/EOFDrainingTransport.swift:179-188 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Server/EOFDrainingTransport.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa4e09c275d72bb01d855a33af1f06c7aadd0f542b379fcee9ef148402c1aa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/Configuration.swift:51-65 | Core/PeekabooFoundation/Sources/PeekabooFoundation/ScreenCaptureKitOwnershipDiagnostic.swift:31-45 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/Configuration.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"35bb50819bdfa119383e39aba8611945016cda7e21dd1bee8735ec26627f3225"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift:243-257 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift:259-272 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"f154fdc542563a05a9d1f16137685316ffc23bf2a7fb213d0185bb157882dfba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteApplicationService.swift:224-237 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteApplicationService.swift:284-297 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteApplicationService.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0c72d77651c32d89a7ab1c972ff3a6a2fbc4f924d94afda54fc21905f2472e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:307-313 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift:814-821 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerTransport.swift:291-297 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb31bd1e9e67f98d341fe8ababaa7eef4c373bdda5a2682ca4cbb218f9150f56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift:585-592 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift:42-49 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a88a05a512a5c61fbf60b117601107e4ab44e82cf740d78b5fb7fe945d4d79c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AXTreeCollector.swift:356-372 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuBarElementCollector.swift:161-173 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AXTreeCollector.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"165cad34c6e8d94592e8f25291093917577b82e9cee0f8d5d08815adceaabbbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/FocusUtilities.swift:397-410 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/FocusUtilities.swift:412-427 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/FocusUtilities.swift:429-444 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/FocusUtilities.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6679eda95969bd872708830143980efab2e41108ea8837a2f8751da366357be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/PeekabooCore/Sources/PeekabooAutomation/Services/AI/PeekabooAIService.swift:143-154 | Core/PeekabooCore/Sources/PeekabooAutomation/Services/AI/PeekabooAIService.swift:156-170 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Services/AI/PeekabooAIService.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8bad81eb85b7577b60386a6e1745719b9e726277bb567d8a200a0419c79f69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift:6-19 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift:399-413 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift:442-456 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BHeldPointer.swift:41-56 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85f3e490802f4d3a34542484fb2a13a09658ad14869498145b267e7bd255c64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteApplicationService.swift:176-191 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteApplicationService.swift:250-264 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteApplicationService.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f31f440ca0ca15a6b6698efd44371ae02fb779eb772b7cc8c39f44f3828eaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift:995-1007 | Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift:1028-1040 \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":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"666be22c9eb29d35ebe1de03a2165d0cb473b505d2e761be754605c99ce696f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift:938-955 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandshake.swift:761-774 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"682eeba880f7a7f5ff2356a3de9595aafc94089a5b08adcfc50fb34cbb13c74a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOperator\u002BSupport.swift:59-69 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOperator\u002BSupport.swift:76-91 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOperator\u002BSupport.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79896af65a132a2b63675c0975d2c0277efba14a77c8518695f48d940c3dd17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift:486-494 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift:496-504 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df98058399ad8f6cc0fc346cae1bc0074026fa5b9cf4fdf1df189f5857d1926"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DockServiceProtocol.swift:107-115 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DockServiceProtocol.swift:117-125 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DockServiceProtocol.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c12094d948a923eb8b34d5f95f2a8ff8c6b012809e044e010601b44c8e58908"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:912-919 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift:675-682 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe638df33761c776cd8bd709b43db06fe65400760430d8ded5303a811648f06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:231-249 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHostIdentity.swift:17-35 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7cb0521672fce4bd69a6eebf369332c8058bca8b15c53277e5b84ee915bd88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BDaemonRouting.swift:10-24 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BDaemonRouting.swift:26-40 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BDaemonRouting.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbbeb5e4ea967a14446db1d7316e980cf223a4fe33e3818732dd14210a8755a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift:247-258 | Apps/CLI/Sources/PeekabooCertificationController/HeldPointerPlan.swift:49-61 | Apps/CLI/Sources/PeekabooCertificationController/ObserverPlan.swift:102-112 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc5488b81972f70042d7ff1d9571afd0d812af983e0e38f118c9ce4867aa0b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:896-910 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowCGInfoLookup.swift:118-135 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a2b70a0d42880c077caceb145b9ed0aba9c4cb25a775afd4fb487fdf0ebed6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementActionOutcome.swift:54-66 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementActionOutcome.swift:68-81 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementActionOutcome.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f276c32095f6d374bec51c9478c0c3b5e2f3b430adf0294c0e75595d117f775"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/WindowListMapper.swift:109-118 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/WindowListMapper.swift:120-132 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/WindowListMapper.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"1777c84082d2d45a7b0ce74950e27bdbc71a98405a23ef35bb659a78aad1eba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:706-718 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:720-730 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b2d272a1998798be2628264ea6f1f375593d191ce68106ea68883d14c8f0a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeSocketIO.swift:130-140 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeSocketIO.swift:142-150 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeSocketIO.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff51ead3b509285bb58fcb3ebedfe63eb75c62c8737ca42e8ad59322e6a8b0b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Core/PeekabooUICore/Sources/PeekabooUICore/Presets/AnnotationPreset.swift:28-39 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/AnnotationPreset.swift:29-40 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/InspectorPreset.swift:31-44 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooUICore/Sources/PeekabooUICore/Presets/AnnotationPreset.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d71682a412c85cc0c9dee173a36fa648a2395a71ab0d3c6ef03cca593c5bb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Apps/CLI/Sources/PeekabooCLI/CLI/Output/JSONOutput.swift:498-514 | Apps/CLI/Sources/PeekabooCLI/CLI/Output/JSONOutput.swift:516-532 \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":"Apps/CLI/Sources/PeekabooCLI/CLI/Output/JSONOutput.swift"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace512793ee3a4905460e50351240a1ef3edc751d3a7ed87af8461dbf5b31cc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand\u002BValidation.swift:91-95 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/MoveCommand.swift:279-283 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand\u002BValidation.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7c53d18c2c8197d6350d3bb187e3e17542e196848419ebabdbd8f0c0ce464e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:618-631 | scripts/support/background-computer-use-probe.swift:2873-2886 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82f3123992565ccd3e7cdc4b2a9b06fac33f8260ffee787c19dbfe30c6b4493"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolExecutionPolicy.swift:304-318 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolExecutionPolicy.swift:320-330 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolExecutionPolicy.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb6e8d7f6246fddadf615f1c67c4b6cb7bc78a2a1d8ddf218b290659d1bbaf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:86-104 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:175-191 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:370-388 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:432-454 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9652773ad9239fbbfd052bf39b3850eb2d196b2f9c064a14e8f442d9115218d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BAgentExecutionTrace.swift:75-90 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BProcessGenerationObservation.swift:71-87 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BAgentExecutionTrace.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffbfb951173d96dbc01450ec99170508fc8e9cce3968e793bafe03deec7bbe34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.swift:337-349 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.swift:351-366 \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":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed094d0b74177ff031d5a09d333b960f69ab173fe7251236a3e2968bc5e41cb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BCapturePipeline.swift:57-73 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BCapturePipeline.swift:75-94 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BCapturePipeline.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81da29f68e9624813ccbc76156f6fc0f999d15e70b9fd873e3518ba232c056b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:1017-1028 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:1030-1040 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8816cb263c16a0efba7566681ea678da4e117f9facaae465464a63239016cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/ExactWindowSelectorResolver.swift:166-177 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/ExactWindowSelectorResolver.swift:179-188 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/ExactWindowSelectorResolver.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"16150e19706cd56dc3314855f7b1b58b547ff7e10c6f3dbe1acf6d6482cb6a83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ScrollTool.swift:406-421 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/TypeTool.swift:977-990 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ScrollTool.swift"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"374dad4716b8e5c476db8bd6d12bcdf263a1f0089e57fe840f2a3b107017a59a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BShared.swift:153-165 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BShared.swift:167-179 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BShared.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"6832211d2189994caf1a93a2be079f9762322060318bf6e68cbb3c5e33c33f6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationServiceProtocol.swift:436-452 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationServiceProtocol.swift:862-878 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationServiceProtocol.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"159d9651a2ea82cfa35dd44df79d4d11cfef4fedefee3a88007b9c5afe2fa9ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift:281-286 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift:301-311 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"053c9c4c7c7d105ea02b5f19716e94786b226c32974a3c5ea684edc21b2722a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift:343-357 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift:359-372 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9390523372a502b3fcb24e670a210160e930fcbb7a93826337b3259ed50315"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BOutput.swift:89-93 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelOutput.swift:248-256 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BOutput.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e315568af7724f5701120f64e2b6916fb06951095523f6e9c26a1d7b0444be94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift:372-385 | Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift:387-399 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"74051fa23fe68815b59958d8903c59816339c99c3c961a5d42431e2cf1ef29a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift:382-389 | Apps/CLI/Sources/PeekabooCertificationController/ObserverPlan.swift:222-229 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationCrashInventoryPayload.swift:354-361 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"345805445aa13e2cb3f90ce7059ada77a2234fc86650ee804daf6d667fa50ea1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Utilities/PathResolver.swift:98-114 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolMCPBridge.swift:602-611 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Utilities/PathResolver.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"25af69219b17cac7f40b3ed25e3be433df638c8c9832208bd624358ecfadee55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService.swift:112-125 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService.swift:249-262 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"a181261155608803233dc09ab0380329aba73ca577a36149fe4c828bacda0011"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationIdentifierMatcher.swift:23-38 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationSelectorResolutionProof.swift:71-83 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationIdentifierMatcher.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c482bbd5344d4f2df5662680fb231c8b7367fbdc33e6bbc0d06ac1db4ee3f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:80-94 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserModels.swift:15-30 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"156fd5467fb2a3f87209c8298710a76e2d4cc94eb930a5e130a0b75e78b98175"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BPointerResults.swift:260-267 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter\u002BWindowResults.swift:408-413 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BPointerResults.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c43d31f0d90d1aeae7394f19c7c5291f47abc71fb80743ba6c7b18637a71e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/PeekabooCore/Sources/PeekabooAutomation/VisualizerAutomationFeedbackClient.swift:67-78 | Core/PeekabooCore/Sources/PeekabooAutomation/VisualizerAutomationFeedbackClient.swift:80-91 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/VisualizerAutomationFeedbackClient.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"add36b06f880897e3b631e747d8edbe83b8b14d4535d0f2fdbfcdb47ae7721db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeModels.swift:510-516 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeModels.swift:518-524 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeModels.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"646f96eaf6327208a2fa798f50aca01e392ddbbabe1f6329a5c0cda819e3156f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BDesktopReadLane.swift:30-41 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BDesktopReadLane.swift:43-51 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BDesktopReadLane.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf5ea61adac83ad438838461a70c7a1f43c07cd9cc716f89fa2f89c1a9ff530"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift:408-421 | Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift:434-447 | Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift:465-478 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b455ee61fd6d11167ad800e513a038c34ddd24bbe4176eee6e462748c71337"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BMenuBarOCR.swift:7-21 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BMenuBarOCR.swift:23-32 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BMenuBarOCR.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e3b335c58df6ce1c129b0e070bb3e7ca13019b3d0245cb0b8fdd88be332069"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BBindings.swift:42-48 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BBindings.swift:80-86 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BBindings.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f760a606d8cb380541dbe622fdfbb420312228e35819ac0d945154b0d940cbae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift:779-793 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift:1349-1357 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39c8fed37f4542a4f2d45f54634b2973f41c5d47a24beabc40f8e2c7ea1a2c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift:473-481 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift:625-631 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78123f1ec135abe93e0c0773c91abc7808c21c85cf3d7b566b6e2c81bba24f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/UIAutomationTarget.swift:375-388 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/UIAutomationTarget.swift:390-404 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/UIAutomationTarget.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"1625b7a02ab476d73ed810bf20927d64ced8b2cccfcb3ac72d985677175e3365"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:369-375 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/VisionToolFormatter.swift:393-400 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7583b8630edf4e45411d0f703453f4b2341f343b079737f1b011875a96ea78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:8-15 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:17-24 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"857a10630ea78bf3c7a580eb33d89a8f94a379c4d07528558e9ee1a34220aafc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:428-435 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BStatus.swift:18-28 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:426-439 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"029849bad6f9fc88748dcd19ba5604eaed25551c31f898dd7782559825641dc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BSnapshots.swift:175-185 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BSnapshots.swift:187-195 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BSnapshots.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec4038bff013d748eaf7bdb86471c6ae1a45f9dfaa7067c307d5f66c9d41b56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:400-410 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:412-424 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:441-452 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c75df0f300c452bbbe13e24ff10c3dcce271e04ea5a7bb4eddcbb1f393384ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift:129-140 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift:144-161 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"57bdb1a1afe102b15dd2d7de5450be633972eadaff4d4f76698d599d0b4cfc85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationAttestationModels.swift:571-580 | Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift:112-121 | Core/PeekabooFoundation/Sources/PeekabooFoundation/SnapshotReference.swift:46-55 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationAttestationModels.swift"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab250a383ef194d24dfaf8a7bece3b9d842e8431a40f517e3ab60ceba7ec20ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:288-300 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:302-318 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:320-334 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:336-345 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"414909b29804c935f8a4a88acefa7e3c8aa0d44c1cb0c99f9eb7f3a75d8dad0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Shared/FocusCommandUtilities.swift:66-76 | Apps/CLI/Sources/PeekabooCLI/Commands/Shared/FocusCommandUtilities.swift:78-88 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/FocusCommandUtilities.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"395fb7b2cb84949370021db4f69aed601b332c40f1e2893556e4e4edce364008"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Apps/Mac/Peekaboo/Features/Settings/AddCustomProviderView.swift:164-173 | Apps/Mac/Peekaboo/Features/Settings/AddCustomProviderView.swift:175-184 \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":"Apps/Mac/Peekaboo/Features/Settings/AddCustomProviderView.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"43773b92f9553a3fb226b91102434344bdb1964d9e6ecccf72049ba0af4fdd9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogOperationModels.swift:396-401 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogOperationModels.swift:451-457 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogOperationModels.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4efa8f32fa35577b0fbd7ba8615db2e982d9678b37b4a99598cea605adfb5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/DesktopTargetPlanning\u002BCandidates.swift:151-154 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/DesktopTargetPlanning\u002BCandidates.swift:156-159 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/DesktopTargetPlanning\u002BCandidates.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4833cf2cd45ad2b0855ba6014b2b7d3ed9d7bcf6da677d092f961b3c4840d32b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/ActionVerifier.swift:251-255 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPHandoff.swift:40-45 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:1203-1208 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/ActionVerifier.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc95254832a63d1cddfa893a154fe3c628fbde88532de858600beb9f6e3bdded"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Server/MCPToolCatalog.swift:33-45 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Server/MCPToolCatalog.swift:47-60 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Server/MCPToolCatalog.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ceb510c2a61703f20b13ad1437a7f4f8310603236a3beda9e15b5539382004"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeActionProjectionModels.swift:81-89 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeRequestResponse.swift:439-445 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeActionProjectionModels.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c12f40dc885fb81cf5c2fa85d6d2ecfc347abd966ae304ff6241bf67c408a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:26-34 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:68-76 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"362b6c78d326d70ea39418bee12f6e17da329fd3285ca28bf690a9d066c0abdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 7\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:206-212 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:619-629 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:742-752 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:758-766 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:768-779 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"2183723df662906119067848a4cfc025e03d8810476e01197a9dca95c002d2f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:648-667 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:669-685 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:687-704 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6888c98f4ca04a87350a4c5181b7a83eb71c866390d376c71996083c3fec0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Apps/CLI/Sources/PeekabooCLI/CLI/Output/CLILogger.swift:202-208 | Apps/CLI/Sources/PeekabooCLI/CLI/Output/CLILogger.swift:211-218 \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":"Apps/CLI/Sources/PeekabooCLI/CLI/Output/CLILogger.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d1b8d628066130eccd85227fc3abde3a2f4e7d7d2f222abee7b4a3bcc90911b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/System/DockCommand.swift:9-40 | Apps/CLI/Sources/PeekabooCLI/Commands/System/MenuCommand.swift:36-65 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/DockCommand.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5829626183c6ef4842c7cb12fafaef26782795a662c3c7b6455e5d689ee8e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureFrameModels.swift:253-269 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationCrashInventoryPayload.swift:59-75 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureFrameModels.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f64ee37e0dde926dfdeda50633d41bf00f636c13664250828fd7572f8df8f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/WindowMutationPostcondition.swift:21-29 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/WindowMutationPostcondition.swift:31-39 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/WindowMutationPostcondition.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"86453b32e57e43353b164022e68cbab3b2bb62130a061025da562ee6d50b9d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 8\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BCapture.swift:7-18 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BCapture.swift:20-34 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BCapture.swift:36-49 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BCapture.swift:51-58 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BCapture.swift:60-68 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BCapture.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc3dd0c05d3e1214e41a0d1df710008c93b0abddcbac1421c9b74df8a58629b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift:103-109 | Apps/CLI/Sources/PeekabooCLI/Helpers/JSONFormatting.swift:31-37 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c999f7c74720a96d9788c2236f5d78afc1c2c38fc95cbd479d58b754bcfc7b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelCapturePipeline.swift:299-312 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelCapturePipeline.swift:314-328 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelCapturePipeline.swift:357-370 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelCapturePipeline.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"877418207fac8b7e86c424db2448dadd409106d284776501bbfbb78f617e8541"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CursorMovementResolver.swift:54-59 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MovementProfileSupport.swift:21-26 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CursorMovementResolver.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"9146c8012a80c7033315de7124b046189fa457b2b98af17fba1d56458a83d1ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift:484-494 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift:518-527 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift:529-538 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb405fc24f532b05cd056ed08e2ef17c2497251330a9d44d0df5dd807397052"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:1142-1151 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService.swift:41-50 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift:1636-1645 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift:85-96 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"6198f3b121fd31c8cfd953e5654f9759ee232eefb86621b0147f93698f182652"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand\u002BBindings.swift:249-253 | Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand\u002BBindings.swift:258-262 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand\u002BBindings.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"548ee6704542ef5b3f2fb1fd229f11b9e22761cc8721692dc21ec088760004bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureSession\u002BLoop.swift:647-659 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptArchiveMaintenance.swift:251-262 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureSession\u002BLoop.swift"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6603d23677e946e489d57c502afbe2bb3c62e2ad16688ab997e0fc4beda20dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.swift:556-572 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDesktopObservationService.swift:57-73 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.swift"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a27e98f170ced090331222bc446105a9ac0e85013458ce0420fd5115aceb8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 13\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/LoggingServiceProtocol.swift:60-72 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/LoggingServiceProtocol.swift:74-86 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/LoggingServiceProtocol.swift:88-100 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/LoggingServiceProtocol.swift:102-114 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/LoggingServiceProtocol.swift:116-128 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/LoggingServiceProtocol.swift:130-142 \u2014 These 6 members are one piece of code written 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/LoggingServiceProtocol.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c21a69e9f0c192b50cd865b218c50ad421e8df9aac9a689a41fcd5b861c7c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift:565-576 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:891-898 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76e8944aa9e99a9a7725b07d25db9ab9f13bf20d1af763f31b8c6c6254f448c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ForegroundModifierClickExecutor.swift:628-635 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ForegroundModifierClickExecutor.swift:1017-1024 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ForegroundModifierClickExecutor.swift"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f7b7321be8cba3ed743a7e95aedacab1006ec72fb71cdb54a0a58f1f9bb533"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowRoutedPointerDriver.swift:613-627 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowRoutedPointerDriver.swift:723-740 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowRoutedPointerDriver.swift"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"1479877b9266ddd0e1b5d441686231b6a2d4f485f5d67cc45cd39f311807d777"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift:1362-1371 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/ToolEventSummary.swift:194-202 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa953ad397d3063a272fc7d8d6015354bbfa2fd1ca7ef6b5164efcb7cdc34b0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool\u002BTypes.swift:127-143 | Core/PeekabooFoundation/Sources/PeekabooFoundation/InteractionTargetSelector.swift:50-62 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool\u002BTypes.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0bbc1cedf2a3ebd96a27fddf3f132421addef12f00c13f86558c6013f7ded3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 10\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:55-66 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:97-108 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:136-145 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:369-378 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:390-404 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0231f856af4bdffb1a9e47514d83c694ac3df06b91416ff6bb18465bf89663"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift:613-626 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/TypeCommand.swift:415-428 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/TypeTool.swift:508-522 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9139883b150c75fe017ccbfb6ccc0701e465b3dd6be4f535b3c7778abc0aa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/SmartCaptureImageProcessor.swift:5-16 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BEnhancements.swift:207-218 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/SmartCaptureImageProcessor.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e00ae4c6a182a462f55354327693fcb02aa6cb61d00a4b404175e6db8b91dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift:464-472 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift:474-484 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/WindowManagementServiceProtocol.swift:379-387 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b17509f57a59978ccdf0c1aef68f28b0ceccf4dd9310fe9334591fa38741ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogServiceProtocol.swift:144-155 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.swift:99-116 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogServiceProtocol.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"db88bca3a73f3f30596cf62b1fa566dd8d96a85f24ccd2388e533146bd8a50f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:444-454 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/WindowManagementServiceProtocol.swift:389-402 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc30bb82ca47bdb10aa00284050753ba75dd4661d60b7e26e7553b4be762c13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/DesktopTargetEvidenceAdapter.swift:49-61 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/DesktopTargetEvidenceAdapter.swift:131-144 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/DesktopTargetEvidenceAdapter.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b8714e03356b74bb19601fc5ce9f4f27c84121d2ec47f8c1234bb2de813516"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:191-198 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:252-259 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cf0e06522549db9e0d090026800b4bbcad9f7c20036571792da817c7e90879"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift:136-146 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift:1377-1386 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41cab40ace12ceeffae738222a77f798e6b62c3e7cffec6229e9c9868e013ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:9-21 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:23-34 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be81760b19c2eabeca862024f5eab6bdcbbeb4f1f222fdcce8ab7950d2d2c66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift:167-174 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift:210-217 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift:253-260 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"08dd09772ae15488420921b66d7be40db4cc80571d8d6d1536d727e92f8ac49c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureOutput.swift:148-163 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationROI.swift:488-499 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureOutput.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"60540c371b686e73cb61fdc77137118f473a9fadef147c01c80688f8e756e2c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:117-127 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:156-166 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:198-209 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"8218a956fc40e45a56036cc126b67053f7e40e6a73634d8455af62f2c38e7b85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/System/DialogCommand.swift:540-546 | Apps/CLI/Sources/PeekabooCLI/Commands/System/MenuCommand\u002BOutput.swift:98-114 | Apps/CLI/Sources/PeekabooCLI/Commands/System/MenuCommand\u002BOutput.swift:116-131 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/DialogCommand.swift"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"1127074bbe684f32b6ca9bf5466674962a121e33a1e5941e056580c2d261b78b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/ControllerBuildIdentity.swift:195-200 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift:371-378 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerBuildIdentity.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"cacd71088b96d0d8689329eff6e7d98caa973571a810a52154cea0fbb4e3a74e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Apps/Mac/Peekaboo/Core/ConversationSession.swift:99-105 | Apps/Mac/Peekaboo/Core/ConversationSession.swift:107-113 | Apps/Mac/Peekaboo/Core/ConversationSession.swift:115-121 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Core/ConversationSession.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b2a7032d8148db3bf6d7558f75d7c7b31f78f45f3326150d34c04bba694772"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 12\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureSession\u002BLoop.swift:661-672 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService.swift:28-39 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService.swift:82-95 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift:1647-1658 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptArchiveMaintenance.swift:264-275 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift:98-109 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureSession\u002BLoop.swift"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"462c550a80f584ddb33c1c7340f0a437c4c7bc240e8907cbbbcec1a4857587e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogOperationModels.swift:224-236 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/FocusUtilities.swift:592-604 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogOperationModels.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9d2c15da2e144f3e62b02577c20cb9cb56462777c8a882f1ed52bf75dee650"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift:361-375 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift:409-423 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a31504243072d00f7e7be6fed229c093552ec78e0eb4197f33586b894d2837"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift:255-270 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:150-165 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"261e3e473f4412d9d80ec670978f8391bbe41897039cc0f7f9894351bcae59f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift:577-586 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift:1142-1151 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc8eda28919d0b15ae160ac941bb510c0d66a2effc6cbce710f6f2cb57e38e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Helpers/JSONFormatting.swift:22-28 | Apps/Mac/Peekaboo/Features/Main/ToolFormatter.swift:51-58 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift:1397-1405 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Helpers/JSONFormatting.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea674d673bf9cb8dd96025402b6212b32b78b5730abfa985f86e6bb010440fcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift:362-370 | Apps/CLI/Sources/PeekabooCertificationController/CodeIdentityRunner.swift:123-128 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"2520edef14627bea6c7ec4c012353f4076d44f2d905876f05460b16c0d992fc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementValueVerification.swift:27-36 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift:526-537 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementValueVerification.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aecfc1220bb0cb6b150254d331e9f2f7f5cd795e45d7603859985d49dc3ee6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ChromeProcessCodeSignatureValidator.swift:159-161 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift:410-412 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ChromeProcessCodeSignatureValidator.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7bb422ac43104610dcca44844261a4b5e861eead9dc58938ee522ae1b40e426"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AXDescriptorReader.swift:371-378 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:933-937 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AXDescriptorReader.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"342917f2d0b98019187a9a516237d30c21a76e6af152474e099cc87f5434ca50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AXDescriptorReader.swift:380-387 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:939-943 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AXDescriptorReader.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"745d4e82eda7628157b719908c5bab75eb77d6d96d87f5ed580b9e4b69022f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift:476-484 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:1063-1071 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"2023665d805bbd03c37052dce91a93aee793b894b2f0694af79581dba278f43f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeActionProjectionModels.swift:91-95 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeRequestResponse.swift:447-451 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeActionProjectionModels.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e3df8509ff130c6c0ef1fa587747ab949ca6f85b7904eaa13b654bb0b406bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift:258-262 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift:725-732 | scripts/final-qualification/integrated-cu-emitter-calibrator.swift:183-192 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eec4937a32db9f9794363972f45b7cfb2e4667a7c1f06f52cc993eb9ed2a160"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:502-511 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerTransport.swift:237-246 \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":"Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"9786a9ee4dd0af6e96c161e19ecc7e2f23ae9f3f0c9a71703f216cf347c89a2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift:654-663 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService\u002BTargetResolution.swift:101-110 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c77109f12ad0d74db648ccb90f36c42928a5438f3ba64d9fc3d83e2a63cf81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 14\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift:294-307 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift:70-83 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift:85-98 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift:122-136 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift:138-151 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"5072840318fe1c41c9992c25971cb743ac5c25ad433772ba406020948f0f52bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/CodeIdentityRunner.swift:106-109 | Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift:399-402 | Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:134-137 | Apps/CLI/Sources/PeekabooCertificationController/ObserverPlan.swift:241-244 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:585-588 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/CodeIdentityRunner.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"5378f7107e90a8ecb757a82d202bedd6d796c795ae4639f31a9e6f1d28b05d05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/MonitorAttestationRunner.swift:146-150 | scripts/support/background-computer-use-probe.swift:20-24 \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":"Apps/CLI/Sources/PeekabooCertificationController/MonitorAttestationRunner.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"941475b7fe89ed2d540d9b87174d3169bfc92f0679aa6b83f96e16e87e7535b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitProcessCapabilityRegistry.swift:59-74 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementTypeAdjuster.swift:11-25 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitProcessCapabilityRegistry.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4ccdf2d516a13438cf043e64abc2a69861a72ac72f906e7a0ffa70c57f84ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogServiceProtocol.swift:225-237 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogs.swift:15-30 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.swift:197-211 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogServiceProtocol.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0aefcf9dfb7632dc20f7a6a36be275301cf26f0cb6adabd4f4819c747343fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationServiceProtocol.swift:266-276 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardService.swift:121-128 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationServiceProtocol.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"622ee0a923cf9a739db2b1a2589855e684df260d7135333e353058f05924f537"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/DetachedApplicationMetadataWorker.swift:72-81 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/DetachedAXWindowEnumerationWorker.swift:214-222 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/DetachedApplicationMetadataWorker.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a939526316a80e75e87e4f3c9867eddb0ad53b3dc79fc2078937a595db111c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BCapture.swift:70-81 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:143-154 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BCapture.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"90314c29b8a652c59176ab620cde0f8e49dcba51526794d4d4e5ebdfb5d62d10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Renderer/VisualizerCoordinator\u002BAnimationAPI.swift:153-166 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualizer/VisualizationClient.swift:203-216 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Renderer/VisualizerCoordinator\u002BAnimationAPI.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"09955ea7f054a8c84e03273816a32b21f89c6c9a1ad59947261e5f38fd1ab8ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 31\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/MoveCommand\u002BCommanderMetadata.swift:7-37 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift:1014-1049 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PressCommand.swift:432-472 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand.swift:468-500 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/TypeCommand.swift:671-722 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/MoveCommand\u002BCommanderMetadata.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73376801627af0fcc242fb34612959a54562b4f951efc34d8cb4cd42ee41bff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverResolver.swift:200-212 | Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverSelector.swift:68-80 \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":"Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverResolver.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da6ddcf5171228d4e540d20b2ea9edfee5820830181ce93223d2af1ce800062"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift:404-407 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationObserverSemanticPayload.swift:326-333 \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":"Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a47a19331cb5944206c309ac41f4bb4ee8aa8ff6ff25a238d586b0a2160a01d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BWindow.swift:281-290 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOperator\u002BWindow.swift:802-811 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BWindow.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ce7a6421aecfc77a873b760047b638a97d0e8921633afa4f6ac9f9621ee9f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogServiceProtocol.swift:165-177 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.swift:41-55 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.swift:118-131 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogServiceProtocol.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"b264b7c0b5b024a448a091acf8df792c441eed8517b607a3219e7cec89bf7fc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationTargetModels.swift:85-95 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationIdentifierMatcher.swift:75-84 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationIdentifierMatcher.swift:86-95 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationTargetModels.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d3015334b6c0e3be15aebe2c905732123e7fc94dfe0cff41c024be7e5b1546"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/System/DaemonCommand\u002BStart.swift:248-254 | Apps/CLI/Sources/PeekabooCLI/Commands/System/DaemonCommand\u002BStop.swift:73-78 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/DaemonCommand\u002BStart.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"614823bf405efe7d862b3f871e55cda15f8eff78d8feb9eab73578f1fc0f0964"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/MonitorAttestationRunner.swift:128-134 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerTransport.swift:248-254 \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":"Apps/CLI/Sources/PeekabooCertificationController/MonitorAttestationRunner.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a161fa85f45b752033f9334f89afc622f4e6bf8043751a22a5d8556a0c5d8c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/Capture.swift:13-27 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:498-510 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/Capture.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2195bfbc22768264318e6e1ceece61f20036553d94b41e0801188aabf72239"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarWindowCatalog.swift:215-226 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarPopoverResolver.swift:228-236 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarWindowCatalog.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"17abbe7615fcee46812450d87beea8a8d0767ffe8e360b0d2b1cf6ff79e9b831"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift:7-13 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:87-93 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73b3a490dcf73cb790b900b90e9c5c0aff3fba5521380c32ac7be52939706f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift:57-63 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:129-132 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83d1a437d07d9893bdb552adbbfa798b204141e86f68fc55470f0d60e086b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolSnapshotMutation.swift:49-55 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BButtonActions.swift:13-19 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolSnapshotMutation.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d656c32a45275ce76c41764ae8d6ac0f72cdca2b129bc05be3c9531d622d543e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BReceipt.swift:404-418 | Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift:284-294 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BReceipt.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbc31e160dae19b6c18951ae24d4ec3b3ad6f6d02bbdde5ad3787cd3731f035"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/System/MenuCommand\u002BClick.swift:236-242 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter.swift:89-94 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/MenuCommand\u002BClick.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"af49a70381168ea2ebdf0cdf7f3534683a7fac9b775e5dc1f175d0d79f6158be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift:107-113 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:168-174 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0fc180b37d96e8cfa936e677f8ec9a10ac32173bebe81c7d95701d33d029f2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:14-20 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:215-221 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e4b526dd660945ef43ee744f14c35ae01f70f280d5b7f24ca630579354d4d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift:16-36 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/TypeTool.swift:16-38 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c321ffe00ee7540323cb8b26f00b47cebf406a81a7c337ec58cd03053dcf60fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionProcessRunner.swift:826-831 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ShellTool.swift:424-430 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift:1036-1040 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionProcessRunner.swift"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1cc8f89da93e69ff5c601f1ecbd9f3786dcdfcf1ce53943a7cf2db317244f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarWindowCatalog.swift:202-213 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarPopoverResolver.swift:218-226 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarWindowCatalog.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e06bdfb335ad60a4f84c5091a57b62333c9211c6e14e3513bf4aaae6aa5158"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/DetachedAXWindowEnumerationWorker.swift:53-61 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:49-56 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/DetachedAXWindowEnumerationWorker.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c36eb4a241b66e08b5f0c943febdb530aed86ba445d19a48a9865a6af70067"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationOCRService.swift:527-538 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/DetachedApplicationMetadataPool.swift:171-180 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationOCRService.swift"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d342d2fb0adc90235e194289a2211cc5a779c06e88d09cd55753e3781a45e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogMetadataReader.swift:23-27 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuExtraAXReader.swift:308-312 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogMetadataReader.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a81b685bc8692779b286de2cc3b641fe923dc7c37c1730970ed57fafef4b69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService.swift:89-93 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/FocusUtilities.swift:703-707 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19e54b1e3810462ce7856bb93ad860a3fe0186b60e3907fbb7b81911eb95764"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BPointerKeyboardOperations.swift:345-356 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:271-282 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:635-637 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BPointerKeyboardOperations.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"c587c45d1465f24cf482ba686c6785113d6f964c5aa07972cfba07f678c73950"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionProcessRunner.swift:833-842 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ShellTool.swift:432-441 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionProcessRunner.swift"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4cd07b4885285c05925bf292bb27e6a1c6f3763384b7d8b590ee72f67fabb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/VideoFrameSource.swift:256-262 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXActionRunner.swift:94-100 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/VideoFrameSource.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b490c4d075a3c8c06436c6a42a7c8d5316c1160cd7d768982f31f3f1868d2e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/CGS/MenuBarCGSBridge.swift:32-37 | Helpers/MenuBarHelper/main.swift:15-18 | experiments/cgs-menu-probe/Sources/cgs-menu-probe/cgs_menu_probe.swift:18-21 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/CGS/MenuBarCGSBridge.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"beef0c0d888893e685820aa282627e78ae5dd2c1413f44c99736fa31c0765593"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOperator\u002BSupport.swift:37-46 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/SingleShotFrameSource.swift:77-86 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOperator\u002BSupport.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"a977f956bca197563886b304cc290a36272e075c9ac6fc8d2a01534505c83922"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOperator.swift:51-62 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService.swift:182-193 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOperator.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5666b86039a655e5fc13d768449d54bd724295647920f99fcdd26fbad66201c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarWindowCatalog.swift:141-148 | scripts/support/background-computer-use-probe.swift:1213-1216 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarWindowCatalog.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5e1fd7380418231055aff05ea597a5d8aac6e18088ac7abfc0c4a1963ee5d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift:657-661 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TextInputRoute.swift:168-172 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift:531-535 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7a268e9da9b0cc3578283e1d475ec022a8d0bf95943d7f21c33b3b8cee1d6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift:445-457 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift:136-144 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"0332a9351983eccd2a8317b2fa8f1bef6032ee6f39f5551f57a2a7993279cfb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 34\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool.swift:15-50 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DialogTool.swift:23-63 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MenuTool.swift:27-60 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SpaceTool.swift:42-78 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"0979faf2a2afafc114b466061edc2016d60eab96dcdb45708d2ba694b041d228"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Core/PeekabooUICore/Sources/PeekabooUICore/Overlay/AllAppsOverlayView.swift:18-28 | Core/PeekabooUICore/Sources/PeekabooUICore/Overlay/AppOverlayView.swift:17-27 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooUICore/Sources/PeekabooUICore/Overlay/AllAppsOverlayView.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3196506ff2e1e3d09bb7279b3429f4156fb204503990dd2d1659faa3b5fa7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:990-992 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogElementClassification.swift:125-127 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b29c8f256c5473bd52d1df93b527c17afa0ed59b6c68a2d1ad9c02826bc90bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift:890-893 | Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift:222-225 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6db56b437c9f081bbd337ef9c14032a2d32f72030943c3de533be55efa5813e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandRuntime.swift:414-422 | Apps/CLI/Sources/PeekabooCLI/Commands/System/SpaceCommand.swift:77-84 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift:109-116 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandRuntime.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2833680853d0d6e99415100e81a3a6c4355292159e5289db3ef1423e1588cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionProcessRunner.swift:814-818 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ShellTool.swift:412-416 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionProcessRunner.swift"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10f2c4f792e6ccc3e95dbd6443477872add8aaefd97596f58f5ea292095d131"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand.swift:48-61 | Apps/CLI/Sources/PeekabooCLI/Commands/System/ClipboardCommand\u002BCommander.swift:10-26 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"8644f76b20b1a708905a56033ba2e30e6df6a0137bfbead6a223dfe66625f248"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift:126-136 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/SetValueCommand.swift:102-108 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"1640aa448905dd6308ba72303e5955a52be40d3b0001bb9518febd754202c9fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BSupport.swift:63-66 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOperator\u002BSupport.swift:32-35 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BSupport.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"73864cccf500a60ce3c62804be40389ee976d8bfa8a77c850bc8a9cd017b22d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ScreenCaptureServiceProtocol.swift:529-534 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationTargetModels.swift:138-143 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ScreenCaptureServiceProtocol.swift"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e7cf1333db55cfed4059fe0c21cb01cb7c2314c16cff187ee101d582ed99be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService.swift:82-91 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService.swift:54-62 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2da5f4807b25908b553c050bd7fafc55b1002069ebed8453a38712e9ccd0fad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Server/MCPDesktopTargetMetadataProjector.swift:13-19 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift:1071-1076 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Server/MCPDesktopTargetMetadataProjector.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f50dbe0cc6e99c00a82c8bc5466f16eefda31fbc1cbb8fc31a051c5b1ee463b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/CaptureTool\u002BArguments.swift:91-96 | Core/PeekabooFoundation/Sources/PeekabooFoundation/InteractionTargetSelector.swift:202-207 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/CaptureTool\u002BArguments.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"1523b643a141432805ffd119b3546cc23364efd8d2c3db797694ad896e151f82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost.swift:288-298 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeModels.swift:308-318 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4087763170c84d300bf6bcdd4f59f15c2b328e116a9c9dbc73313b28c9d94e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BMutationProof.swift:7-17 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:926-934 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BMutationProof.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51b8f41d57159685756011200ead9c1c026edf542adad79dd4630068427715d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Apps/Mac/Peekaboo/Features/Main/MessageComponents/MessageContentView.swift:136-141 | Apps/Mac/Peekaboo/Features/Main/SessionHelpers.swift:44-49 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Main/MessageComponents/MessageContentView.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"555a6f56c40c265cdb6349d7c1e1c41dbf1f8d22b88c7ee2eac3891cab288962"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/SnapshotManagerProtocol.swift:297-304 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager.swift:254-265 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/SnapshotMutationRecordingManager.swift:141-150 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/SnapshotManagerProtocol.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ebd919e7375372cc52b555aa9213eb387f3c29b4d16c7c7d8fb0623f3c5d59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BOperations.swift:39-49 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.swift:93-97 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BOperations.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3baee925fc87c972febbf3ec71e68de3f749f947d023683daffd14e1ffdbcd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift:110-115 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:8-10 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32180ceb183e5f4341ac0f35ab4d13c932deda7dedfc026a1ccfb027c3392a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:93-96 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:262-265 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e1557b94fc74c7e127199cfbf7a68f0b09e6bed37999bf5d30762768345bbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:154-157 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:289-292 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"61291dd3e194d639677f907aa10d472d7d422ee4b19ebfd74791c4c501a86303"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:266-269 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:315-318 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"39456ca032403c35fc0d5e0112712299a52dff215484254249a7f74c071211a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BMenuBarGeometry.swift:23-26 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarPopoverOCRSelector.swift:142-145 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarWindowCatalog.swift:185-188 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BMenuBarGeometry.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab8b51f9da4645a564e8a348d7e5c23bed7b3774b50a306346ca9cddc1e79b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand.swift:384-409 | Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand\u002BBindings.swift:175-195 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand.swift"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"82183f7cac3df4e9895466ace13566dcf8865249db01897a7782ece0e52c2c75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelOutput.swift:62-67 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ScreenCaptureServiceProtocol.swift:478-481 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelOutput.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"24790a37820afbed0aef2b80d02aba863e01ca3d34a767ada761aa6987a1b4d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 3\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BReceipt.swift:458-460 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift:1015-1017 | Apps/CLI/Sources/PeekabooCertificationController/PrivateArtifacts.swift:221-223 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureArtifactWriter.swift:162-164 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationResultModels.swift:74-76 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift:810-812 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceipts.swift:79-81 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BReceipt.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"195adc4e83b8d3d5545e7d18298e3125af46b673ea4ba4aeace24d84dd41b1b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/Application.swift:66-71 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/GameBridge/GameBridgeDetectionService.swift:85-90 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/Application.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a49ff69d2276f9785678f2bbeff3f0c848d33eaaef682b477fc4a092d6c73fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/WindowMutationPostcondition.swift:104-108 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:1165-1169 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/WindowMutationPostcondition.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f9d1fe07d6eb734376e33005fe030c9c0811523c2f782b31e31198ddf8e2fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:362-366 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/HotkeyService.swift:669-677 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"836080dae772e1890cc17f00d007bc7192617ad98e8c5d149c4722f8f02ac9d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:22-31 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:223-232 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"604f7cf92294d3605393461e40aade497de3176a934edd103f5323a4100dee91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationResultModels.swift:32-40 | Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/Configuration.swift:78-88 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationResultModels.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"c733ae49b96a5af37525e493c4dda48df0df48e65e034c70c7df2e1862c1d1db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogOperationDeadline.swift:40-43 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift:1141-1144 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogOperationDeadline.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8071e96a1f239d05aacde9fc4a22f21a954995ceaa1e945d9375f0dbc4a4828"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter\u002BWindowResults.swift:376-381 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/ToolFormatter.swift:95-100 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter\u002BWindowResults.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"957388a0c276ea79e19cd07738ce61cebc495ffda48426e1cb9ccfff464eb531"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift:1033-1036 | Apps/CLI/Sources/PeekabooCLI/Version.swift:69-74 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"af98b7a19c13df2cad89309f8dca6db4db023724f5709feefab7a3cb07d7d408"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift:603-605 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopOperationLaneCoordinator.swift:324-326 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f90d98f01e2700d951ba474090dea52002d1cf22f3a2f1a6db104687d8eac3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift:653-658 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService\u002BTargetResolution.swift:29-34 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e129d46fc09ed9ca5ac04cf43c9c7acd2415543f8f72d4e5d3eed3ab5c96db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift:19-46 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClipboardTool.swift:17-45 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c600e25b6e92248b87b7e7ce06731060e72993da12804626a6a08c5cfd1fa2e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCaptureBinding.swift:219-221 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift:934-936 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCaptureBinding.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e6e7642a8facd7f232a08dd78e500f958ed97f2eab4f976b9ae92faafbb962"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:537-539 | Core/PeekabooCore/Sources/PeekabooAutomation/Services/AI/AnalyzeImageFile.swift:79-81 \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":"Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3dbd03c6464f42c2ddaeaeda00a5a0ccf97cc17a6938aa14c28bce31b473763"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/QueueMode.swift:211-215 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Support/ToolFiltering.swift:209-214 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/QueueMode.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f890c7eb60966b9b5011691c28fe195755428f7b65d960ab545385eda4b32ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift:113-121 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgePayloads.swift:477-485 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"7faf1feca2b6984aa57910efd377eba4a32bf64977a5c7f5c659d3808f587791"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogServiceProtocol.swift:521-529 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/TextSelectionRequest.swift:17-27 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogServiceProtocol.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"885cb79dfd7efedc2c7500aa2f60ff1f068ae987b0c8f88a6ba7161fe97fc29f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift:1418-1421 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService\u002BSpecialKeys.swift:79-82 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ead698b18b8e1ce495dce053c61b817d7fe868a56abfd50080e30bfec5c972a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ExactWindowHeldPointerLifecycle.swift:855-861 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:798-804 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ExactWindowHeldPointerLifecycle.swift"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"772f662252c268d62aa121921df7c601eba55665f8f34de92365698a6b4e17c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BTraversal.swift:224-229 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BForegroundClose.swift:211-218 | Core/PeekabooFoundation/Sources/PeekabooFoundationTestSupport/DesktopActionOutcomeFixtures.swift:195-200 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BTraversal.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d023fbfc2ba12708a5e83ac1df3fbd375b2b3f6a9b5f1f5cc58060a4409e639"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift:571-574 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift:542-545 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"331a35c96b5640a71ea6ca3512ad4f944da48cb54de348f24067c1cfc5d287a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:709-715 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift:322-324 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteBrowserMCPClient.swift:184-187 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"892e36149afa8abc73fbff0451b167b59f6ee14aadf26d86bc4ea6015a9ec24b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopObservationTargetChangeDiagnostic.swift:12-14 | Core/PeekabooFoundation/Sources/PeekabooFoundation/ScreenCaptureKitOwnershipDiagnostic.swift:10-12 \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":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopObservationTargetChangeDiagnostic.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff384263995c44588a7aaafadabc2ad8de93a20e442eb27686d2c73306d09601"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopObservationTargetChangeDiagnostic.swift:24-26 | Core/PeekabooFoundation/Sources/PeekabooFoundation/ScreenCaptureKitOwnershipDiagnostic.swift:18-20 \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":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopObservationTargetChangeDiagnostic.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"273cad4d498f90ab527f75a9813eb76b5dc568af85029150e0027dab0d5417d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopObservationTargetChangeDiagnostic.swift:36-38 | Core/PeekabooFoundation/Sources/PeekabooFoundation/ScreenCaptureKitOwnershipDiagnostic.swift:137-139 \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":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopObservationTargetChangeDiagnostic.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9049b9051ab1b9531ea252df455d2af54650b388338f4006d8581891d26d18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BExecution.swift:381-385 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementLabelResolver.swift:102-106 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAXHelpers.swift:13-17 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BExecution.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d08b81efef5e6167e56b8c8f897f0eb9afb1b746c95ca12302eed277314cb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift:391-393 | Apps/CLI/Sources/PeekabooCertificationController/ObserverPlan.swift:231-233 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationCrashInventoryPayload.swift:363-365 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"810572a60b641ec4bf7290d81cb7f99069875e6950951efa828ef1d6c6cecdf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardPasteTransactionGate.swift:106-111 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardPasteTransactionGating.swift:11-16 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardPasteTransactionGate.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"941e31a2ef61d9be5c7732a6254396e2eea9e77cb7ed4397c68f2c5cc255958e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Apps/CLI/Sources/PeekabooCLI/CLI/Configuration/CLIConfiguration.swift:171-174 | Apps/Mac/Peekaboo/Core/Settings.swift:973-975 \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":"Apps/CLI/Sources/PeekabooCLI/CLI/Configuration/CLIConfiguration.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"770526fa9c6f6a3d10a7d1715041bb63ea217b8ac39cdc39a0be7a09eeb5cb22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CursorMovementResolver.swift:61-64 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MovementProfileSupport.swift:28-31 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CursorMovementResolver.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f36db757770787354d0b8accb120263e8ad0861a8db2f4ba0b87c780df96cd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogOperationModels.swift:41-44 | Core/PeekabooFoundation/Sources/PeekabooFoundation/InteractionTargetSelector.swift:76-79 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogOperationModels.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"16cbe374c71df611c35833e7c2ac99a8a2de691c531056c2a6b6e41a24805685"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift:647-651 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift:1450-1455 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9fa5c88a26dedcdf556cba6b8cd2d0b0f0b5ec8fdfdf01440f5f5c6bbcbb9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BScreens.swift:116-120 | Apps/CLI/Sources/PeekabooCLI/Commands/System/CleanCommand.swift:162-166 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BScreens.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d53574408f3ac5e48c1ab92675f38ccff58c032d40bdd48c7a0fa3c5f0adb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:1669-1676 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowRoutedPointerDriver.swift:952-956 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift"},"region":{"startLine":1669}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db9107a9000cb3d1b6a16540d118fa3387495cfc68654606bc2d8f83942f659"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BPointerKeyboardOperations.swift:92-94 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:127-129 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BPointerKeyboardOperations.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b572ecf8f4f42a9fbddd112615cf796e8b8e6a6ea70d0f8f0e4954b8284c440"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:98-100 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:267-269 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift:98-100 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2a4fc765a689b7e461772779c1a94e550ad0b6975d6c2e4be427ba91cff890"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:159-161 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:294-296 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift:123-125 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0bbda76c589a6c83db8c2b706b03cfaa64c2614275e1abd41119c5db08e056b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:271-273 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:320-322 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift:148-150 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ee4e4bfce44d9d79ce24ad3a41a5451bf42fcbfb06258c39f35cc7850496ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BParsing.swift:128-133 | Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BAgent.swift:482-485 \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":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BParsing.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"8309f5f414cb53d1b5dc2cd88fc5f9080353d236ae77e8f1b327d4461c0d932e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Apps/CLI/Sources/PeekabooCLI/CLI/Configuration/CLIConfiguration.swift:165-168 | Apps/Mac/Peekaboo/Core/Settings.swift:969-971 \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":"Apps/CLI/Sources/PeekabooCLI/CLI/Configuration/CLIConfiguration.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45725b08f5bcffda71d0c9d4a124ec23c43c62f7d182acb92b74608bf647791"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/ControllerBuildIdentity.swift:223-225 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift:414-416 \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":"Apps/CLI/Sources/PeekabooCertificationController/ControllerBuildIdentity.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd76bd246207fc3f750ce448194e1d139757970ec24c55d7c110de71db68f62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:704-707 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteBrowserMCPClient.swift:179-182 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"781431981c7b82faa89a45b4a5c095ebf50c8fd42767cfaabdc97418c319b6c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteScreenCaptureService.swift:186-193 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:610-617 \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":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteScreenCaptureService.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b8ce3dc0bb04b20c7fd3eda466c55d42851ba96d711ef6ef5cd28ed06d334b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Renderer/VisualizerEventReceiver.swift:12-15 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualizer/VisualizerEventStore.swift:11-14 \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":"Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Renderer/VisualizerEventReceiver.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75cc69dc0bf1d3786ed82e356a3c413a66a410a73c81d43c4a7c849c86ba2fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift:959-970 | Apps/Mac/Peekaboo/Features/Permissions/PermissionChecklistView.swift:17-23 \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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb05cd7ac07e7649e87a8bff819577347d5f09672b3cb1ffed53ab56214612e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift:91-99 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:23-31 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationAttestationModels.swift:14-18 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fd14a78a5694baf0030ed49cffa29216b39271cc464fafc69929a717a5a7bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift:594-596 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopOperationLaneCoordinator.swift:320-322 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"b000d2ea2e3952b65ad0dd63b1cb3e0aee22606c3598bf3165c55efe168ada4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BLifecycle.swift:137-139 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager.swift:240-242 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteSnapshotManager.swift:93-95 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BLifecycle.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1966861d8d9d094567049c1dc35e2fd5a273c097af293714c960548b8961618"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift:1281-1283 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool\u002BTypes.swift:159-161 \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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a67b78a001a2ec478f4ad777a34398a08983733fbe2c6bfb3f47cf50d91bc0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift:37-39 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/GameBridge/GameBridgeDetectionService.swift:92-94 \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":"Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf6363b0a32f01df5ad9fe87fd12f83c711774874be27562de7eda07b2d87af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BPreparedActions.swift:824-829 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/DesktopOperationSnapshotReceiptValidator.swift:115-121 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BPreparedActions.swift"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aabd8c9cef1decc48987bec0e72b3a8a9e4f0856df33720039dd86b2fdf5db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserSessionHandoff.swift:182-188 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServiceProviding.swift:78-82 \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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserSessionHandoff.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d0374acf1d67c4198f2feab611e8c410da36efc89de40e43ee9b57b03be719"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationAttestationModels.swift:582-585 | Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.swift:123-126 | Core/PeekabooFoundation/Sources/PeekabooFoundation/SnapshotReference.swift:57-60 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationAttestationModels.swift"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"644d4dff5e1ddcd3fc9613ed83423e5c9455ad4edb47a1c3ce096ae3c1d00105"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BObservationRequest.swift:139-147 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelObservationRequest.swift:14-23 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BObservationRequest.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb33cd2bc7d65b30a100cab99e37fc17bdd721d7a93f6de32ea1069cce9d421c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/SnapshotManagerProtocol.swift:268-273 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager.swift:171-175 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/SnapshotManagerProtocol.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a57fc8ead5fa7784e9a57100d24446448c1b87c0c8bdb98f0e73fc617a167a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/CaptureFrameSource.swift:81-84 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/SingleShotFrameSource.swift:23-25 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/CaptureFrameSource.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef60a5f31417091ddf355a8acdef98715c9d755eb6aa36461349c930448ec0f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Core/PeekabooUICore/Sources/PeekabooUICore/Inspector/OverlayHitTesting.swift:41-45 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/VisualizerScreenGeometry.swift:11-18 \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":"Core/PeekabooUICore/Sources/PeekabooUICore/Inspector/OverlayHitTesting.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25cf763712a01fb3f9f0bbc684b9586b438715c60c52d71a438195f28d45e43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (69 lines \u00D7 2): Apps/Playground/Playground/ContentView.swift:347-415 | Apps/Playground/Playground/Views/DialogFixtureView.swift:135-203 \u2014 before extracting anything, compare \u0060Apps/Playground/Playground/ContentView.swift\u0060 and \u0060Apps/Playground/Playground/Views/DialogFixtureView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 140 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Playground/Playground/ContentView.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc79ee8f16bb31bc741f1f95d80eb4ee0cda46144ca3babfaa34f83fc363bcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceUtilities.swift:102-154 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceUtilities.swift:221-273 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceUtilities.swift:102\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceUtilities.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"981624bfd3a06b27a900d86ebd4eb2b9d183d148fd9dbff281243b919b030f52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift:95-133 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager.swift:172-210 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13bb8f93903203eb4aeeefaceb035a0a403c7dfb62054092acbe78538d92ab5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): Apps/Playground/Playground/ContentView.swift:440-477 | Apps/Playground/Playground/Views/DialogFixtureView.swift:228-265 \u2014 before extracting anything, compare \u0060Apps/Playground/Playground/ContentView.swift\u0060 and \u0060Apps/Playground/Playground/Views/DialogFixtureView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 140 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Playground/Playground/ContentView.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2fc9dc8f9cdac6638e4fb49889e24ef5c3003d160568ff7273e191e82b9a380"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:537-573 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:620-656 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:537\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:618\u0060 calls \u0060init\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:536\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"63fec753cac6010e3f8a4921aee18aeed3b795c9ff04f98da6ece53749f44250"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201336 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Helpers/ProcessWait.swift:14-49 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService\u002BProcess.swift:13-47 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Helpers/ProcessWait.swift:14\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060timeoutSeconds\u0060 to \u0060TimeInterval\u0060 in one and \u0060TimeInterval = 15\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Helpers/ProcessWait.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69ad812f70ee97d5896a755b194138c39e55feb66adfd3d2f6c84a8c3b8ff31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift:312-344 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift:421-453 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift:312\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"e217291bbe502408c30ae6f68dcbaa0a8fc83f1e7f85fb24dbaeb9b6f94fff13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift:195-226 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift:600-631 \u2014 before extracting anything, compare \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift\u0060 and \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 142 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 \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift:195\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3dd7283429f2b7a5b9957347b82cbcab9cfb0aaa2e208654b51cb52c0ea2b1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift:650-678 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift:326-355 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift:650\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"84caeb6849f568b8f8403a18929a7630c46a76893790b70124370cfda7f40a02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:102-129 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:149-176 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:102\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2af3d485df377630f44d37c40aac2b327cb8b6eec01f17c1b2464c2e905d002"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:256-283 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:324-351 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"787ad083a9524be173d91bbd51430da267138d8a3819e1a09ebfd356d3fd1cff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201326 lines \u00D7 2): Apps/CLI/Sources/PeekabooCertificationController/HeldPointerRunner.swift:615-640 | Apps/CLI/Sources/PeekabooCertificationController/LiveCertificationBridge.swift:155-177 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCertificationController/HeldPointerRunner.swift:615\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":"Apps/CLI/Sources/PeekabooCertificationController/HeldPointerRunner.swift"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c4c42cd03097a05a6e85596c9e74977a338197cf0f5fd794782606a929d3f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool.swift:48-73 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SeeTool.swift:82-107 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool.swift:48\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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7f3c954126f46bdf75374858d4ae98bfed800f4392c1db7f6f0d03eb248d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 3): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift:434-454 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift:768-792 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService\u002BTargetResolution.swift:56-80 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift:794\u0060 calls \u0060lowercased\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift:455\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddcd09c57e3e0b16f3ea187236029ee87e768ffa9fcd23e38b09b24ce5c1648"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): Core/PeekabooUICore/Sources/PeekabooUICore/Inspector/OverlayManager.swift:124-148 | Core/PeekabooUICore/Sources/PeekabooUICore/Inspector/OverlayManager.swift:478-502 | Core/PeekabooUICore/Sources/PeekabooUICore/Overlay/OverlayView.swift:136-160 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooUICore/Sources/PeekabooUICore/Inspector/OverlayManager.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a557570f30b28e62d389b39a9dc75f51abddac0b7bbb1159acee6ffc5e3066"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201325 lines \u00D7 3): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:146-169 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/SystemToolFormatter.swift:315-318 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/VisionToolFormatter.swift:167-191 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"713f7e05f609394e3376b854d467d657027069259796986b6f6a9c8fcfe91cc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BAccessors.swift:75-99 | Core/PeekabooCore/Sources/PeekabooAutomation/Services/AI/PeekabooAIService.swift:603-627 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BAccessors.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75aa3ac6409722dcbf7cbeda14c21516330b9b482b3769eb213f829b2f4c5a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:736-759 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/VideoWriter.swift:366-388 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:736\u0060 it does not close everything it opens, so those exact 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4b867b7fe01e29c2f817a715b86aa0de12dd0854736a4778ef9197884a3f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:129-152 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:225-245 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:129\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c5a4db72d08e2bdb0b3924d381c56e934f165cc7015b70631b84f42df5b66d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift:384-407 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift:490-513 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift:384\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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56fd92ac12f946a7b146dc195b1a750adb7d47fb0dce47173752008ce765944"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift:131-152 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentOutputDelegate\u002BFormatting.swift:165-187 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac4e46757cc935db8074a0e96c3b5a8b1c01623c3fb8002fd3445d90ef032ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift:252-273 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift:690-712 \u2014 before extracting anything, compare \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift\u0060 and \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fc06ca65b644bc2548ac69be0141d294405c42ec8c4acd74d4ee6d97f95815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BTools.swift:106-128 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BTools.swift:195-217 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BTools.swift:105\u0060 calls \u0060checkCancellation\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BTools.swift:194\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BTools.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"d053c1fb92796fade1af41aac7c8341237cace6cfc23be1a86a3de2c5f1a443a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift:56-78 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SetValueTool.swift:66-88 \u2014 before extracting anything, compare \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SetValueTool.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 77 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 \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift:56\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af066f0d2b5257cc2a1997b757f655dbbff51a65e2a922b2ea10106f2c79746"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MenuTool.swift:241-263 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MenuTool.swift:272-294 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MenuTool.swift:241\u0060 it begins part-way through the construct above it, so those exact 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MenuTool.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b450653658c035ff294b2532505948d27ad189d1a61f7c5652484bd00949d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BTypes.swift:42-63 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BTypes.swift:67-88 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BTypes.swift:42\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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BTypes.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b628a94d3098381e36719a7d3a6a01b85c53e18cd0d38bab0c97b453613557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Apps/Playground/Playground/ContentView.swift:417-438 | Apps/Playground/Playground/Views/DialogFixtureView.swift:205-226 \u2014 before extracting anything, compare \u0060Apps/Playground/Playground/ContentView.swift\u0060 and \u0060Apps/Playground/Playground/Views/DialogFixtureView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 140 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Playground/Playground/ContentView.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98054eab706e3ca936155064ee06d9e061d65e685824b7d4d5df542fc2e9fe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift:229-249 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift:667-688 \u2014 before extracting anything, compare \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift\u0060 and \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"493f4d4a4345766ecc58b521313cd685bf0e958522442844272eae33b7f96da1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool.swift:169-189 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SeeTool.swift:193-214 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool.swift:169\u0060 it begins part-way through the construct above it, so those exact 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"41dd63e3c92d979a8794319b0c00e06350d80bf2df9fdef3ea42992b99ac298b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionRunner.swift:150-171 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionRunner.swift:269-290 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionRunner.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"d254ecfb4d1daac41e68368e8eb27c0eaed4ca5bc47c1e21f7fcb318d4674b27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:572-593 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:779-800 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:572\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b0ff668affab5b49ec97686568bb840ad092577655cef738c2fcd157acca85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift:162-182 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift:213-233 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift:162\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd724c619fb358124c99137f256505ca79ae31db943ea1cd2d17381f770efb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 2): Apps/Mac/Peekaboo/Core/Settings.swift:652-671 | Apps/Mac/Peekaboo/Core/Settings.swift:799-814 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/Mac/Peekaboo/Core/Settings.swift:652\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Core/Settings.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a052770174aac3ce8c80f0760db2df6ebe8eeade156564899f40f597b1081cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): Apps/Mac/Peekaboo/Core/Settings.swift:675-693 | Apps/Mac/Peekaboo/Core/Settings.swift:865-884 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/Mac/Peekaboo/Core/Settings.swift:675\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Core/Settings.swift"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a6268477e3724864263799e8afaec0f89c4479591916047a34d260ccd6b10f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/CaptureArtifactIntegrityValidator.swift:150-169 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/CaptureArtifactIntegrityValidator.swift:267-286 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/CaptureArtifactIntegrityValidator.swift:150\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/CaptureArtifactIntegrityValidator.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceacbe1c75ba37d1a9264bd7524ee00c00177395107b5e5ce62f585d1fde8386"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift:355-374 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift:462-481 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift:355\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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1f501e2bc9c042f1b1c024a890b7991919a382ae93caa059330a3e892c778f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201319 lines \u00D7 4): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/MoveCommand\u002BCommanderMetadata.swift:94-107 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand\u002BCommanderMetadata.swift:34-51 | Apps/CLI/Sources/PeekabooCLI/Commands/System/DialogCommand\u002BCommanderMetadata.swift:32-43 | Apps/CLI/Sources/PeekabooCLI/Commands/System/DialogCommand\u002BCommanderMetadata.swift:63-81 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/MoveCommand\u002BCommanderMetadata.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand\u002BCommanderMetadata.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/MoveCommand\u002BCommanderMetadata.swift:94\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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/MoveCommand\u002BCommanderMetadata.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"57cdbbd19b6d2f7cdf2be5f0ae0c497e6514817c4d52d85f09f4ab7b966fc1bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201319 lines \u00D7 3): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift:159-171 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand\u002BCommanderMetadata.swift:40-58 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/SetValueCommand.swift:130-142 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand\u002BCommanderMetadata.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift:159\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"92adaf6b3b14ee011995bddceed260b1d064746dade0ee472a163f60fa032768"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:278-296 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SetValueTool.swift:59-73 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:278\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec24a7bac9312e20291f3330baa0adf6edb56052139db768c8eab5cff496b94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:1276-1294 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveScope.swift:132-150 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveScope.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 79 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 \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:1276\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e43716f48eaaa930a2c4a526ed4cb20e81d400998a9ce4f90fd081f0c628835"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201319 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift:133-151 | Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift:266-273 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift:133\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":"Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d92798cfa04553cf58b209b485a00244c26545683bcdc1a1807d965a6172d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift:156-174 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift:239-257 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift:156\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf95288394f740892ef5a99833dab97c15410c484d090e8262d0eab7ff233bda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBootstrap.swift:38-56 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBootstrap.swift:78-96 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBootstrap.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08ebb35eba4e3faed0069ccf3d5b60b2ea3a82773a69284aa0cb146a05fa8db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooCore/Support/RemotePeekabooServices.swift:55-73 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:71-89 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemotePeekabooServices.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecaed871d72bf6313b6ea825c4afed61b7e4b681dd8f6c8a7a54388e1f1d3948"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201318 lines \u00D7 5): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BCommanderMetadata.swift:65-74 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BCommanderMetadata.swift:99-105 | Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift:140-157 | Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift:269-279 | Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand\u002BCommanderMetadata.swift:105-115 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BCommanderMetadata.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BCommanderMetadata.swift:65\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BCommanderMetadata.swift:63\u0060 calls \u0060commandOption\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BCommanderMetadata.swift:99\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BCommanderMetadata.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2edb71e9f3f58a4e7586eb495598d15ecd0af4fe11caec35cf62d8f319c484"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift:1094-1111 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift:634-651 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift:662-679 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift:690-707 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d885212d3ac7b175f94a58fac21fc658e5b7169eca57f72167dc1d321bc406"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift:348-364 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService\u002BCapture.swift:107-124 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationTargetResolver.swift:286-302 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0a8616a602ebb0bbc2f429530a2b6ca9a5380f3c414686ed337cf256e9ecbe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:444-458 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:474-491 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:444\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"666cfe499070e5c39eb54134310fe013c349d7e3d6d6c162e2e8fc47a6b087d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): Apps/Playground/Playground/LogViewerWindow.swift:60-75 | Core/PeekabooUICore/Sources/PeekabooUICore/Components/AllElementsView.swift:82-99 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Playground/Playground/LogViewerWindow.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"7775f677edde242d61f6652b060a05efddeacd71171428eff42d6429cb7cc292"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BWindow.swift:66-83 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BWindow.swift:166-183 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BWindow.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5ae4129879d05284d28d55fe27da647806d547380e7c8e38b118eadd0fb0b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift:173-189 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift:577-594 \u2014 before extracting anything, compare \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift\u0060 and \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 142 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4fa568cb6327e276626ff1b75942fcf94f7893b1c35d4bb90c5ddd9db5ab953"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/SnapshotTargetReceiptPlanner.swift:95-112 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/SnapshotTargetReceiptPlanner.swift:118-135 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/SnapshotTargetReceiptPlanner.swift:95\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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/SnapshotTargetReceiptPlanner.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce31baf29df6f657ac05b1dd707e93ade454ee34bde7f2644d52840a27fd977c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift:525-542 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift:171-188 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift:525\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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d0787e7066485f3c6b24c94f99073dc25d3c014b316a0fe62b535690b0c9e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BSessionLifecycle.swift:315-332 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService.swift:496-512 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BSessionLifecycle.swift:315\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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BSessionLifecycle.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a987e96bf8d8f9240ede572f41544d63cd9278278e9ce8a0d009114ba8b6e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift:146-163 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift:201-218 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d373e62abd683ec3c693ebd6e74cda6b5543b3b49136646b5e759900efa116c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MenuTool.swift:122-139 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MenuTool.swift:213-230 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MenuTool.swift:122\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MenuTool.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf17d7c982e034420d50d941e2bdffecdbb6bad3744f8518dff2ba831e77eae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionTraceModels.swift:95-112 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionTraceModels.swift:266-283 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionTraceModels.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52dfe334233de73518c2a0498d5f9c0c4e2e1e31f1a8134a8c0523fb6e45400"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionTraceModels.swift:121-138 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionTraceModels.swift:303-320 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note what the matched lines are: every one of them assigns one field to another, so the block is a hand-written mapper between two data shapes rather than behaviour with a helper inside it. Extracting one shared function only works if both sites map the SAME pair of types in the same direction \u2014 check that first, because inverse or differently-typed mappers have no single function they can both call. Where they do not, the moves that exist are a generated or reflective mapper, a common embedded/base type the fields live on once, or accepting the run and covering it with a test that fails when a field is added to one side only."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionTraceModels.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9ec8ab91dfe25037f15bb127b091079fe9bdf2bfd00994666eacbb68f92e89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooCore/Support/RemotePeekabooServices.swift:37-53 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:57-74 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemotePeekabooServices.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"84111c4e3beb0800f9bc77f876259cbf982e4a12b8250490d6d5ec92901ca3bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:463-480 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:493-510 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:463\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":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7238141594dbe3d262709098c7d95b9b7b2f565784fe4976530e6ca83ed355a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201317 lines \u00D7 11): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift:152-158 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand\u002BCommanderMetadata.swift:5-15 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/SetValueCommand.swift:123-129 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/TypeCommand\u002BCommanderMetadata.swift:4-20 | Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserCommand.swift:376-388 | Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift:4-20 | Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift:58-70 | Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift:102-118 | Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift:128-144 | Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift:214-230 | Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift:262-268 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/SetValueCommand.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 89 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 \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift:152\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand\u002BCommanderMetadata.swift:17\u0060 calls \u0060commandOption\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift:160\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"1293fd7352ccf7b6b859443125523aa7fd0ef5fa57e6ec7a5ed5bd9b07238517"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift:154-170 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift:559-575 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/FocusedElementReceiptResolver.swift:152-168 \u2014 before extracting anything, compare \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift\u0060 and \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 142 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f43e267d0a51db7ea44e78bc5949de58a771472d7a57e1a732fff48373edfdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BMenuBarCandidates.swift:61-77 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BMenuBarCandidates.swift:97-113 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BMenuBarCandidates.swift:61\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BMenuBarCandidates.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c228b15e70e5b281801f8963de2f0571fc79b4fda9c778417c0b39998d78c5c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift:859-875 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/VideoWriter.swift:263-277 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift:859\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ce35bf05f4a341f7b38368eccade0759fefa053b364bb7939c438518f4be53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:1250-1266 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveScope.swift:105-121 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveScope.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a91d0b812a36b0e4c8d4375a6e1a595f16c696f420bf2aa6310bac4efe32c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionTargetOptions\u002BCommanderMetadata.swift:18-34 | Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowIdentificationOptions\u002BCommanderMetadata.swift:18-34 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionTargetOptions\u002BCommanderMetadata.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowIdentificationOptions\u002BCommanderMetadata.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionTargetOptions\u002BCommanderMetadata.swift:18\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionTargetOptions\u002BCommanderMetadata.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2a25021664c6c808ccbee3186e717bc01b1b2af77430ba14f47426dec1db00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BScreenArea.swift:57-73 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BWindow.swift:97-113 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BScreenArea.swift:57\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BScreenArea.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"7856853964811d55a3ead0f5d48f79ce96fa2c287ee69247d8ff7712425bfbed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift:134-150 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift:215-231 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift:134\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4e9ccb3372cd26d5fada4f6b2b4362e6d09801b8ce0191727ebe1d204be8bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:246-262 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:299-315 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:246\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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b22346dcb5faff8a5303f22ed55261e6ca5b528914d62b067bc5c763be2db7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ScreenCaptureServiceProtocol.swift:337-353 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ScreenCaptureServiceProtocol.swift:363-378 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ScreenCaptureServiceProtocol.swift:337\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ScreenCaptureServiceProtocol.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e1efb9b8424ee1ab4cb35aa4bf3360b24a60a84e2e53472236f420a1548df1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarPopoverResolver.swift:175-192 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarWindowCatalog.swift:166-183 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarPopoverResolver.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"50645525eef63bd6bf15271249c28d1489eb99a89a8a3cdf419d907da0dabab3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ChromeProcessCodeSignatureValidator.swift:132-147 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift:380-396 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ChromeProcessCodeSignatureValidator.swift:132\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ChromeProcessCodeSignatureValidator.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5b025623474d04f568221f60870575ce67803a4f3782b558653358480a83d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/UIInputPolicy.swift:13-29 | Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/Configuration.swift:249-265 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/UIInputPolicy.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3371d1523ec6f51ef78a0052c3333583a8b8d34faa9900fb4a7c4b46290bd8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:906-921 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:942-958 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:942\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"7699b32001beafcd79180ed0e718557e4de658e8cad055f8b1918f8c9608a3d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:1152-1168 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:1181-1197 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:1152\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"266b1b02332d5a7dff25fad8eca18a49a21f2bee460915502ff9e2f1564e79cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:135-151 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/ElementStyleProvider.swift:159-175 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:135\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"09967324f514554c57b409b1890b22a78affadc52f95b64dc2e620cd0da359b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 4): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:285-300 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:319-334 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift:55-66 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SetValueTool.swift:65-76 \u2014 before extracting anything, compare \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SetValueTool.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 77 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 \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:285\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"baad183b46719492c158add1926e589c4b3c675a976754abf3539b1356718f80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201316 lines \u00D7 4): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift:159-166 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand\u002BCommanderMetadata.swift:38-53 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/SelectTextCommand.swift:135-145 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/SetValueCommand.swift:130-137 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand\u002BCommanderMetadata.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift:159\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/SelectTextCommand.swift:135\u0060 calls \u0060commandOption\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift:159\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"012209d057759166525a7441fb41c4023938afa1378a4363af44ae27e94a1290"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift:61-76 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift:176-191 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift:235-250 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift:61\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d8f57bec60a4279ba6d68a286d074272ec41db5944c2682b543e9ba9cf6a6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 3): Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift:444-455 | Apps/CLI/Sources/PeekabooCertificationController/HeldPointerPlan.swift:180-195 | Apps/CLI/Sources/PeekabooCertificationController/ObserverPlan.swift:276-287 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCertificationController/HeldPointerPlan.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift:444\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d4fd14f3c6bf06eeaf6d2e52e6037c87faa1939b4d12eda2d65f7d68c90d25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:600-615 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveOptions.swift:18-33 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:600\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d89465a7835cf5ca8654acdf352b539a9b4a2d0b23a9897eafd787b6c284e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BCaptures.swift:158-173 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BCaptures.swift:192-207 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BCaptures.swift:158\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BCaptures.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"163199095cc66e9a85cc78207ef19fefcdd494821978c9db30cb393cbc67d920"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift:172-187 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift:1482-1497 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift:172\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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3cd7304892840b335ca4d76d79f4f5e179b57e603a60a71363611078e517983"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.swift:76-91 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.swift:105-120 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.swift:76\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"867043866f884bcd3af7bbf6009fe0efb66c571993de3ccf48e56839f7bcf19e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPExecutionEvidence.swift:59-74 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift:784-799 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPExecutionEvidence.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"94530283f17af2aa1f939d74bfa5240f0e84bffedf80f13c7af568a866db50d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 4): Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift:445-455 | Apps/CLI/Sources/PeekabooCertificationController/HeldPointerPlan.swift:181-195 | Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:61-71 | Apps/CLI/Sources/PeekabooCertificationController/ObserverPlan.swift:277-287 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCertificationController/HeldPointerPlan.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4183db2a67262f4ce8b1c6b4d455c571fb0bb602545d24a2a6a29b53d69207"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:550-564 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:633-647 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:757-771 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:550\u0060 it does not close everything it opens, so those exact 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"25883679c6e527861e9d31fed92139364a98d826ef61991b4168f77cbb7b3755"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201315 lines \u00D7 2): Apps/CLI/Sources/PeekabooCertificationController/CodeIdentityRunner.swift:260-268 | Apps/CLI/Sources/PeekabooCertificationController/ControllerBuildIdentity.swift:49-63 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/CodeIdentityRunner.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0e87149891039e9cbf0b2f91c3ea65377b44238d23e88b15db1edf4cea4bb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BScreenshots.swift:132-146 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BElements.swift:28-42 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BScreenshots.swift:132\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BScreenshots.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d66c276f1c87d568cbc05ac3ce79488ae773ed8fc46aad30d99d0328350fce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift:341-355 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift:363-377 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"6878c3ace7cb5c2a028f5a5d6f24f5e91507ce9ba29f7af4bf43058428358d23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ForegroundModifierClickExecutor.swift:648-662 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ForegroundModifierClickExecutor.swift:725-739 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ForegroundModifierClickExecutor.swift"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"490d23f0c46b267b1c4f4a6747010a5b11000a0b4b609264f15babb6aafc74d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraAccessibility.swift:72-86 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraAccessibility.swift:306-320 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraAccessibility.swift:72\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraAccessibility.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff64dae63f30a4adfc5b705eab850cf1a5cdc4e017f02181bc84c86a1f88b3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift:241-255 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift:321-335 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift:241\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea69b2e332140eac55450c977a90a8d0dd6dfd0c245e11c3bdabd3f82101f001"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift:854-868 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift:907-921 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift:854\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa779ad3814c535bd08d361ffdc92425bf5e552ab6fa5b6e2c28e34e99ab3de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201315 lines \u00D7 4): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/SystemToolFormatter.swift:147-150 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/SystemToolFormatter.swift:413-416 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter\u002BWindowResults.swift:66-80 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter\u002BWindowResults.swift:96-110 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/SystemToolFormatter.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"4debacec4db0055c1fdb336ec2ef914e590c8a7b18f089a77586cfae83d3343a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices.swift:303-316 | Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices.swift:354-368 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices.swift:302\u0060 calls \u0060ScreenService\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices.swift:353\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"257d93254aa2412c552568cd4749a9e3c084e5606b702d5b16c61b75551a8f1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Core/PeekabooUICore/Sources/PeekabooUICore/Presets/AnnotationPreset.swift:105-119 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/AnnotationPreset.swift:42-56 \u2014 before extracting anything, compare \u0060Core/PeekabooUICore/Sources/PeekabooUICore/Presets/AnnotationPreset.swift\u0060 and \u0060Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/AnnotationPreset.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooUICore/Sources/PeekabooUICore/Presets/AnnotationPreset.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce17682af39e4310e81376db44cb78c3a458b3fe2fac7fbf173866fbf5ba8b70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Core/PeekabooUICore/Sources/PeekabooUICore/Presets/AnnotationPreset.swift:141-155 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/AnnotationPreset.swift:78-92 \u2014 before extracting anything, compare \u0060Core/PeekabooUICore/Sources/PeekabooUICore/Presets/AnnotationPreset.swift\u0060 and \u0060Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/AnnotationPreset.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooUICore/Sources/PeekabooUICore/Presets/AnnotationPreset.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"9412c8f89462c9687dffa830acbd39ecd9aed91d29edcd71454c1ee0c3572ad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:49-61 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:85-97 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:317-330 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:49\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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0fd456ed11214df446165b65cbba6e552f4efaeb2f82d24dad1ca4088a2a55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:566-579 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:649-662 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:773-786 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:566\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"88dfc9b49f0b63087d9ffa9dce7cda704ab48bf87c8295d48a1cde2650b00b62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/CLI/Output/JSONOutput.swift:581-594 | Apps/CLI/Sources/PeekabooCLI/CLI/Output/JSONOutput.swift:618-631 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/CLI/Output/JSONOutput.swift"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb5c2f7a9256888e70fdcbb094cf5e20b3cab77d1e6a008167a0c73d30b37b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift:46-59 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift:161-174 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift:46\u0060 it does not close everything it opens, so those exact 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, \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift:158\u0060 calls \u0060invalidInput\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift:45\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"704f60740006f84d313fc51f9b6bd890f4880c641fa8ece75a0df7f91b8c78f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.swift:277-290 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.swift:315-328 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.swift:277\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"651a50cf3ca1ed6646e4a6efbb81f0af296aaf09000a9e6cd0b0b8a9cfb6feee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.swift:333-346 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift:187-200 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.swift:333\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61343deaa5dc8db86025b6ca1c9c5d6be87c348607f44a401c0f66ccc9d6d70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift:61-79 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift:647-665 \u2014 before extracting anything, compare \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift\u0060 and \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 142 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"5490249ea6dcc17d2e03f721b87e16c0227f6cdbf35fe9fc6b5c7b18de66cb6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BActionOutcomes.swift:193-206 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BActionOutcomes.swift:242-255 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BActionOutcomes.swift:193\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BActionOutcomes.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d416eba403b61849e157206e5692b1870ff1fa3a94f4f224d23f3bc64b4dd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraAccessibility.swift:25-38 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraAccessibility.swift:250-263 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060limit\u0060 to \u0060Int = 6\u0060 in one and \u0060Int = 4\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraAccessibility.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ece5cc245deccfbc0d35ab9ce8c6ea4d09ec8a1c92d89b4a5290eedbb2a154"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift:73-86 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift:213-226 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"2826de40a5de81f9057f56ce883ab61ae84e35c439af30a768fddd802adc8f20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/SyntheticInputDriver.swift:323-336 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/SyntheticInputDriver.swift:468-481 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/SyntheticInputDriver.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ec86c37f1f8d5241bbbbf430a6f0d7f530b1cdec100506c8ece51e18c6459e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementActions.swift:307-320 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementActions.swift:405-418 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementActions.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"0904cded9361fc2072f59e5d9c67594b390615d0fded7d264665826597981e54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift:204-217 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:48-61 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b90a018dd079efc39f07765098b4700adbe029cbf17bd04134faf9984ff33a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowCGInfoLookup.swift:138-151 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/WindowIdentityUtilities.swift:392-405 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowCGInfoLookup.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef913dd27dded216040f502725dd3fbe5e231541b0ce6b3a2f86b1cf2caccde0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift:630-643 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift:308-321 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift:630\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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"92046e743311f75be53ee07935976ce73c963d3d3f5e6e0d99d7a7bff295d3c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext\u002BBrowserSession.swift:46-59 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift:824-837 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext\u002BBrowserSession.swift:46\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext\u002BBrowserSession.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1579f98eaa4fb9b1b9879d27bfa69698f6cc1912d1033bde3b9ecd4eda5bf9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift:21-34 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift:121-134 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift:21\u0060 it begins part-way through the construct above it, so those exact 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: \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift:21\u0060 is reached only past a guard at line 12 that tests \u0060request.newInstance\u0060 and leaves the function early, and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift:121\u0060 reads \u0060request.newInstance\u0060 with no such check. What separates these copies is not which lines they run but which PRECONDITION they enforce, so one of them is operating on state the other one refuses. Decide which is intended BEFORE unifying them \u2014 extract the shared part and whichever copy is missing the check keeps running unchecked, and if the guard is the correct behaviour then that hole is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f67ad559b68b4bc9524f60be0ad4cbf063ec257674c2979788fa94f92798024"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool\u002BFocus.swift:27-40 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MoveTool\u002BExecution.swift:76-89 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool\u002BFocus.swift:27\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool\u002BFocus.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e7479804410ecc2a548bc6f788b5176e9cac8ff5d863431b6df18fd2f02a04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BAgentExecutionTrace.swift:51-64 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BProcessGenerationObservation.swift:47-60 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BAgentExecutionTrace.swift:51\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BAgentExecutionTrace.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"8557c4f2c26f1d7ca56e7fbe92f61ff11f9bf0ff59b5756866b9a93fbe8a4de2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost\u002BClients.swift:403-416 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHostIdentity.swift:82-94 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost\u002BClients.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c02e2d64c7ce7a97975f23d5945841fdc044a1bafa67e53ef74aff419597e78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:683-696 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:730-743 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:683\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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"37318567c3ecc2956a7e2d3e0ae57bad724fe899359bfd5e3593fb261db933b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserBridge.swift:191-204 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteBrowserMCPClient.swift:774-787 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserBridge.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3fc60f321a9dc720286ff7416be71d45821685261275a8e05e83e1c6d79b76c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:30-43 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/ElementStyleProvider.swift:111-124 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24146de323ea76e14f95fe1ffa1dc6de19e196f7c0d9bb5f3551bc9aa6841f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:52-64 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:88-100 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:183-195 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:227-239 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:271-283 \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 \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:52\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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f604b7379a475fb0b0c34fa9a0d39d5cafbadfaa47e555f699ce8fe689d98f53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift:978-990 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/CaptureArtifactIntegrityValidator.swift:164-176 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/CaptureArtifactIntegrityValidator.swift:281-293 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af3f10f9fcb75d72b7bdcc8883c3aac44fe66f93ae1fe01f17373f325673770"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift:28-40 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager.swift:130-142 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DetectedElementSnapshotConverter.swift:10-22 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be57f49df4b5b944555800f6d0632b17a80b8008af9a0f47839833562f30932"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift:102-114 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager.swift:179-191 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementClassifier.swift:125-137 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1dbd4df7e81e7f7b9fb6505c2bc591435a76eaab1da69f191acdc074fc3fced"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/AgentExecutionReleaseGate.swift:235-247 | Apps/CLI/Sources/PeekabooCLI/AgentExecutionReleaseGate.swift:249-261 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/AgentExecutionReleaseGate.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b71069f2c98b7efc8c55e3efd973148b826da686281d080a4b863d8a627e76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BModelParsing.swift:173-185 | Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BAgent.swift:164-176 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BModelParsing.swift:173\u0060 it does not close everything it opens, so those exact 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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BModelParsing.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c38b97c8c1cfac96b35a13278d419cd66a63b3a92c63253b1a56ec63bdf9b64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift:401-412 | Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationContext.swift:477-489 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift:401\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0abd23337a19c87e6c5ee4b55028cddfd8da357f7dac4972cbd486ead16e91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand.swift:171-183 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/MoveCommand.swift:152-163 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand.swift:171\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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5bffa60a8fc68a2495c5f9b94b2ea5517a61b2d461d0a23a83fcb64014ea90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationInvalidator.swift:771-781 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift:1146-1158 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationInvalidator.swift"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"b134b8b84aa03f58cfe038ab6410aa1ac401d1320698a478554581f483fb8f98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Apps/Mac/Peekaboo/Features/Settings/AddCustomProviderView.swift:315-327 | Apps/Mac/Peekaboo/Features/Settings/CustomProviderView.swift:373-385 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Settings/AddCustomProviderView.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"46bf131fb54646d28dbb1fa4b135bc6dfde07154a3deb7c1b6aec0f637bb21b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureSessionOptions.swift:82-94 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureSessionResult.swift:36-48 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note what the matched lines are: every one of them assigns one field to another, so the block is a hand-written mapper between two data shapes rather than behaviour with a helper inside it. Extracting one shared function only works if both sites map the SAME pair of types in the same direction \u2014 check that first, because inverse or differently-typed mappers have no single function they can both call. Where they do not, the moves that exist are a generated or reflective mapper, a common embedded/base type the fields live on once, or accepting the run and covering it with a test that fails when a field is added to one side only."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureSessionOptions.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"40be00e36115e6375c6990ed8bc56e7d799f3fd6dd257f037e44ee0ab04a52cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitCaptureGate.swift:468-480 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationOCRService.swift:505-517 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitCaptureGate.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"26090f9b3d4d0c27e80e07c4c7e29900f7c8ee3373c5e44a6dd42dc029be16a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.swift:517-529 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationResultModels.swift:195-207 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.swift:530\u0060 calls \u0060decodeIfPresent\u0060 and \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationResultModels.swift:208\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.swift"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"de3f0206aec9c8adbb83d47b3f507b4fbf25dcd0e6069439bf05837f07f8b4c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService\u002BActions.swift:412-424 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService\u002BSupport.swift:104-115 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService\u002BActions.swift:412\u0060 it does not close everything it opens, so those exact 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService\u002BActions.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b0e63d0b663cdb63335427ebd5227abcf0774a0bcd1e4933345ceed5f2db29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BTraversal.swift:51-63 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BTraversal.swift:90-102 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BTraversal.swift:51\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BTraversal.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e553a2d909a2448e9c834c8b54bf82bcdb450d7e03ed66f8ae768da015c84c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift:42-54 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift:123-135 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift:40\u0060 calls \u0060MainActor\u0060 and \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift:121\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2a52ec3d57737c9b2ba7c081b40555cc293f9ad2b3f254963c14afb91210ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift:294-305 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BActionOutcomes.swift:122-134 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift:294\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd97cf648d21066bc065f79355b42528c3434fca0216b1d508c9b6b9f55d8b38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceWindowMutationDispatcher.swift:90-102 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceWindowMutationDispatcher.swift:127-139 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceWindowMutationDispatcher.swift:123\u0060 calls \u0060removeWindows\u0060 and \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceWindowMutationDispatcher.swift:88\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceWindowMutationDispatcher.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc5c3776bee56ecc53b094ec818a1e1b40f5ab3144dce2e7f26c5dfa5b235d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool.swift:396-407 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SeeTool.swift:239-251 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool.swift:396\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060snapshotId\u0060 to \u0060String?) async throws -\u003E (snapshot: UISnapshot\u0060 in one and \u0060String?) async throws -\u003E ( snapshot: UISnapshot\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60c1c0f9d28b1e08eb282855d97d100e0d5dbf497d4b8f5a8e7292d2bfed3cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:15-27 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:135-147 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:15\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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"521a289689480f3c83e772ec01146f1538bba87028cfc6c21e03a0fcc417e07d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:614-626 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:1175-1187 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:614\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ff0aeb06155ad479276a9a3297206a9aeafba0484cff9f853abb243e174cca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift:579-591 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift:625-637 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift:579\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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"d611148019f43e25ae00704ec24de8d5d71422a131626db2bbe317f7b550f32b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost\u002BClients.swift:176-188 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost\u002BClients.swift:191-203 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost\u002BClients.swift:176\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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost\u002BClients.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c3e9d134c1b5571e580e4ab78be6d3e35f07017380f3f55faa5d49478e34ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost.swift:1304-1316 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost.swift:1320-1331 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost.swift:1304\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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost.swift"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"626589db44befc25f714b49d522cc863bed7d93a752edbad2f379215e486bece"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:613-625 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:643-655 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:613\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c87664340393eaaced2072a812fdc34cfe1a6ed80abe5a09c0076668e798fae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:57-69 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:95-107 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:57\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e779af15333283bd70c2aa7c390854f1c0e959b2acce23deb17c03e0ed8796ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/AnnotationPreset.swift:62-74 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/InspectorPreset.swift:82-94 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/AnnotationPreset.swift:62\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/AnnotationPreset.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac19fbbeb4001401296fdb83425af30e2f5de92784921997dda4144bb76575bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 4): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift:144-155 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift:168-179 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift:225-235 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift:251-261 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift:141\u0060 calls \u0060debug\u0060 and \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift:167\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"17fabf84d864fb6b67c502145769a8dd747c4a70b3e9070bc5725597b0782e92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift:103-114 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager.swift:180-191 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:602-613 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementClassifier.swift:126-137 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25bb2cc011ba9863d21f0bd26c44e57a80e221713e1be09f1fcf982494d8625"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceUtilities.swift:131-142 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceUtilities.swift:186-197 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceUtilities.swift:250-261 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceUtilities.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9eea95a32710ef2e9c37bdca30c70faa6bd5c7d520996d1544839034fb3ef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:86-97 | Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:158-169 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/InspectorPreset.swift:101-112 \u2014 before extracting anything, compare \u0060Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift\u0060 and \u0060Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/InspectorPreset.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:86\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"e796a45fc89d0800c0902eb55fd9ffb25e07628080670b0ecda9f348844df44a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:122-133 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/ElementStyleProvider.swift:182-193 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/InspectorPreset.swift:65-76 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:122\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"e408609d96bcf833df888a288af7a9ec12872c5d146ae6c799ac0033a7d9db59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift:173-183 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentOutputDelegate\u002BFormatting.swift:208-219 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift:173\u0060 it does not close everything it opens, so those exact 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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"5069303c2e14b06a34a715ad252a6b88beb8916028af2ce7f5a617c0fd5d4b64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelOutput.swift:207-218 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelOutput.swift:231-242 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelOutput.swift:207\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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelOutput.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5dd0c4078c88e81c51f3edc18d7fc64cef7e6861733ec509d9afc2f8886745"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift:95-106 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift:138-148 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift:95\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"37db88de4de25418377df4eecf01d257cb397118cc19564ce604af9670a58a78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:1307-1318 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveScope.swift:163-174 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveScope.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 79 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 \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:1307\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":1307}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1ff15d946bbdf7a174233f1ba6c485cacb4a9865bb29a0a73974824206e215"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Apps/CLI/Sources/PeekabooCertificationController/LiveCertificationBridge.swift:295-306 | Apps/CLI/Sources/PeekabooCertificationController/LiveCertificationBridge.swift:322-333 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCertificationController/LiveCertificationBridge.swift:295\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/LiveCertificationBridge.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"772de10ea61fff54d9b8bc9c3dbd79f8c2474ee720266c289f91f56795f14fb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Apps/Mac/Peekaboo/Features/Main/SessionChatView.swift:36-47 | Apps/Mac/Peekaboo/Features/Main/SessionSidebar.swift:57-68 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Apps/Mac/Peekaboo/Features/Main/SessionChatView.swift:36\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Main/SessionChatView.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"df54c18d2db91384a385429f18555de9d36c7e545cae016f89855e4955b9c9aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Apps/Mac/Peekaboo/Features/Settings/SettingsWindow.swift:399-410 | Apps/Mac/Peekaboo/Features/Settings/SettingsWindow.swift:421-432 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/Mac/Peekaboo/Features/Settings/SettingsWindow.swift:399\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Settings/SettingsWindow.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"760e0b7dedbeed40de4b6f405eaed1cce06d3c8acc315f9fe4850dd39b471f29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Apps/Mac/Peekaboo/Features/StatusBar/UnifiedActivityFeed.swift:375-386 | Apps/Mac/Peekaboo/Features/StatusBar/UnifiedActivityFeed.swift:392-403 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/Mac/Peekaboo/Features/StatusBar/UnifiedActivityFeed.swift:375\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Apps/Mac/Peekaboo/Features/StatusBar/UnifiedActivityFeed.swift:404\u0060 calls \u0060lineLimit\u0060 and \u0060Apps/Mac/Peekaboo/Features/StatusBar/UnifiedActivityFeed.swift:387\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/StatusBar/UnifiedActivityFeed.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af235b53add7828779dfd2bc84f1b1c1f0e58a7ecd57d4e01160d56e4a4aa6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift:180-191 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift:265-276 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift:180\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureEngineSupport.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"39070c6ce9e4ffcdcd68071ff3ce0ee5a08cc37f86123730abb5820979b5d5cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift:654-665 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift:675-686 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift:654\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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"740a341f8f56ae75bccae2ed0c2c80beda2203ad8b0c8d4632c7d149f3582bb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService.swift:778-788 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService.swift:800-811 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService.swift:778\u0060 it does not close everything it opens, so those exact 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService.swift"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91307b1efb623e619fb3bfafa85dbd26451aa6a2b3da991dfda7d4a87880c9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/FileService.swift:32-43 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/FileService.swift:92-103 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/FileService.swift:32\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/FileService.swift:90\u0060 calls \u0060Date\u0060, \u0060addingTimeInterval\u0060, \u0060Double\u0060 and \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/FileService.swift:30\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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/FileService.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6715234e65f96939c5baf5314102ca9f73f50241f09719bd933f5a454b7eaeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift:744-758 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService\u002BTargetResolution.swift:36-50 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift:744\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"94797561b6f7732ea35f66f3b7ee5bc0e13be8081a3d7cff67f271b63492f033"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BElements.swift:294-305 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService\u002BActions.swift:287-298 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BElements.swift:294\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BElements.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f701a033cf71f806af83b68adee9f51b8da811ff42570bdc8a83755ea7be53f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BTools.swift:463-474 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BTools.swift:490-501 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BTools.swift:463\u0060 it begins part-way through the construct above it, so those exact 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BTools.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d22fc68722f5367165d3465dfe9586d3984129803f5f1a94b452c28fccb769c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:110-121 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserModels.swift:81-92 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:110\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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62107bf18c755d4eb50c9bc00ae04e8993cef8532ee2db9a8ac44a9d58e4b87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift:90-101 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SetValueTool.swift:101-112 \u2014 before extracting anything, compare \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SetValueTool.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 77 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 \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift:90\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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae15a47cf5a807c525f831cc36b2b8eb99efb4364db2c15de06b6f643a7915e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift:318-329 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift:1022-1032 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift:318\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"627168d096fb5da7c0aa0a252cbaaf72a1abc6e350f296591593f27948d72dc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift:412-422 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift:427-438 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift:412\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift:409\u0060 calls \u0060PressToolValidationError\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift:426\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d6d8aba71868197a617bc15efa28d229a11c55715f8c39d7419d7b56a7c2e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift:160-171 | Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift:194-205 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift:160\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, 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":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a69aaacc0c82e456a9ff7c9d8cfbe9bba2f4e0e75b90733409f3c7a9edf7506"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValue.swift:110-121 | Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserBridge.swift:307-318 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValue.swift:110\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValue.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e264df2d9614c2f9b72f5697a2373ac96b647b4cd475a9aa25ebe1bdc39547e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:37-48 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:79-90 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:37\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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97aa7af18ec115b20c0758570d7729b980342e217cb00efdcc81aaefe7fc3cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BRouting.swift:108-119 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BRouting.swift:133-144 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BRouting.swift:108\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BRouting.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"7146f3307869583a9aff78a4e3e2b928da32ce7e9e1e1187a2c49954a311bf74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:271-282 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:330-341 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift:271\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":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d31069a99813397ad9ce63aae59145debc14eb8c2e67e27072a35181a58de7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooUICore/Sources/PeekabooUICore/Components/AllElementsView.swift:255-266 | Core/PeekabooUICore/Sources/PeekabooUICore/Components/ElementDetailsView.swift:67-78 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooUICore/Sources/PeekabooUICore/Components/AllElementsView.swift:255\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":"Core/PeekabooUICore/Sources/PeekabooUICore/Components/AllElementsView.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"2660f18d71dc61b79da8f0e89032dc310075836c0e9b148c1b39fd49df3317e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:104-115 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/InspectorPreset.swift:47-58 \u2014 before extracting anything, compare \u0060Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift\u0060 and \u0060Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/InspectorPreset.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:104\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13906a87782f56cc31ba087ddd2a3cd2b31924016679bc8bb6602d33925e5e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift:1096-1106 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift:636-646 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift:664-674 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift:692-702 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift:326-336 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dbd122deb255540784089e98e2f86c988ccdd52d46346beb464b51d00c29bf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:1143-1151 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:1164-1172 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:1326-1336 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:1143\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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"061c7cc7ad13d4c3b74ebe780ffc8ffad1a5b7addcb49a5857d11b5749676003"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.swift:77-87 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.swift:106-116 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.swift:694-704 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"211493c06767fd34c8cafeb1127a9607750471f42e0be05fdfd1c5a4d500f1b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:911-921 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:947-957 | Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserBridge.swift:119-129 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:911\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda38716d72d3747196ca2199647c5e1ad693845b55f351e7ecae20d2594a4e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:56-66 | Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:107-117 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/InspectorPreset.swift:50-60 \u2014 before extracting anything, compare \u0060Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift\u0060 and \u0060Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/InspectorPreset.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:56\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":"Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"022fce4082ecfa93e7d9bbdfcb250b644fa7673f570143a4ff3913d7b01e9a35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:683-693 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:729-739 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:683\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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"829b6939ae235cf374c0eaf7f91169e9d967768bd7ed6d208dc89182278d6961"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift:775-785 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift:795-805 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0df8957136c3b5036b359806a9b929b9f581cb64a57c18111181be3eb420865"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:408-418 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLive.swift:107-117 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:408\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c12ec2f9593b86709994d0ff3b851a761e7f875e1b6bb575f02443d17884b59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Apps/CLI/Sources/PeekabooCertificationController/ControllerEvidence.swift:356-365 | Apps/CLI/Sources/PeekabooCertificationController/ControllerEvidence.swift:370-380 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCertificationController/ControllerEvidence.swift:370\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerEvidence.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88e60976ddf9ff2d9d916e05ffb95a1f239b89a5f0531ffc4380a54f8a5ef3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift:306-316 | Apps/CLI/Sources/PeekabooCertificationController/ObserverPlan.swift:138-148 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"244cd1e6e7b27fba0f94e48cc4e857d7856f32974e20a1b735f30967bf7442b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Apps/Playground/Playground/ContentView.swift:321-331 | Apps/Playground/Playground/Views/DialogFixtureView.swift:110-120 \u2014 before extracting anything, compare \u0060Apps/Playground/Playground/ContentView.swift\u0060 and \u0060Apps/Playground/Playground/Views/DialogFixtureView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 140 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/Playground/Playground/ContentView.swift:321\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Apps/Playground/Playground/ContentView.swift:319\u0060 calls \u0060Divider\u0060 and \u0060Apps/Playground/Playground/Views/DialogFixtureView.swift:108\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Playground/Playground/ContentView.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b4dade947057b34002fa0b2a5b274b7febc5eda162c88962f4ad9aee2701e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BWindow.swift:23-33 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOperator\u002BWindow.swift:155-165 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BWindow.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db6da417f9092a9a67db62f57e695904e4aadeea43b52174c0bcd4c9770a52e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BTesting.swift:289-300 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BTesting.swift:330-341 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BTesting.swift:289\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BTesting.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf62bef9b39b2e727126482c63085f0cdabaef88eaf644426be783e3909da1fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:219-229 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:272-282 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:219\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b47c77e27fbd66f51077058dc2e03270c4f937e3a748ce81c677d6de4eba45b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationTargetResolver.swift:282-292 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BWindowListing.swift:41-51 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationTargetResolver.swift:282\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationTargetResolver.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a4db2b9483f95f4c73da812b43f1725525a218dcad72b6533961b0249f54fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift:48-58 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift:634-644 \u2014 before extracting anything, compare \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift\u0060 and \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 142 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"38367ca54cdb6ae2175eb0e32cb83cf1e2228d831a289627c69e4846628ab954"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BLifecycle.swift:1228-1238 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService\u002BItems.swift:124-134 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BLifecycle.swift:1228\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BLifecycle.swift"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b39b117304a753afdfb9497a065894957e369085d6cf2288c2e8ad7aa3b48d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/FileService.swift:20-30 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/FileService.swift:78-88 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/FileService.swift:90\u0060 calls \u0060Date\u0060, \u0060addingTimeInterval\u0060, \u0060Double\u0060 and \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/FileService.swift:32\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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/FileService.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"90106f0af59da4b3e338173a3ddbfe493fbca06c270cb27f655c9f5b1f20f7f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogVerification.swift:371-381 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BPreparedActions.swift:102-112 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogVerification.swift:371\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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogVerification.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"1430543657b6b903825e5872aa8847ba0bfdf747ab15c9c68630846bb080fa5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/UIAutomationActionResultSemantics.swift:125-135 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/UIAutomationActionResultSemantics.swift:186-196 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/UIAutomationActionResultSemantics.swift:125\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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/UIAutomationActionResultSemantics.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"f037ff5b2acc7241a2de5788635321c40e9b71bca2f20d492da6a9669d22b68d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService.swift:418-428 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService.swift:445-455 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService.swift:418\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"189c531fb35c0244106b8d100f9ca57bf0f1ed7700108a164284fce967818a98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPExecutionEvidence.swift:76-86 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift:798-808 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPExecutionEvidence.swift:76\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift:809\u0060 calls \u0060object\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPExecutionEvidence.swift:87\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPExecutionEvidence.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"924c4a8d4a6b5f599b7b79df24a81d25069dcbb57c265bb9e6f94e9b2db4fbac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Server/PeekabooMCPServer.swift:77-87 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Server/PeekabooMCPServer.swift:96-106 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Server/PeekabooMCPServer.swift:77\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Server/PeekabooMCPServer.swift:75\u0060 calls \u0060makeDefaultIfConfigured\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Server/PeekabooMCPServer.swift:95\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Server/PeekabooMCPServer.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f6dc161b22a02cfb23cd5b69647aeab89c60f83efa633363645ca396eb02f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift:147-154 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SetValueTool.swift:170-180 \u2014 before extracting anything, compare \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SetValueTool.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 77 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 \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift:147\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5b517fa9a840180f109803ab516d80e72abb5f73e8c3ea8a00cf3c6f5bd484"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift:168-178 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift:212-222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift:168\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01ff554e04fdd121d6a015d8d0b740a13005a7db43307e3db1f131043149249"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValue.swift:194-204 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeJSONValue.swift:31-40 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValue.swift:194\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValue.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be5fe34bc59dda6f47a1e73a583d0e8b646a2148146b90b3980c0cf69c8c031"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValue.swift:198-208 | Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValueConversions.swift:19-29 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValue.swift:198\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValue.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"09335989565e74f23fe8f59d2a67ac8d69d6f3e97a58e64332d50f2b3bdc9202"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBootstrap.swift:25-35 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBootstrap.swift:65-75 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBootstrap.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1178e9a516dd0ed1bd7b377d9a3c784579dc379199a778c1b2023240d0802448"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:497-507 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:682-692 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift:497\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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BMenusDockDialogs.swift"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"30793ef74fafdf8cf0905df99e4026408072eaca052c6d5cdc5a427c24bb9fcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift:935-945 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift:951-961 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift:935\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ea95302182d75a10f0e662115b178079daf51dfb48fa2c7e3abd157f9a53c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationSessionClaim.swift:63-73 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.swift:23-33 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationSessionClaim.swift:63\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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationSessionClaim.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f47b2d7438e58b0580f9d6167f7e8231e57ca81bd1353fd33b341f3ecc8aba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserBridge.swift:45-55 | Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserSessions.swift:61-71 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserBridge.swift:45\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":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserBridge.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1c59e2e427b4ec6df0a3c979c23d2598bb31cf8595e2600b168c8dedadb87b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): Core/PeekabooUICore/Sources/PeekabooUICore/Presets/AnnotationPreset.swift:130-139 | Core/PeekabooUICore/Sources/PeekabooUICore/Presets/InspectorPreset.swift:144-153 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/ElementStyleProvider.swift:148-157 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/ElementStyleProvider.swift:168-177 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/AnnotationPreset.swift:67-76 | Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/InspectorPreset.swift:87-96 \u2014 before extracting anything, compare \u0060Core/PeekabooUICore/Sources/PeekabooUICore/Presets/AnnotationPreset.swift\u0060 and \u0060Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/Presets/AnnotationPreset.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooUICore/Sources/PeekabooUICore/Presets/AnnotationPreset.swift:130\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":"Core/PeekabooUICore/Sources/PeekabooUICore/Presets/AnnotationPreset.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"c769b3b198fd33005e8b0ff6bf23c3147ee5f8ba7bc75a95407889b81789cafe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:176-185 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter\u002BDialog.swift:43-52 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BKeyboardResults.swift:94-103 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BKeyboardResults.swift:134-143 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BPointerResults.swift:74-83 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:176\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3839924dbcdfa6b6c14e24a63a7938666824b0f48f19986c96524a400c0a0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift:356-365 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService\u002BCapture.swift:116-125 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationTargetResolver.swift:294-303 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BWindowListing.swift:53-62 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef87f43ea00a232324cea55dae0dc5c38032afa4e243111e38d014cffb74947"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:272-281 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:340-349 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter\u002BMenu.swift:132-141 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter\u002BWindowResults.swift:250-259 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"83287dfe6525cd848ffd9351bf88d2ccf26776a90560c310fe2af238cc6e6375"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelCapturePipeline.swift:337-346 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:1302-1311 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveScope.swift:158-167 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveScope.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 79 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 \u0060Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelCapturePipeline.swift:337\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelCapturePipeline.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c6023c9c05a1e90b63c92b523d36df96b85e18389798ffe04ea70237f8751f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift:556-565 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MCPGlobalPointerActionResult.swift:29-38 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"19222232ee26e384d49346dccaa5a5bd014acb4e18559ab84674dbcffb390077"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:806-815 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/VideoWriter.swift:405-413 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:806\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"88321627e92c533a66c43ca4bcdb1c24fc5d73887f04e371637ad4bc4f210df4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift:198-209 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationObserverSemanticPayload.swift:260-269 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift:198\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18bdb527da5de6e2850624794fb46c0c2c6a21716f268a6994d11b2c126382b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:431-440 | scripts/support/background-computer-use-probe.swift:2845-2854 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"72aa6f38e384d36e0bc4be38a501f17be5e93d5cd25801fb1a0ab66638ec927d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): Apps/Mac/Peekaboo/Core/Settings.swift:1148-1155 | Apps/Mac/Peekaboo/Core/Settings.swift:1163-1172 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Core/Settings.swift"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f1a530fbadca1df72bd37e95eee0f95b64aea40f88dbbe7534f84c3afc2f5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Apps/Mac/Peekaboo/Features/StatusBar/UnifiedActivityFeed.swift:307-316 | Apps/Mac/Peekaboo/Features/StatusBar/UnifiedActivityFeed.swift:489-498 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/Mac/Peekaboo/Features/StatusBar/UnifiedActivityFeed.swift:307\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/StatusBar/UnifiedActivityFeed.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"da50bb81a9f573f9055bffc2a6fb49e06c62cf4f8a25c8fcdafc86d98e0cc5dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:343-352 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/WindowManagementServiceProtocol.swift:317-326 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:343\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060expectedIdentity\u0060 to \u0060ApplicationProcessIdentity\u0060 in one and \u0060WindowMutationIdentity\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"145e3f4e0487e5095fa9f9f9704ec89a96a9b7b8e1bdc3d9c584a5d9644c648d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationDiagnosticsBuilder.swift:80-96 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift:953-962 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationDiagnosticsBuilder.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7e4f122ffd88ce9e63603dea622adecda939a07397e21e42efa62b42cd3dfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BLifecycle.swift:85-94 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BLifecycle.swift:110-119 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BLifecycle.swift:85\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BLifecycle.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"95af471c4ee7e5935edfccca63024c72a382049513fa59cc6ec093d9a85305d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BScreenshots.swift:28-36 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BScreenshots.swift:79-88 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BScreenshots.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5f7b6c7a4bbfe03baa02c60756cd5c92ef218c48b21232449217d2ad376c94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/DetachedApplicationInventoryWorker.swift:17-26 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionTimeoutRunner.swift:52-64 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/DetachedApplicationInventoryWorker.swift:17\u0060 it does not close everything it opens, so those exact 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/DetachedApplicationInventoryWorker.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2e3d8fff4878419c8c4caec01d9da2ea0e98386344d74a4c4e8072d44a80b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:1359-1368 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:1372-1381 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:1359\u0060 it begins part-way through the construct above it, so those exact 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"c722f756ae51a58aaf0418db014802d44f992f6ef3ac57c91439440c317e97d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift:572-581 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift:639-647 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift:572\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dcbbdebaef346be45ff78b4de4a4a016bf77a43e9a78a5d1fe12b5445a32ef5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraWindows.swift:301-310 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraWindows.swift:324-333 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraWindows.swift:301\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraWindows.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52fecc0320aea54169b482170f376369f85cd034095d611c1f804d82b978780"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift:493-502 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementActions.swift:384-393 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"772f74e94e419ec8c2313ed4aea67d7d068dc95117ba3956e26f10f1f234134a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift:519-528 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift:865-874 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"8787efbf2b0f58483b0004bb81a5af3b99d3dc3e840bcbae888b7ebcd5c5ca8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TargetedTypeInputDriver.swift:62-72 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TargetedTypeInputDriver.swift:80-89 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TargetedTypeInputDriver.swift:62\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TargetedTypeInputDriver.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"212575a0e0f4dd9715766686197f5ae95bd642c12801929d212dd8e02cd85a3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift:226-235 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BSearch.swift:29-38 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad33adffa5b4d6e8c6a85584aa68116126aad72a32949c41a4eac60a3dcb3374"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BSessionLifecycle.swift:193-202 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BSessionLifecycle.swift:219-228 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BSessionLifecycle.swift:193\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BSessionLifecycle.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"779e7fcb91591131d9b4f8c12ca5a6b93cc42504d8a6f3fa3b010641753ed5b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AnalyzeTool.swift:215-228 | Core/PeekabooCore/Sources/PeekabooAutomation/Utils/AIProviderParser.swift:38-51 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Core/PeekabooCore/Sources/PeekabooAutomation/Utils/AIProviderParser.swift:37\u0060 calls \u0060lowercased\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AnalyzeTool.swift:214\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AnalyzeTool.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd764ba102112ca9c2ca7ef52c0a13e365e271d0028833e79d1e27542785573"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool.swift:41-50 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MoveTool.swift:43-52 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool.swift:41\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce264d652e02022519f48506db0284913e7e87c72612ff6b4aea8db9c282a39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool\u002BTypes.swift:19-28 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SeeTool\u002BTypes.swift:29-38 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool\u002BTypes.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6ed87bfaae9beecbd7316bd33b592aa5472651011249608e1fa84c30475572"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MCPAgentTool.swift:111-119 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MCPAgentTool.swift:409-418 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MCPAgentTool.swift:409\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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MCPAgentTool.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e271fec2f6e956a9e662a4d55fd06182523265b698b9032035a9239dec6a359"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BBrowser.swift:127-136 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BBrowser.swift:154-163 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BBrowser.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ea8d044b7a4c823bd2c5033ffed558e805a401ea2b9c221ba1d027afaaa453"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift:594-602 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift:605-614 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21da56576cf96c545e89071319fd0182087d8332ceb5c3d3b5f1013a7021bf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeResponse\u002BCaptureDiagnostics.swift:13-22 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeResponse\u002BCaptureDiagnostics.swift:41-50 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeResponse\u002BCaptureDiagnostics.swift:13\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeResponse\u002BCaptureDiagnostics.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4237b33b9c697309d6a513d234f1dff61d979285e5c6d75a684be95869a08c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift:652-661 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift:908-917 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift:652\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b876afd2ea89778204f4b731eaabbdaa0ce9d75cfd3b94933f63415a86cfc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:446-455 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:466-475 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:446\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"c450a1cf925b9d5310dda40ed78598e204ea55df4838599e842462b7419275d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift:344-352 | Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:522-530 | Apps/CLI/Sources/PeekabooCertificationController/PrivateArtifacts.swift:256-264 | Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/CredentialFile.swift:126-134 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgePrivateReceiptArchive.swift:88-96 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift:344\u0060 it does not close everything it opens, so those exact 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":"Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a583df004027a3fd84ca15f6070c97437c0ae6f51a5580dbd8b3fdbdceb339e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20139 lines \u00D7 5): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:118-126 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:204-212 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:402-410 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:470-476 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:477-479 \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. 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18389b1f683cddab21ca002ee7cfa03f41748a7dcd5368ee39fc6fc6be9e6c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:481-489 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:496-504 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:527-535 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:481\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c80d2ec74dbe7525916827bb7f2a992d7a80acd65b9c6b9c236b1c3692af7da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:277-285 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:345-353 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ElementToolFormatter.swift:393-400 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:277\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2bb91d012a1918c53911c18a880eff509fde71d9eb87da110858681464b30f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand\u002BBackgroundTextResult.swift:32-40 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift:980-988 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand\u002BBackgroundTextResult.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d52044a3d41df7deb8b6ed04260c24093ce6d1f24d2bf63c3b826e701550e5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/SelectTextCommand.swift:46-54 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SelectTextTool.swift:85-90 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/SelectTextCommand.swift:46\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/SelectTextCommand.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba351479659d9270fffa2defb23418022e5a162763f34957676fb4f3bd715def"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/TypeCommand.swift:454-461 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/TypeTool.swift:450-458 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/TypeTool.swift:450\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/TypeCommand.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2381f7315ab0dc9c4b42127be4cf054cd7a25879f3e9a9d3616394baef4348e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20139 lines \u00D7 2): Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift:470-474 | Apps/CLI/Sources/PeekabooCertificationController/HeldPointerPlan.swift:200-208 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCertificationController/HeldPointerPlan.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060Apps/CLI/Sources/PeekabooCertificationController/HeldPointerPlan.swift:200\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"868c7cc61bedb87fba21ed2a11e5b13d900af1c511e58cf199b3d5c94d786747"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Apps/CLI/Sources/PeekabooCertificationController/HeldPointerRunner.swift:435-443 | Apps/CLI/Sources/PeekabooCertificationController/HeldPointerRunner.swift:444-452 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/HeldPointerRunner.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9bba0bd3e6bf9ea44b6d7f5612e37421ecbde56a97765032fe8659003d75703"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Apps/Mac/Peekaboo/Features/Settings/AddCustomProviderView.swift:566-574 | Apps/Mac/Peekaboo/Features/Settings/AddCustomProviderView.swift:710-718 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Settings/AddCustomProviderView.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06d7f4107f52d7c28d297fcffc55f957db62e1a354f133546c7d97d516ecc42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BSupport.swift:85-93 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift:200-208 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BSupport.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"9539a7bd63209db277be43b3cad656447ddb9f29173334eb9f8a46303cefc6f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraAccessibility.swift:56-64 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraAccessibility.swift:121-129 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraAccessibility.swift:56\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraAccessibility.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3817ea98d9725abe52df8a5c0513145558feaafbe2fcbd5181c348ac1afb55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:543-551 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:577-585 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:543\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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"007ec665dee1446d4567325de4b7e61447c5e56d881365efa9df1f5e6928123f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift:522-530 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift:625-633 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e662ab03ee62fca97be63f0a1c71be40e301b7aaa963d91fb85a0434965b919"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BFocus.swift:28-36 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BFocus.swift:40-48 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BFocus.swift:28\u0060 it begins part-way through the construct above it, so those exact 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BFocus.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd8cc9e8f189945f6f5950faf2d5a046e596332741b19ec496364e63bae50f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift:49-63 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift:147-161 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift:49\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift:49\u0060 is reached only past a guard at line 12 that tests \u0060request.newInstance\u0060 and leaves the function early, and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift:147\u0060 reads \u0060request.newInstance\u0060 with no such check. What separates these copies is not which lines they run but which PRECONDITION they enforce, so one of them is operating on state the other one refuses. Decide which is intended BEFORE unifying them \u2014 extract the shared part and whichever copy is missing the check keeps running unchecked, and if the guard is the correct behaviour then that hole is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b608cfa73641d32e9b0c0eaffff707549560d54342e108273cfa2659cc1255"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift:246-254 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift:818-826 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"073c0d5da61000ea99ebf5ca0563b113fc293fe13967fd574fa8296ecc27f0dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift:180-188 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift:241-249 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift:180\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d745560cb8274c4dc16f56ccaafa24c884cb1bce5d85839417aa8ba0306091f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift:273-281 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift:305-313 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift:273\u0060 it begins part-way through the construct above it, so those exact 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b607ca9aa7ee78d3e835d117858f2f84cbd9b2f352fcf6c4d8469e4d10b9e54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ImageTool\u002BCapture.swift:171-179 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ImageTool\u002BCapture.swift:204-212 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ImageTool\u002BCapture.swift:171\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ImageTool\u002BCapture.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0373c194503f7e788c9db03a55cb83deb926081488093b7f912b0a16732729c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:197-205 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:241-249 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:197\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"5946a6816900083233813ff8bbb3e355b0e09c383dd0f6805df6b1f0dba93bf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValue.swift:162-170 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeJSONValue.swift:12-19 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValue.swift:162\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Utils/TypedValue.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5c0fa24ef8609f4d6454d83face53b6542404975fb4e9cfc1176e5015f30b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:46-54 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:270-278 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:268\u0060 calls \u0060decode\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:44\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8863cd42fd5ba0593bf656f7abe1ac61774c0895e49ad430b7252e847b0f253"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:44-53 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeProcessGenerationObservationModels.swift:19-28 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:54\u0060 calls \u0060decode\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeProcessGenerationObservationModels.swift:29\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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"255211daaafe50d6777bc386c4f6c2d35237e9b3913acbecbb86744fc64844ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift:841-849 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift:851-859 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cb99f4557800d8e83ad5541e11c46bbbc7d3ab9ea91416a33820e40e63544b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooEmbeddedBridgeRuntime.swift:162-169 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooEmbeddedBridgeRuntime.swift:190-198 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooEmbeddedBridgeRuntime.swift:190\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooEmbeddedBridgeRuntime.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"9146432987b932e76f82159b515d4b9e3c7b47b78b2123845603fc0dede98c83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/MoveCommand\u002BCommanderMetadata.swift:94-104 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand\u002BCommanderMetadata.swift:34-48 | Apps/CLI/Sources/PeekabooCLI/Commands/MCP/MCPCommand\u002BCommanderMetadata.swift:19-34 | Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift:81-96 | Apps/CLI/Sources/PeekabooCLI/Commands/System/DialogCommand\u002BCommanderMetadata.swift:32-39 | Apps/CLI/Sources/PeekabooCLI/Commands/System/DialogCommand\u002BCommanderMetadata.swift:63-77 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/MoveCommand\u002BCommanderMetadata.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand\u002BCommanderMetadata.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/MoveCommand\u002BCommanderMetadata.swift:94\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/MoveCommand\u002BCommanderMetadata.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3177c9957a01d88c279329ccde55df15ae8c38d0ff03fd2c644b24d6049b8b34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20138 lines \u00D7 3): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:1398-1405 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveBindings.swift:42-49 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BVideo.swift:268-270 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:1398\u0060 calls \u0060singleOption\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BVideo.swift:268\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b4a5b4ab32daad7f7600acb496f20bb5a2626a922ce140d64269ea8e7eb268"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift:480-493 | Apps/CLI/Sources/PeekabooCertificationController/HeldPointerPlan.swift:218-231 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCertificationController/HeldPointerPlan.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f2e418a3b6931560313c02423aa78adf8dc92f6839b935e244e52b10e2a54b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Apps/CLI/Sources/PeekabooCertificationController/ControllerRunner.swift:215-222 | Apps/CLI/Sources/PeekabooCertificationController/ObserveOnlyRunner.swift:164-171 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Apps/CLI/Sources/PeekabooCertificationController/ControllerRunner.swift:215\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerRunner.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"919c18edac021414ad582b68af9440fd990a05a36bbbf349f4e2260ecd6f20be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Apps/CLI/Sources/PeekabooCertificationController/ForegroundSemanticObserver.swift:115-122 | Apps/CLI/Sources/PeekabooCertificationController/LiveCertificationBridge.swift:200-207 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Apps/CLI/Sources/PeekabooCertificationController/ForegroundSemanticObserver.swift:115\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ForegroundSemanticObserver.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f231a247c7d411420cc4517d0833d0d6fd5071bc118bb6870599464196d757a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Apps/Mac/Peekaboo/Features/Main/AnimatedToolIcon.swift:21-28 | Apps/Mac/Peekaboo/Features/Main/AnimatedToolIcon.swift:57-64 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Main/AnimatedToolIcon.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"177abf2b0354211f060c2898628e28f14a42be190f7af6b8d8bceb971ba9c044"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureSession\u002BLoop.swift:202-209 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureSession\u002BLoop.swift:220-227 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureSession\u002BLoop.swift:202\u0060 it begins part-way through the construct above it, so those exact 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureSession\u002BLoop.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c5b4c174a16c7c34cd1f4c26332b1a8a3cca59c8fe064a5eeb59d6a3ee9b6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift:572-579 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeJSONValue.swift:36-43 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift:572\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeJSONValue.swift:35\u0060 calls \u0060encodeNil\u0060 and \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift:571\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"131e158cf6dc38f2c097780d7dd2b47a9da3e8076af229665f2acf5498224893"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift:136-141 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager.swift:213-220 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift:136\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14ab3fef43611d6307a33918f6f2613d978f7ef8adb1cd5b99c3d36f4cb1b67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:722-731 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:758-767 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:722\u0060 it does not close everything it opens, so those exact 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"64cf858ee56476c8c572217ea8d0c2c137fe4d4d4eb62bff5393fe8614ba5658"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/GestureService.swift:32-39 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/GestureService.swift:96-103 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/GestureService.swift:32\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/GestureService.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"067a1944968394f1608832e06f02069b153edce6487c128d4d61143a1212101e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BActions.swift:44-51 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BActions.swift:87-94 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BActions.swift:44\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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BActions.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87dda64999d81e97ffe79e70adea4c0d65ed0bc0e6e02d5cb8b6f3db02694dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BModifierClick.swift:197-204 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BModifierClick.swift:230-237 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BModifierClick.swift:197\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BModifierClick.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2fd95665abbd38e016f418ecdcabbbb5be3740e9430e011fe15806289c2e0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift:42-50 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift:92-100 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift:42\u0060 it does not close everything it opens, so those exact 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ee3747baae6e8a3987d9232f0a61e8e85055860a6ccfdaab4130c5c231a10d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift:872-877 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift:949-956 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10b4b148660e8d9f29e3e14a8348e559304b383d230b9d7759618756f37fb91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BResponses.swift:65-70 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SpaceTool\u002BHandlers.swift:127-134 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BResponses.swift:65\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BResponses.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c769f278751286ba5be9873c3ad48fadfe845e2d0b6fb1b18f46d091f23b602"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift:365-372 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SpaceTool\u002BHandlers.swift:76-83 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift:365\u0060 it begins part-way through the construct above it, so those exact 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DockTool.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d24679c9a11483a160978cadf3b74563787d3193771ed975d8c1b6d59e0026"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift:289-301 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift:358-370 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift:289\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BExecution.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"6584ae915c43f13d75dd0f8b50cd6ad1e8136665eea3a4f525e70ec141ec8246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/VisionToolFormatter.swift:190-197 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter\u002BWindowResults.swift:109-116 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/VisionToolFormatter.swift:190\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/VisionToolFormatter.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75e51db02522eb869780202409da38ab9a9b1f965ac5db9cc01f723b6075947"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift:152-161 | Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift:227-236 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift:152\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060apiKey\u0060 to \u0060String) async throws -\u003E (success: Bool\u0060 in one and \u0060String) async throws -\u003E (models: [String]\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25b0c7c565c8f4bbdff689aff85b9527748498ca1dbd6f8062567c64dd96c5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift:50-57 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift:112-121 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift:112\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5b3036e8c14b872b173a00d942fee8e36d3b5718f6961d4575dc5c3396aad9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BBrowserConnect.swift:48-55 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BBrowserHandlers.swift:30-37 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BBrowserConnect.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5938c37f1ad94fe5201533ccc56e6ac9fe73c29996d77e67235a5acd93860f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserBridge.swift:140-147 | Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserSessions.swift:118-125 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserBridge.swift:140\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, 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":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserBridge.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14ef6652aff714e6b4f2ccf5a37809d8c0ef6cd0635fc61870f84982454944b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 21): Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BCommanderMetadata.swift:7-21 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BCommanderMetadata.swift:33-47 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BCommanderMetadata.swift:71-85 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:1337-1343 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BCommanderMetadata.swift:13-19 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BCommanderMetadata.swift:35-49 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift:158-164 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand\u002BCommanderMetadata.swift:7-21 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/MoveCommand\u002BCommanderMetadata.swift:72-86 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PressCommand\u002BCommanderMetadata.swift:16-30 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand\u002BCommanderMetadata.swift:7-21 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/SetValueCommand.swift:129-135 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/TypeCommand\u002BCommanderMetadata.swift:14-28 | Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserCommand.swift:386-392 | Apps/CLI/Sources/PeekabooCLI/Commands/MCP/MCPCommand\u002BCommanderMetadata.swift:7-21 | Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionTargetOptions\u002BCommanderMetadata.swift:7-21 | Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift:64-78 | Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift:224-238 | Apps/CLI/Sources/PeekabooCLI/Commands/System/DialogCommand\u002BCommanderMetadata.swift:54-60 | Apps/CLI/Sources/PeekabooCLI/Commands/System/SpaceCommand\u002BCommanderMetadata.swift:42-56 | Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowIdentificationOptions\u002BCommanderMetadata.swift:7-21 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BCommanderMetadata.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BCommanderMetadata.swift:7\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserCommand.swift:393\u0060 calls \u0060commandOption\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:1344\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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BCommanderMetadata.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"4849d09a0d42c5e9c2aadd0b8b6fb1f8755363e439a3a7f4a01a679fc4ac4795"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift:343-349 | Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:521-527 | Apps/CLI/Sources/PeekabooCertificationController/PrivateArtifacts.swift:255-261 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgePrivateReceiptArchive.swift:87-93 | scripts/support/background-computer-use-probe.swift:2436-2442 | scripts/support/background-computer-use-probe.swift:2803-2809 | scripts/support/background-computer-use-probe.swift:2989-2995 \u2014 there are 7 copies across 5 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift:343\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/support/background-computer-use-probe.swift:2433\u0060 calls \u0060open\u0060, \u0060POSIXError\u0060, \u0060POSIXErrorCode\u0060 and \u0060scripts/support/background-computer-use-probe.swift:2802\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed7710e6e42172e78625f9a72ebea088043834fd930d16bb68c42b37f168e2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationCrashInventoryPayload.swift:36-42 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationMonitorSealPayload.swift:25-31 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationObserverSemanticPayload.swift:105-111 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:117-123 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:203-209 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:401-407 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:469-475 \u2014 there are 7 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationCrashInventoryPayload.swift:36\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:124\u0060 calls \u0060decode\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationCrashInventoryPayload.swift:43\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationCrashInventoryPayload.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"1049e40a54affcc44638b3d7512aa221379ea99cefefe272148de6f16f24e418"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BReceipt.swift:390-396 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift:982-988 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/CaptureArtifactIntegrityValidator.swift:168-174 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/CaptureArtifactIntegrityValidator.swift:285-291 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift:766-772 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift:1263-1269 \u2014 there are 6 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift:765\u0060 calls \u0060lstat\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BReceipt.swift:389\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BReceipt.swift"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9176a3046b1da7e891ba2e260ac51d5a2ddd06aa48c4968a65771322316874f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelCapturePipeline.swift:337-343 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:1302-1308 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveScope.swift:158-164 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationROI.swift:14-20 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveScope.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 79 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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelCapturePipeline.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"273a9f680cdaff4a78e9dcd55d57707b1167edd2915e4b6f2d07cb3fd935cb43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverDetector.swift:114-120 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BSupport.swift:85-91 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift:200-206 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraWindows.swift:272-278 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverDetector.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a8453756b71a8badcf9658004c371ecdb022092d8b8939683e2af811716d71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift:357-364 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift:443-450 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BActionResults.swift:296-303 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift:357\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BActionResults.swift:304\u0060 calls \u0060decode\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift:365\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"c443eddb1c7cee6abfaa3c9e92a42e83f9d185ad405e5a741f045cb2e7623c5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:1361-1368 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:1374-1381 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:1384-1391 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:1371\u0060 calls \u0060deletionRangeAfterSelection\u0060 and \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:1383\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d2b228f52e29a814dc07bb484b469126ae74f5b6716d4ea77e87be096bd857"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift:494-500 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementActions.swift:385-391 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift:1114-1121 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift:494\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccdb0df093877f8b8de1478ca22717810c44b6cd2b966a1fd393012f0a2f5d54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter\u002BDialog.swift:35-41 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter\u002BDialog.swift:73-79 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BKeyboardResults.swift:36-42 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter\u002BDialog.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3448fe164156ab77ad3dc691374cc9565a92b14ebe7cb450e66cb2800436a8bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter\u002BDialog.swift:63-69 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter\u002BMenu.swift:28-34 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BKeyboardResults.swift:80-86 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter\u002BDialog.swift:63\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter\u002BDialog.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ceccc87c6c6ccb40f7f303a2e219c3b051a7c8cd2db21661cf2922641406eff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift:95-101 | Apps/Mac/Peekaboo/Core/ToolFormatterBridge.swift:75-82 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4b9e91e8015f345ee28cbd69ac4a257a055330070c31eafdd29619f8f18931"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder\u002BInteractionPermissions.swift:98-103 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift:365-371 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder\u002BInteractionPermissions.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf9ea792bafeab9de0c5d2a8031049e17414b84ead59633659b0b95daaa78ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:1320-1327 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveScope.swift:176-183 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveScope.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 79 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c32bd5fcec1ae0120151c936574ae6dfe182950fd4bfb0f25e9b74702d6ff71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:1380-1385 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveBindings.swift:26-32 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":1380}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f04cdd9f13d5f7e693e39d7fc7eb42748c3e2833bf3cae319685f62c28e34a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Apps/CLI/Sources/PeekabooCertificationController/ControllerBuildIdentity.swift:172-178 | scripts/final-qualification/integrated-cu-emitter-calibrator.swift:184-190 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerBuildIdentity.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"699473617069fd66f01d80915fbe52015f347ec426e2da0653c188b31abfe883"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift:383-389 | Apps/CLI/Sources/PeekabooCertificationController/ObserverPlan.swift:223-229 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ea0e7a9154901c6d8aeb5fac06cdfe36138cb356b64f197576ecdead1d3c36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Apps/CLI/Sources/PeekabooCertificationController/ControllerRunner.swift:133-139 | Apps/CLI/Sources/PeekabooCertificationController/ObserveOnlyRunner.swift:202-208 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Apps/CLI/Sources/PeekabooCertificationController/ControllerRunner.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1122178cba13f80d8527e5d1e75497cd7094af4de58690dd22e824ec28e9e9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Apps/CLI/Sources/PeekabooCertificationController/ControllerRunner.swift:145-151 | Apps/CLI/Sources/PeekabooCertificationController/ControllerRunner.swift:181-189 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCertificationController/ControllerRunner.swift:145\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerRunner.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54dffa0b494cb843cfaf3125b948eeffc08c80fd1fdd70814d86234d36c7312"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:115-121 | Apps/CLI/Sources/PeekabooCertificationController/MonitorAttestationRunner.swift:136-142 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:115\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"9005ce7c78bfcafca55bd8e85d8db555c1864e97966f23e272a461983e8805ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureApplicationResolver.swift:28-34 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BDiscovery.swift:504-510 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureApplicationResolver.swift:28\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureApplicationResolver.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c2db3238efcb232548b6ceaf5c368f66821b05984a1032d835a63ae763f98f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOperator\u002BWindow.swift:191-197 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOperator\u002BWindow.swift:405-412 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOperator\u002BWindow.swift:191\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOperator\u002BWindow.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4fe3b25e953e57075362350613f177d2793f243aebbb98cfc10feda2178003"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift:578-587 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardPasteTransactionGate.swift:196-202 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift:578\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9845defcbd0f07498e61a2a1867fb77a16cc86ba6a98e848cd7dc8e5df5077c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift:555-561 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeJSONValue.swift:17-23 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift:555\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"4613489e85feda85c2a4e5bec00877d7594cfb85ed4faf41edb978938f04919d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BDiscovery.swift:228-233 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BElements.swift:161-167 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BElements.swift:161\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BDiscovery.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc8ed4ae71c20ea26f9cf1d7dae4f77eb66898ca2bf3b99e8cc5af477fd2c65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift:144-150 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift:201-207 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"d820b17ab7777f01bfd70040ebe52e72e40ac4045adb9e0e951387a735d4d573"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift:407-413 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift:432-440 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift:432\u0060 it does not close everything it opens, so those exact 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"17651146b157c560f43e19cdc3f97b04d2a048d9bf062ca02e0de8b11be0348d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift:691-697 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BBrowserConnect.swift:84-90 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift:691\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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"89789f2b5c7e9318f6d4b44d21f06b01b6d0dedaa369ece6c6958dea13acfe48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool\u002BTypes.swift:35-41 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SeeTool\u002BTypes.swift:58-64 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool\u002BTypes.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d68f38a2128616c677fb4bc536ee803c8f3a5c9473940bddba66f4dd0c4576"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BPointerResults.swift:89-95 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BPointerResults.swift:115-121 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BPointerResults.swift:89\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BPointerResults.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"14017937900ad7c4cadd92fc96e6456e7bfb2bdde373562c3c727d21c14c46db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:39-45 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:262-268 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:39\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:269\u0060 calls \u0060decode\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:46\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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9cd7f8816b8a6ce6b8597f3c797110ae3079417ddb0ae379f92642d14cabf87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeRequestResponse.swift:346-352 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeRequestResponse.swift:406-412 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeRequestResponse.swift:346\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeRequestResponse.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"15905a0e6e0087107219ae08ff6f1cb28532a1aa5e4898b3a29c1c221ab23407"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:354-361 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:374-380 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift:354\u0060 it begins part-way through the construct above it, so those exact 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":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService\u002BActionOutcomes.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42f9b5755f8bfd0396336e1d52c81ef75664389a3d95916c2786b0fdfd34a03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift:344-349 | Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:522-527 | Apps/CLI/Sources/PeekabooCertificationController/PrivateArtifacts.swift:256-261 | Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/CredentialFile.swift:126-131 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgePrivateReceiptArchive.swift:88-93 | scripts/support/background-computer-use-probe.swift:2437-2442 | scripts/support/background-computer-use-probe.swift:2804-2809 | scripts/support/background-computer-use-probe.swift:2990-2995 \u2014 there are 8 copies across 6 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift:344\u0060 it does not close everything it opens, so those exact 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":"Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserHandoffReceiptStore.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1fdb6f62f52e04c36df033acbe5c888b567df0e096f9f111a58a14daff02d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelCapturePipeline.swift:337-342 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift:1302-1307 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveScope.swift:158-163 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/TypeTool.swift:450-455 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveScope.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 79 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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelCapturePipeline.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"9477abe005205f8b3fdbb1168e66178b79ad45ee81d7aa0c5fb41192d2a80e37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:212-217 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:221-226 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:230-235 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter\u002BWindowResults.swift:114-119 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:212\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf4dcadc27b4c2abe780eba1fb523d5bf3464001e16c04752fa095dc7f1c5bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Apps/CLI/Sources/PeekabooCertificationController/ControllerRunner.swift:146-151 | Apps/CLI/Sources/PeekabooCertificationController/ControllerRunner.swift:163-168 | Apps/CLI/Sources/PeekabooCertificationController/ControllerRunner.swift:182-189 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCertificationController/ControllerRunner.swift:146\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerRunner.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"8927e7777578fa849f65dea006a8b97c959eb5f242e51feeb1d51ea35893ef9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift:152-157 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift:121-126 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/TypeTool.swift:148-153 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef4f73ae02a80836cbede3406050bd016e5ef323ec71e9cbfc5bad4b1b7204b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool.swift:136-141 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool.swift:150-155 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool.swift:157-162 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool.swift:136\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce500fadb6cfe6e7dd9ca710d06b7d97b5faa94e28fb4b9b4b253f5aa141999"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BRouting.swift:109-114 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BRouting.swift:134-139 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BRouting.swift:147-152 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BRouting.swift:109\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BRouting.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b31e9d7536b3543472e157d1912b05d0b6d6bd4d1dba2fcc69e608f3f034cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/AgentExecutionReleaseGate.swift:55-60 | Apps/CLI/Sources/PeekabooCLI/AgentExecutionReleaseGate.swift:109-115 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/AgentExecutionReleaseGate.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1ec0e5a49dcfcf4a16cd47f12ddaba31c20786feafce8cfe5c7f21ae30aa75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift:157-162 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentOutputDelegate\u002BFormatting.swift:192-198 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift:157\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"3904dac4cb5cdbd730ed35f8b768848610203c9df13a0c4f80bcc49e8c91936c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift:165-170 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentOutputDelegate\u002BFormatting.swift:201-206 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatEventDelegate.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"427897874aaf036aee735e933345dd295b29724770fba943c38b858e15338d8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandHelpRenderer.swift:108-113 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandHelpRenderer.swift:157-162 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandHelpRenderer.swift:108\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandHelpRenderer.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbab76589dbca472e33c8616ef009e7b11b95315e76c57033e69781727ccc249"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BStatus.swift:38-43 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BStatus.swift:45-50 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BStatus.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a563b9fe20d5dd30699c6645e3e52edc035275cb67139012bde8fc7216fc6cee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand.swift:422-427 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/MoveCommand\u002BCommanderMetadata.swift:49-54 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/MoveCommand\u002BCommanderMetadata.swift:47\u0060 calls \u0060makeInteractionTargetOptions\u0060, \u0060flag\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand.swift:421\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d5d99344674566c33652faac4f40a004ae1cbffe28a69b181ef05632baf389"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/TypeCommand.swift:454-459 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationROI.swift:14-19 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/TypeCommand.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7966ba5832d59d4e99ce09796c0b6985a005e8434dfc91faaa1db3273e35b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift:293-298 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitProcessCapabilityRegistry.swift:286-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e748873bff36f944ecd4fa1e081c1857fbc5e077eb8a6164bf9e480b544c4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationROI.swift:149-154 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationROI.swift:310-315 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationROI.swift:149\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationROI.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f90d3e9390630a1f038deb6957cf16024b5ab82913fbc396d17e029251bf902"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/WindowSelectorResolutionProof.swift:40-46 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationIdentifierMatcher.swift:133-139 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/WindowSelectorResolutionProof.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"92866e912a31615c31fd40460f0a56023bd45a2b8d42ee9f6a11dd2145eb9938"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:733-744 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:769-780 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:733\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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b589621a4345fcd4af7c5f3241bbbc0f8a2ac2e4c9efee3dae2c27d16ece80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService.swift:70-75 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService.swift:109-114 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService.swift:70\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"63925cb78aae326cbb5d8c577997722b0abb9bd5e8b42184fc28739a4a6bdb76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BExtras.swift:351-356 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BScopedMenuExtraPreparation.swift:140-145 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BExtras.swift:351\u0060 it does not close everything it opens, so those exact 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BExtras.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"502e170cf1719411432e2743c1bdc3e93c4e2e231f47fdf6f90c39df696a5d58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift:206-211 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift:226-231 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad71e4b4da2454894fa07e854e29554f9161028aa1881afa2f95a909729a1977"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BResponses.swift:19-25 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BResponses.swift:51-57 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BResponses.swift:19\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BResponses.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b1dec22434f067f979ad50115358984977ba2516b6c18a2678ca55f0307caa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift:1323-1329 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift:1339-1345 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift:1323\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"838ccf7b570aaacaf4c29df1894e6fdef4cc4ab19e4a9225449c7eefa2c89c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool\u002BResolution.swift:63-68 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MoveTool\u002BParsing.swift:7-12 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool\u002BResolution.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec983f0677e1e89f4d70152f3a35de71003a4e5dfee6317198a0a7cbcb4b3b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool\u002BResponse.swift:77-82 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MoveTool\u002BExecution.swift:184-191 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool\u002BResponse.swift:77\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool\u002BResponse.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"1080bd8e5536cd8b5443a9124ed49f9a0635c065db5bfcd38c04a6fccd357d5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SpaceTool\u002BHandlers.swift:233-238 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SpaceTool\u002BHandlers.swift:334-339 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SpaceTool\u002BHandlers.swift:233\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SpaceTool\u002BHandlers.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"7add15c5e8a0743a15ff20e0413aa726cac19e137d0542690f1e2d43aff595b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:251-256 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:296-301 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:251\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:302\u0060 calls \u0060Coordinates\u0060, \u0060Double\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:257\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1d27ea03a5004978a3746e97e874ae136357b69b274974d4f40c375e02b8d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 3): Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift:148-153 | Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift:174-179 | Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift:226-228 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift:148\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift:182\u0060 calls \u0060setValue\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift:156\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8585398096c7b01d6dd4e50d12668f92c5cad45944b9952dd62de5f25488a88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 11): Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BCommanderMetadata.swift:4-18 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/VerifyCommand\u002BCommanderMetadata.swift:4-8 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BCommanderMetadata.swift:10-16 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand\u002BCommanderMetadata.swift:4-18 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand\u002BCommanderMetadata.swift:4-18 | Apps/CLI/Sources/PeekabooCLI/Commands/MCP/MCPCommand\u002BCommanderMetadata.swift:4-18 | Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionTargetOptions\u002BCommanderMetadata.swift:4-18 | Apps/CLI/Sources/PeekabooCLI/Commands/System/DialogCommand\u002BCommanderMetadata.swift:26-30 | Apps/CLI/Sources/PeekabooCLI/Commands/System/DialogCommand\u002BCommanderMetadata.swift:51-57 | Apps/CLI/Sources/PeekabooCLI/Commands/System/SpaceCommand\u002BCommanderMetadata.swift:39-53 | Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowIdentificationOptions\u002BCommanderMetadata.swift:4-18 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand\u002BCommanderMetadata.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/MCP/MCPCommand\u002BCommanderMetadata.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BCommanderMetadata.swift:4\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Apps/CLI/Sources/PeekabooCLI/Commands/AI/VerifyCommand\u002BCommanderMetadata.swift:8\u0060 calls \u0060commandOption\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BCommanderMetadata.swift:18\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BCommanderMetadata.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"8346c8836cda3adf1aa10215f6c807b4f7478f28a881f496c43e2e9da85d0268"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BCommanderMetadata.swift:85-89 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift:156-162 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand\u002BCommanderMetadata.swift:12-16 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PressCommand\u002BCommanderMetadata.swift:13-28 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/SetValueCommand.swift:127-133 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/TypeCommand\u002BCommanderMetadata.swift:11-26 | Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserCommand.swift:383-391 | Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift:62-76 | Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift:221-236 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BCommanderMetadata.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand\u002BCommanderMetadata.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BCommanderMetadata.swift:85\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BCommanderMetadata.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b9a1d4ef77929414de070a6ae0ff475f46a1edefcd1024ef0a40882317a025"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:172-178 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter\u002BDialog.swift:26-31 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter\u002BDialog.swift:60-65 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter\u002BMenu.swift:35-40 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/SystemToolFormatter.swift:341-347 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BKeyboardResults.swift:77-82 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BKeyboardResults.swift:87-92 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BKeyboardResults.swift:119-124 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BPointerResults.swift:207-211 \u2014 there are 9 copies across 6 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 9 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:172\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/UIAutomationToolFormatter\u002BPointerResults.swift:216\u0060 calls \u0060pointerDetailEntries\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter\u002BDialog.swift:67\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b2bec9b1057de1179c17b0219b222c7790903aeb24f5a0a29c7a33bcb4bb50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverDetector.swift:114-118 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BSupport.swift:85-89 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BWindow.swift:367-371 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift:200-204 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BMenuExtraWindows.swift:272-276 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverDetector.swift:114\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverDetector.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19080e61da0246219324ce0bff62cd7d33900256d2d442ce1026f042d6e79b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:211-216 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:220-225 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:229-234 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/VisionToolFormatter.swift:194-199 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter\u002BWindowResults.swift:113-118 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:211\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift:220\u0060 calls \u0060dictionary\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/VisionToolFormatter.swift:200\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ApplicationToolFormatter.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ead51bbe5b6ce6e3a6ba5ad535a8f8166a32c9a9f659f850690a199b109b0e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift:375-380 | Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:127-132 | Apps/CLI/Sources/PeekabooCertificationController/ObserverPlan.swift:215-220 | scripts/support/background-computer-use-probe.swift:28-33 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift:375\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9933c02b59ceef48f936c9dd919e3f18662ec94b7731308dceebc5d6900d8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonStartupGate.swift:15-19 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift:145-149 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopOperationLaneCoordinator.swift:41-45 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonStartupGate.swift:15\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonStartupGate.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"60038180b60fced2e74ce90e98829b91a4ee9d10015495267e98fb44b44cf6a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift:686-690 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift:548-555 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:1547-1554 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift:686\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"5344e14e048a833bea854f181d390744ecde201328e4681d6b0ffa2ede67b544"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift:694-698 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift:562-569 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:1559-1566 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift:694\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b9a04e8d41662474152192fbbe9effe8706c1fdeb7c67d297362f680ac07a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:110-114 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:171-175 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:283-287 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:110\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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd582cd1fe3df56929c1a9594e068ca3bed0ff76e60ca1a045aba9147c79e8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift:376-381 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BActionResults.swift:320-325 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionManifest.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec5aaadb78404b5d42db8a597d70a5404bc91723439468ce920f5b749aec52b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionProcessRunner.swift:590-594 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ShellTool.swift:229-233 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionProcessRunner.swift"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ccdc589bba5ed9f75bb85cefb3cd7d55146c47bd4e6a0da7590a96065665dd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveOptions.swift:12-18 | Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BVideo.swift:192-197 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveOptions.swift:12\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveOptions.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"6210df4caaa6e10b97fd1594b1550967dacbe49841b387b0461e480c919e0fac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverSelector.swift:59-63 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarPopoverResolver.swift:153-157 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverSelector.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b0acb8f3b8d419cbaeeef1b437cdc9531151a6a8cd22b0dd325be0fad7fa58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/CGS/MenuBarCGSBridge.swift:87-91 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/CGS/MenuBarCGSBridge.swift:134-138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/CGS/MenuBarCGSBridge.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"24733f12b4a50de6ac1a52c42f50754b7edbe07e11955be16bfcf53b41825d98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogFilename.swift:79-83 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogNavigation.swift:255-259 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogFilename.swift:79\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogFilename.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad91fd67a208aa8dcaf7bd6f190b7419de51e9e123c145a3e5bae081cc72b93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionWindowResolver.swift:375-379 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionWindowResolver.swift:383-387 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionWindowResolver.swift:383\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionWindowResolver.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"104c1fcadbd3e6e653c3c50c4c1839f2e83de4e67045f9c9815029645515f7c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BActions.swift:66-71 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BActions.swift:121-126 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BActions.swift:66\u0060 it does not close everything it opens, so those exact 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BActions.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d76e29096b25a26506507325fd3668e42cc6bd2189ec4108e7f89fd33710b64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolArgumentValidation.swift:134-139 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolArgumentValidation.swift:176-181 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolArgumentValidation.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6a80dc68194311e9c601085f433e7a165f6622fc97d90d9f8650fe209d77e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift:872-876 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift:1066-1070 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8feedc5906fd1b0f1da9ec6960372dc045003a99dfda13385fdd2cd74801e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPHandoff.swift:41-45 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:1204-1208 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPHandoff.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae088145b6578aea09565163c85090c6d84469c5261bb9eb5f2f305882a08c78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift:298-303 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift:318-323 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift:298\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AppTool\u002BLifecycle.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"3389c29f003f32ae82107e8d8b1405b6274a69c6fc42094bf1bdbfff3f5737d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 3): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/CaptureCoordinateContextMetadata.swift:61-65 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ObservationDiagnosticsMetadata.swift:100-104 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:307-309 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/CaptureCoordinateContextMetadata.swift:61\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/CaptureCoordinateContextMetadata.swift:67\u0060 calls \u0060sizeValue\u0060, \u0060object\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/WindowTool\u002BHandlers.swift:309\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/CaptureCoordinateContextMetadata.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b30f0d86f421b598fa0af30edbb4b91fc40ccd4c2a98ab6e9be13f48852e87d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift:530-534 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MoveTool\u002BExecution.swift:143-147 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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 \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift:530\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"362c9cc14478bc6798e8d7511a77bd97ab39f4bc904d1b1b62c2143bac18cdf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ElementToolFormatter.swift:95-99 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ElementToolFormatter.swift:309-313 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ElementToolFormatter.swift:315\u0060 calls \u0060focusedAppName\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ElementToolFormatter.swift:100\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/ElementToolFormatter.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"36462183e9db847f23fe154b72081abbb8faef7a7f9a159b91676130e7a71303"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter.swift:37-41 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter.swift:27-31 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/MenuSystemToolFormatter.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fda321e9a879f4345c33e891320acaa405729bc728e7a293f906021caa80a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter\u002BSpaceResults.swift:8-12 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter\u002BWindowResults.swift:137-141 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter\u002BSpaceResults.swift:8\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/Formatters/WindowToolFormatter\u002BSpaceResults.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7974d220edeeee456696dd38f52e7e577cb475994ae78179c5fe9016ba2e1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift:762-768 | scripts/final-qualification/integrated-cu-emitter-calibrator.swift:285-289 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f87ef7ef5eeedd8ff16bd6054be978bb35a13df1ff12520311502d8ef81e376"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:57-62 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationAttestationModels.swift:46-51 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ab590e4834008d000829784f269097c05479ac09d5ae802dbf4800e044557e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHostIdentity.swift:88-96 | scripts/support/background-computer-use-probe.swift:2311-2315 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHostIdentity.swift:88\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHostIdentity.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c74dfd94ea2b3e15b66c0dc1f693885a8ff1931163ed298bc582a17d1aba415"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Apps/CLI/Sources/PeekabooCLI/CLI/CommanderBridge.swift:196-203 | Apps/CLI/Sources/PeekabooCLI/CLI/Completions/CompletionModel.swift:279-286 | Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandSignature\u002BPeekabooRuntime.swift:46-53 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/CLI/CommanderBridge.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"c869557ed547f137c67652c1b637f04b95e6324183034cab7252a58ea4027752"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BObservationRequest.swift:196-204 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelObservationRequest.swift:86-94 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BObservationRequest.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"032ac329ac0bf0e1b138e646d5812e3d8cbf5c844785b0631d003e2a2d5c3795"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift:68-73 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/SetValueCommand.swift:66-71 \u2014 before extracting anything, compare \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/SetValueCommand.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 89 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f547dbb6ce6f4b7961cba313d1cb6da8fca99719fd074f85818088e3be2ba8b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift:105-120 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/SelectTextCommand.swift:97-112 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ActionCommand.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0865fba3648a47c8c14e8272f9f0184643d74bf8205a419f8fd38fe08b5ee5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift:795-801 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardService.swift:728-734 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd69c7b10355da5d3794fa562ec354a2a556ddde534d6ded2222ac64424bcd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PressCommand.swift:395-402 | Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/TypeCommand.swift:608-615 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PressCommand.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ce4d32fcd4189011d31c21fe98e36a4d38243b917972d38d5a011d1c17063b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PressCommand.swift:406-410 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift:529-533 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PressCommand.swift"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"02306c416553f81086e4b18c2a2c4fc90cdf111283cacd5de400c0203d197af4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionCoordinateResolver.swift:465-470 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/VerifyStateTool\u002BTypes.swift:395-400 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionCoordinateResolver.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"27258f7cc6ec06e82bb5ba1ead2ea7b89398d2ee80113a25383e34ce8adfd74f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionTargetOptions.swift:35-43 | Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand\u002BSupport.swift:46-54 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionTargetOptions.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a6d9c79e064f2425f7eb7119cab4143f082886fe7125f96aa4ebc13723cca7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Apps/CLI/Sources/PeekabooCertificationController/CodeIdentityRunner.swift:111-115 | Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift:109-113 | Apps/CLI/Sources/PeekabooCertificationController/ObserverPlan.swift:202-206 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/CodeIdentityRunner.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9cd451a1022f62c337d612dd1b106792b28585db1e6ad8378d9d0ad7b97888b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Apps/CLI/Sources/PeekabooCertificationController/CodeIdentityRunner.swift:117-121 | Apps/CLI/Sources/PeekabooCertificationController/ObserverPlan.swift:235-239 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/CodeIdentityRunner.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ffa63b6c40ea722d2443ed8e8c180c80779385fea423fa5daa564e594484227"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift:356-360 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:573-577 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e478abec650abf3ddbb806923a30d6c9c1a57665589f51679b26006f27d8bd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Apps/Mac/Peekaboo/Features/Main/MessageComponents/DetailedMessageRow.swift:208-214 | Apps/Mac/Peekaboo/Features/Main/MessageComponents/DetailedMessageRow.swift:227-233 | Apps/Mac/Peekaboo/Features/StatusBar/UnifiedActivityFeed.swift:514-520 | Apps/Mac/Peekaboo/Features/StatusBar/UnifiedActivityFeed.swift:538-544 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Main/MessageComponents/DetailedMessageRow.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7eb0c852dc950a8abfa442de82b5eaf1718fcd05ee5af888921feb2e3dca17c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService.swift:164-169 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteScreenCaptureService.swift:32-37 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5455be94e3f9bf1977516faf4b139652674f0a0202cf97fda10f38b65b4512"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarPopoverOCRSelector.swift:147-151 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarPopoverResolver.swift:200-204 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarPopoverOCRSelector.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"421e51a370829f4d89da21df7433d61ec888475847d74f84bef00bdf29e45576"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarPopoverResolver.swift:238-243 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarWindowCatalog.swift:235-240 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarPopoverResolver.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8515a701006d40816381ff4fe1e81139ee0361591c2a82425b712bd38df36e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BLifecycle.swift:141-149 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager.swift:244-252 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteSnapshotManager.swift:97-105 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BLifecycle.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b29e69ee8464b2d1a82447448e214d90779789dd4ddb73800cd976ce771b8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/WindowTrackerService.swift:14-26 | Core/PeekabooCore/Sources/PeekabooBridge/DaemonModels.swift:85-97 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/WindowTrackerService.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3fa080046b646395bfb53bd434834a2442dda750d1cd0f635a6c68aa1ef82a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ChromeProcessCodeSignatureValidator.swift:149-153 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.swift:398-402 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ChromeProcessCodeSignatureValidator.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"587a2b0fb25531396e6f6e6beb3c85375811dc155d09008c5ed25b7fb8728742"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AXDescriptorReader.swift:389-394 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift:945-950 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AXDescriptorReader.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"5982b73111ffd71f88ddf9eb7a97118f9326db203af914677285a6d8a9a195f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift:912-918 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/HotkeyService.swift:679-686 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11266bf1a0804ddf4cef853431e5ccc076211019eabf23aaa246a958a29abdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/CGS/MenuBarCGSBridge.swift:18-30 | Helpers/MenuBarHelper/main.swift:20-31 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/CGS/MenuBarCGSBridge.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ea73796aebce40cdda5605a88bfb7892c6e94ed9c468df17b514f1f23802c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementActions.swift:91-100 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:106-112 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementActions.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fee721cbf0edf8f5dc975bdf77d9f55dfb1a951ff77ae70a88c2182af3ed84d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementActions.swift:210-219 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:114-121 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementActions.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21a33b93cf7d0cd1c6fb088bf4b87c262af1fd4d89a67c89107bde7403abebc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift:148-159 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:173-184 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"2062c0544647f57ec628947f7cfd184d9c2f93f5b165fc027c538d9b35f43bb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift:188-199 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:186-197 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift:185\u0060 calls \u0060UIAutomationActionResult\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:183\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"50db820a96790ba05b3b97034160cfd2fcbf0b709566bb458db67e3d12cff7b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift:201-214 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:199-212 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"07603fd663872bcd6203e3978cffae3cae7e24ef632f58c123c9a4b243ed0520"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift:264-277 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:214-227 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db98fd9ac47c227010cc90fee70173557dbb80b1833f9a56279abaf91a44543"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift:279-292 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:229-242 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BOperations.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"1129bff571c5643b81c5f654e33003a55b53f2f26ea4ff82862fcefce1d5a047"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BPointerKeyboardOperations.swift:117-122 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:131-136 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BPointerKeyboardOperations.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"09699d4e76372564a7b56137f5264618e6c39b51005b7dc8e996c1e87c13b617"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BPointerKeyboardOperations.swift:141-150 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:138-147 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BPointerKeyboardOperations.swift:137\u0060 calls \u0060visualizeHotkey\u0060, \u0060UIAutomationActionResult\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:135\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BPointerKeyboardOperations.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"484a00236798351f0fff86bd7d3bbdc7272b6eacb646a3fc2fc9eaa54b8afb75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BPointerKeyboardOperations.swift:176-187 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:149-160 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BPointerKeyboardOperations.swift:173\u0060 calls \u0060UIAutomationActionResult\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:146\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BPointerKeyboardOperations.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a7f53052cedf60cbe7c58d42581d0607adb8e2720c753c7160427e2a23074a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BPointerKeyboardOperations.swift:201-210 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:162-171 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BPointerKeyboardOperations.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f2f87bd5c1d525b25ce539d7b36438917416d8fa66e8b3eb9b06f9abb8f43b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift:90-103 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:12-25 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9f56ff6a2f60120e3480b00505a9ce90a50a1040f021743b688b549d2648b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift:135-144 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:27-33 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ea1fd88d94b25d5424afb6b07af657979394b780c19bac75f630d05b861d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift:249-260 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:63-74 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac07a29ad951829f4e27edd26ab4c4a38d0515da0ae33a4608ac8161736f2a1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift:307-318 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:93-104 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f1bc821beb696416f6bb1dd56fc9eb890a235eaaf0bf1677c368c653f4f75e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift:346-357 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BInteraction.swift:35-46 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7db60128f59b6684895b4ecf39bba73cee174e02cd5f54112e6f969076d007e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementActionOutcome.swift:163-168 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/SpaceWindowMutationDispatcher.swift:307-312 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPBatchMutationProjection.swift:152-157 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift:1139-1144 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift:1388-1393 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementActionOutcome.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f85d3d49e1daec624e8921e177c9e23cc6aae0205e1ec9adf50c3c55cf76eef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift:15-24 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:95-104 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift:176-185 \u2014 before extracting anything, compare \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4396a6a2060f1b12d80788e23f14483cb33a03df116c1582adda91e493ce315"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift:26-35 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:106-115 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift:187-196 \u2014 before extracting anything, compare \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a92782c0f00fbdd542ab5f9a4535a29991e86014e50a5cf55fbdf6361a686cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift:65-74 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:134-143 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift:219-228 \u2014 before extracting anything, compare \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"61034fc01f5e23368d99c7f3d6fe8c3a80a83898edadf3e09f2afca80492ac06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift:76-85 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:145-154 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift:230-239 \u2014 before extracting anything, compare \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f141c4990be27db08d1cf01460fae0e8d56a2d42ac22efeabe7a02296f21882"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift:115-124 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:176-185 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift:262-271 \u2014 before extracting anything, compare \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0f72a844aca38c48be0457ca8f02b6d958ac579d55ad6e68a595efd9604484"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift:126-135 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:187-196 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift:273-282 \u2014 before extracting anything, compare \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BGeometryOperations.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"664711639b0d1e7502089bd6ce8e6ec4cfa41d2827369776f202c32e3e8e0bda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift:537-541 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:1568-1572 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e00decbaea13c7b28de14e994948cbd625f8d54540535b9d367c3a28c19f44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:33-41 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:234-242 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift:64-72 \u2014 before extracting anything, compare \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4cc1f80c223329afd1e8fc71c6dcf4d5dfada7cd79b83239dbee2ad16d61fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:102-107 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:271-276 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift:102-107 \u2014 before extracting anything, compare \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"249e24be82af83a672683430384c57442b4c122d0cbd06f0cfb08cf1962dd6cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:163-168 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:298-303 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift:127-132 \u2014 before extracting anything, compare \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e63dd3c2a2e5e0701741af6b75ad25a3ff41847883a8c72b36368d1d2a37a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift:275-280 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift:324-329 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift:152-157 \u2014 before extracting anything, compare \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BWindowsApplications.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a76868e6a70f32b2f29e52f73e23afb9069cbbeb015d57a02486b2819de88a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift:184-192 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SetValueTool.swift:237-245 \u2014 before extracting anything, compare \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SetValueTool.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 77 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c7faa10ed71dfb436bf05022ed416ea7702e6558d851f6983a804d5be70756"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool\u002BTypes.swift:68-73 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SeeTool\u002BTypes.swift:170-175 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool\u002BTypes.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72288624ed906605c35069c3644522540d73ec43510592af69e69fb969d4863"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SeeTool.swift:339-343 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDesktopObservationService.swift:461-465 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SeeTool.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4296a1fcbf7169dd82ae570a005ce7d218d7aa095bb26c6beb78e69b5bc6a9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift:800-804 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceipts.swift:69-73 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"0361bb7c01778e765abb5d583495f018852af6eb85d0e14d44b6ddd6d4e26159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCaptureBinding.swift:213-217 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift:928-932 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCaptureBinding.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf93c98288c5842992eccb6bf3681f7f9c24a3fd6301f9fe3e461f88b55f700"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand\u002BValidation.swift:134-139 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift:1111-1116 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/TypeTool.swift:227-232 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand\u002BValidation.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f99b9ca00eb0f2d1bbd3a33f6f358d8ed47c43482c0863e9726f4518fb783c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverDetector.swift:106-110 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarPopoverResolver.swift:165-173 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060screen\u0060 to \u0060ScreenBounds\u0060 in one and \u0060ScreenInfo\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverDetector.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4dc03135c60eed34151169554e480cfcda78e3ee75b5f11b99ec96685320e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverDetector.swift:124-128 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationMenuBarPopoverResolver.swift:194-198 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarPopoverDetector.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"6087b0a4697c5cd2004a2ce5468cad7d6dc560d346f293e30998cfcfd57691d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift:152-159 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/MenuServiceProtocol.swift:180-190 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20a4c385217ade4e2a3474197622a391deac654fab19909927dab38cd7ba9d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift:190-194 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeProcessGenerationObservationModels.swift:70-74 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ApplicationServiceProtocol.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"da423c5b85ed6cbd49cd108db92240d04673dacd91422a5d5586b1daa5e7cd7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BActionOutcomes.swift:308-312 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BTraversal.swift:136-140 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BActionOutcomes.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad466bb42d733de48634c657ed59499395f81f4670788de357035824dcae3f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService\u002BSupport.swift:24-35 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuService\u002BExtras.swift:556-567 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService\u002BSupport.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"992e3b0c473636b9fbf19278f72118594ef516fc8c0197f1f96b239ab7513ebc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/SnapshotMutationRecordingManager.swift:186-193 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteSnapshotManager.swift:190-194 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/SnapshotMutationRecordingManager.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15d52049b29fe5107247e495e2b3984f3ce78459eb56752d7d524b396aafc4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift:777-786 | Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteBrowserMCPClient.swift:302-311 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPService.swift"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc44794c858936be78baeb1c0b060e3f712f37c059b2856289dd717712b2acaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift:122-127 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SetValueTool.swift:134-139 \u2014 before extracting anything, compare \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SetValueTool.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 77 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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"170ab0e95762040dce5e0d53cfc55aa6a0bdb610c86c153d8562fdb38df51997"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift:1322-1332 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:574-584 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:586-596 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:598-608 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift:670-680 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01f35de066fd2629ba8d878ba5a339ca4842fb341dd88e056cbcfe5e0feff49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/CLI/Completions/BashCompletionRenderer.swift:155-159 | Apps/CLI/Sources/PeekabooCLI/CLI/Completions/ZshCompletionRenderer.swift:162-166 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/CLI/Completions/BashCompletionRenderer.swift:155\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/CLI/Completions/BashCompletionRenderer.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"d248fbe6a0570770213929973e748ba9b2e77b7962dfb232629539cfdcd72c1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/CLI/Completions/FishCompletionRenderer.swift:185-190 | Apps/CLI/Sources/PeekabooCLI/CLI/Completions/ZshCompletionRenderer.swift:191-196 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/CLI/Completions/FishCompletionRenderer.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc7da8ea42957fed73e3fe6aa196eff7b3979f953dcf9b157e55a7ff965a18c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatUI.swift:167-173 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatUI.swift:187-193 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentChatUI.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"942e3bc3c35f870b0fe76ec2d937c06f41a08d0107ef6f66f70da1b5685a9795"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentOutputDelegate.swift:286-290 | Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentOutputDelegate.swift:307-311 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentOutputDelegate.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"6abd4ccaf356ae3face5d010ff8df3fe08a2f32cf41f97f91872dedae654f4f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand.swift:378-382 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ScrollTool.swift:138-142 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f84ea21269529da54161ec8c1ad06cf18fd1633e46923458d30bc6f1b634d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand\u002BCommanderMetadata.swift:45-49 | Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand\u002BCommanderMetadata.swift:69-73 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand\u002BCommanderMetadata.swift:45\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand\u002BCommanderMetadata.swift:74\u0060 calls \u0060commandOption\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand\u002BCommanderMetadata.swift:50\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand\u002BCommanderMetadata.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"758e8754cc77a0f157cdd085e12895e7439a6d81f21cbfa9b25fab1d0a54d35e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Apps/CLI/Sources/PeekabooCertificationController/ControllerBuildIdentity.swift:164-169 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitProcessCapabilityRegistry.swift:533-538 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerBuildIdentity.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e15d81f3bc14ab2169f6953c3a8e7c435ad58615afb85972c6712f0ea7de1ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BTesting.swift:313-317 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BTesting.swift:354-358 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BTesting.swift:313\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BTesting.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"58738b2d9c98f6102cd4a6e6bc1a54104ab6708f888d7a68c0a77d93266c4f24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift:117-121 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift:133-137 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e686960e2cba1a604a92dba03755cf2362096b6694f82efc5aeadb3d86ea1406"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolArgumentValidation.swift:110-114 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolArgumentValidation.swift:155-159 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolArgumentValidation.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6706896830e9123c263384b246889bb8c9ae223fd2a4dcbe18aacd8078daa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift:1238-1242 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift:1249-1253 | Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift:1270-1274 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift"},"region":{"startLine":1238}}}],"partialFingerprints":{"codehealthFindingId/v1":"021f7d42fcc616215f4c27882010ca5d41cf7e1124f8f93c0df4bdbfb925e664"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:137-142 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:489-494 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift:137\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"57800f804679b917311d94126356d8077c6de27863ee79e43a7508902c5eed12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeProcessGenerationObservationModels.swift:63-67 | Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeProcessGenerationObservationModels.swift:125-129 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeProcessGenerationObservationModels.swift:63\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeProcessGenerationObservationModels.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e35e0b2d84430cf2c8717adbb94109b2a4c6567aafb6ddea42f74238e4fcd4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 21 shared lines): scripts/support/background-computer-use-probe.swift:5293-5322 | scripts/support/background-computer-use-probe.swift:5324-5357 | scripts/support/background-computer-use-probe.swift:5359-5388 | scripts/support/background-computer-use-probe.swift:5390-5422 | scripts/support/background-computer-use-probe.swift:5424-5458 \u2014 These 5 members are variants of one another: a block of 21 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":5293}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe42ca54ad7c9afbb7b120c640a01ab8dd82231d787997740c4a682c9a741d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 14 shared lines): scripts/support/background-computer-use-probe.swift:4906-4946 | scripts/support/background-computer-use-probe.swift:5324-5357 | scripts/support/background-computer-use-probe.swift:5359-5388 | scripts/support/background-computer-use-probe.swift:5390-5422 | scripts/support/background-computer-use-probe.swift:5424-5458 \u2014 These 5 members are variants of one another: a block of 14 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":4906}}}],"partialFingerprints":{"codehealthFindingId/v1":"098779b5fd4557fa7a2a17551fd45b763c1b794e08fbba294f22b401eb93ba06"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): scripts/support/background-computer-use-probe.swift:5692-5734 | scripts/support/background-computer-use-probe.swift:5791-6067 | scripts/support/background-computer-use-probe.swift:6069-6133 | scripts/support/background-computer-use-probe.swift:6183-6223 | scripts/support/background-computer-use-probe.swift:6225-6280 | scripts/support/background-computer-use-probe.swift:6282-6502 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":5692}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77715648f814e5e86a7f1ae0ab67abe1e03f119134f954748a10bfa4046b0ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): scripts/support/background-computer-use-probe.swift:3865-3926 | scripts/support/background-computer-use-probe.swift:3928-3957 | scripts/support/background-computer-use-probe.swift:4010-4033 | scripts/support/background-computer-use-probe.swift:4066-4090 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":3865}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b5052a645f5f3cef53dcfa7f5f9c6b85259a0e403da73b14dc4f79eaa2b7c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): scripts/support/background-computer-use-probe.swift:5195-5240 | scripts/support/background-computer-use-probe.swift:5242-5291 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":5195}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d69735387a95c943f2b5fdb5427886631d9e2600a1ae184aca90bd2e45fddc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): scripts/support/background-computer-use-probe.swift:4185-4215 | scripts/support/background-computer-use-probe.swift:5595-5619 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":4185}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2d5c012f8907d9e7436a5f70e6957df0faa1882726b33f4410f0bfc61a615a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): scripts/support/background-computer-use-probe.swift:135-160 | scripts/support/background-computer-use-probe.swift:162-187 \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":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aad80eb281f9b98b79496efcefd3aab9f7bccc2661e146c080f5837a4e06c63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift:227-251 | Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ScriptedBridgePeer.swift:240-264 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9172921fab1304b87e7c193fdc91f2eb9b5598a9070d50da4dd9fedea22231"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift:193-214 | Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ScriptedBridgePeer.swift:183-208 | Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ScriptedBridgePeer.swift:210-227 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8237961248fc869d1dbf58ce51951637c3ec8da2a0f42052954940708ba448"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 25\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:135-161 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:163-190 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:192-222 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:224-253 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:255-285 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:442-466 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:468-493 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab05faffd64090643a9e1af22129b01568e4e5daa1a5e1a93ee5a8033e9ea994"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 19\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:320-346 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:348-375 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:377-399 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:401-419 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d4090a1909a8e4098f2ad559f5d6580c766ceab8ead54640e2f06049cc0e75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): scripts/final-qualification/integrated-cu-emitter-calibrator.swift:343-355 | scripts/support/background-computer-use-probe.swift:2335-2348 \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":"scripts/final-qualification/integrated-cu-emitter-calibrator.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"1974fe4670857cb2a585e4d4fb3e568204459b1f1a70a359639201072d81275d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): scripts/final-qualification/integrated-cu-emitter-calibrator.swift:170-181 | scripts/support/background-computer-use-probe.swift:1383-1393 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/integrated-cu-emitter-calibrator.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca362c345e600ec140268b24d7dd3e55a61f5a649367cd87eb2515ff30254c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/ScriptedInventoryServices.swift:501-513 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/ScriptedInventoryServices.swift:521-536 \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/ScriptedInventoryServices.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6881be2da3f528e31ded38e92329467fea1642d78a522d0bde7ed1e4005a72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:122-133 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:287-305 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf74d4d8ac62332a52304ea15eaa213ce5a9f0509db774c8603c28ca3339384"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/BridgeTestFixtures.swift:223-240 | Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/BridgeTestFixtures.swift:242-257 \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":"Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/BridgeTestFixtures.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"c445bbcaf4bafd1db531fed81400ace3051ddce5e3f41e2235dc6a02a4fe9653"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:307-318 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:540-555 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:557-575 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a38d3e1953bf550095cff671754afe09fb45108569b749dd0a7024cc4bd17b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): scripts/final-qualification/integrated-cu-emitter-calibrator.swift:448-453 | scripts/support/background-computer-use-probe.swift:3259-3262 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/integrated-cu-emitter-calibrator.swift"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fd267007c338e4e1d51fecab6cb56209597618e9323f71d3e5af450406f210"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): scripts/test-release-archive-publication.py:14-16 | scripts/test-standalone-cli-install.py:16-18 \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":"scripts/test-release-archive-publication.py"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87f810d34c8ffad6b9fa7beeed0982a81269b3e8a5b0a05dd4cbf3d59668737"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift:153-159 | Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ScriptedBridgePeer.swift:171-176 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0e59a70a0cb5b512955f3a3171da209643702f01e95dc20e5a1ef7718d72ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): scripts/final-qualification/integrated-cu-emitter-calibrator.swift:156-160 | scripts/support/background-computer-use-probe.swift:968-972 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/integrated-cu-emitter-calibrator.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2a80f473287ff9b93c6f68ff2089fa08b452339eb8aa61d5b53d3b6c18d1b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:5214-5237 | scripts/support/background-computer-use-probe.swift:5262-5285 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/support/background-computer-use-probe.swift:5214\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":5214}}}],"partialFingerprints":{"codehealthFindingId/v1":"729b5d95becfb716c521c404f835f31e6808aea29bd66aa6177247c695791ac2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift:254-273 | Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ScriptedBridgePeer.swift:268-287 \u2014 before extracting anything, compare \u0060Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ScriptedBridgePeer.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 76 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 \u0060Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ScriptedBridgePeer.swift:268\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":"Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc75a0091c3cd6fc575ed95d05d5525093d5682c52f7e90e3b771addc77be6ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:2433-2451 | scripts/support/background-computer-use-probe.swift:2986-3004 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/support/background-computer-use-probe.swift:2433\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":2433}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e8c699745a306796dbbfeed94ec130f2906660c91c3f61ba07fb9dfb38e80c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift:228-244 | Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ScriptedBridgePeer.swift:241-257 \u2014 before extracting anything, compare \u0060Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ScriptedBridgePeer.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 76 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 \u0060Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift:228\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"816c76a47378541a0966fc32c11256d524998d70f8baea6f7a682476e2fc3322"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:5526-5541 | scripts/support/background-computer-use-probe.swift:5547-5562 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/support/background-computer-use-probe.swift:5526\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":5526}}}],"partialFingerprints":{"codehealthFindingId/v1":"8042d843cb1eb4936c18c0a00feaacc4daf8a04c82a21c8646cd6624090bcb8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:4432-4446 | scripts/support/background-computer-use-probe.swift:4447-4461 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/support/background-computer-use-probe.swift:4430\u0060 calls \u0060ProcessGenerationIdentity\u0060 and \u0060scripts/support/background-computer-use-probe.swift:4446\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":4432}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed9db644c5f4652fde8416307e74b644d5288ef2e03505c61288f663b447647"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:5911-5925 | scripts/support/background-computer-use-probe.swift:5967-5981 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":5911}}}],"partialFingerprints":{"codehealthFindingId/v1":"248dbf9b7da07c701f8cebdf5245d2768dbe1017ff19a96e107dcd30779e583c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:136-149 | scripts/support/background-computer-use-probe.swift:163-176 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/support/background-computer-use-probe.swift:136\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e73191f7d3eb3c57f2e7a71e4ed7fa16f3d91e91d91d5912d762a7952ed671"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:172-184 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:203-215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:172\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"58624ebf0c9bb0a43569c82ffd6ae43735d84ac6685c871bb7c8bf92b0942a4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:210-222 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:241-253 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:210\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f96a55646a32798662dd9165908e127208258fb5bdffd657880951a0f7f02a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift:56-68 | Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ScriptedBridgePeer.swift:74-86 \u2014 before extracting anything, compare \u0060Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ScriptedBridgePeer.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 76 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 \u0060Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift:56\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fc2ab1219715012a21157afc55498d2cf59d6fc09d637428c07f04c818549e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:150-161 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:179-190 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:150\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, 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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d45e3bd19e1320bf0a4e478b59343352c3b5f470ecdb527ca923de6870b8cde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift:194-208 | Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ScriptedBridgePeer.swift:188-202 \u2014 before extracting anything, compare \u0060Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ScriptedBridgePeer.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 76 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":"Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6b1460f16a6d1ad863ee15d3d611dab2d44176490744da9fa00d88ef35ce9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:4673-4684 | scripts/support/background-computer-use-probe.swift:4724-4735 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/support/background-computer-use-probe.swift:4673\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":4673}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8e205cf232888eccb7d89faff590262d4f08350ca4b89cff90ed4fb348ed15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:5301-5312 | scripts/support/background-computer-use-probe.swift:5367-5378 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":5301}}}],"partialFingerprints":{"codehealthFindingId/v1":"c479213714e5c4ae9e1989f82b214592077d06085310a560419c503c902b4b57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): scripts/support/background-computer-use-probe.swift:5306-5316 | scripts/support/background-computer-use-probe.swift:5341-5351 | scripts/support/background-computer-use-probe.swift:5372-5382 | scripts/support/background-computer-use-probe.swift:5406-5416 | scripts/support/background-computer-use-probe.swift:5442-5452 \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 \u0060scripts/support/background-computer-use-probe.swift:5306\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/support/background-computer-use-probe.swift:5403\u0060 calls \u0060admitForTesting\u0060, \u0060focus\u0060, \u0060FocusEventEvidence\u0060 and \u0060scripts/support/background-computer-use-probe.swift:5305\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":5306}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5eef28c02f5e8de779098054e8120a2e335ef49f0600ab16265814eb92cca8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:335-346 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:364-375 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:409-419 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift:335\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/UIAutomationOutcomeScript.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"af009df002e425bf6862bb917a5a8ca95c07e1da31a60e4af1e902fb62f2dee2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Apps/CLI/TestFixtures/MCPStubServer.swift:221-231 | Apps/CLI/TestFixtures/MCPStubServer.swift:244-254 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/TestFixtures/MCPStubServer.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"524924d39f3786a5737a739884807782171a5b4ed768c5838429e0c60d3b207f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:5164-5173 | scripts/support/background-computer-use-probe.swift:5175-5185 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":5164}}}],"partialFingerprints":{"codehealthFindingId/v1":"7edf727b5103cc80190f4273bd9065b6fb01729ac613886d5613ca3192658c97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:5020-5029 | scripts/support/background-computer-use-probe.swift:5042-5050 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":5020}}}],"partialFingerprints":{"codehealthFindingId/v1":"35800fb64277a169ad99a339270260d27ba034200482a222ea5a6cbffbf7735e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): scripts/support/background-computer-use-probe.swift:2437-2445 | scripts/support/background-computer-use-probe.swift:2804-2812 | scripts/support/background-computer-use-probe.swift:2990-2998 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/support/background-computer-use-probe.swift:2437\u0060 it does not close everything it opens, so those exact 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":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":2437}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab831e45f16c5bf65dad59f3a524d8f3bc09cf9f55b46fccd6facc72a9898c98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/ScriptedInventoryServices.swift:316-324 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/ScriptedInventoryServices.swift:339-347 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/ScriptedInventoryServices.swift:316\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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/ScriptedInventoryServices.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be03e2f4bef2f53ddd0c44f3d46a22b691227a01ff6a8b23870fe4d5bf7b02a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): scripts/final-qualification/integrated-cu-emitter-calibrator.swift:170-176 | scripts/support/background-computer-use-probe.swift:1383-1391 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/final-qualification/integrated-cu-emitter-calibrator.swift:170\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/integrated-cu-emitter-calibrator.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e43f36adf5fb9921740262431d46573d1c264a9c3970fed968d3927cd9e92ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:4799-4807 | scripts/support/background-computer-use-probe.swift:4974-4982 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":4799}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c3491b6082aa6153720234453fd6c0f9c30b2f99817fe8cdd076ab066538dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:5250-5258 | scripts/support/background-computer-use-probe.swift:5332-5340 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":5250}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf7f6d5858a1ab6772c9aa6c2ad775194726805ae593e6469eb01140cbf3c53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:6071-6079 | scripts/support/background-computer-use-probe.swift:6227-6235 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/support/background-computer-use-probe.swift:6080\u0060 calls \u0060currentMonitorProcessReceipt\u0060 and \u0060scripts/support/background-computer-use-probe.swift:6236\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":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":6071}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e20809e037e7fc931aa148fd6708e1df30af1f15d57e2ddfd03e019ae27ccef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:6099-6105 | scripts/support/background-computer-use-probe.swift:6247-6254 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/support/background-computer-use-probe.swift:6247\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":6099}}}],"partialFingerprints":{"codehealthFindingId/v1":"679f06ce97b932a519c30cacf92ab8d970e557f7c2d8427ca1e34aff8789be14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 11): scripts/support/background-computer-use-probe.swift:4752-4758 | scripts/support/background-computer-use-probe.swift:4907-4913 | scripts/support/background-computer-use-probe.swift:4949-4955 | scripts/support/background-computer-use-probe.swift:5077-5083 | scripts/support/background-computer-use-probe.swift:5196-5202 | scripts/support/background-computer-use-probe.swift:5243-5249 | scripts/support/background-computer-use-probe.swift:5294-5300 | scripts/support/background-computer-use-probe.swift:5325-5331 | scripts/support/background-computer-use-probe.swift:5360-5366 | scripts/support/background-computer-use-probe.swift:5391-5397 | scripts/support/background-computer-use-probe.swift:5425-5431 \u2014 all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/support/background-computer-use-probe.swift:4752\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/support/background-computer-use-probe.swift:4914\u0060 calls \u0060testAuthorization\u0060, \u0060testProducerSet\u0060 and \u0060scripts/support/background-computer-use-probe.swift:4759\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":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":4752}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d9365f03c675800973cf55e2342a71c3cb2b85e46ad2bac1d3d632bae71f09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 5): scripts/support/background-computer-use-probe.swift:4657-4662 | scripts/support/background-computer-use-probe.swift:4757-4762 | scripts/support/background-computer-use-probe.swift:5010-5015 | scripts/support/background-computer-use-probe.swift:5082-5087 | scripts/support/background-computer-use-probe.swift:5430-5436 \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 \u0060scripts/support/background-computer-use-probe.swift:5430\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":4657}}}],"partialFingerprints":{"codehealthFindingId/v1":"267e934e464ec596d15cbdaa35ea28b6b5ac1852d76c53ac4a5c3cece70463d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): scripts/support/background-computer-use-probe.swift:4932-4938 | scripts/support/background-computer-use-probe.swift:5346-5352 | scripts/support/background-computer-use-probe.swift:5377-5383 | scripts/support/background-computer-use-probe.swift:5411-5417 | scripts/support/background-computer-use-probe.swift:5447-5453 \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 \u0060scripts/support/background-computer-use-probe.swift:4932\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":4932}}}],"partialFingerprints":{"codehealthFindingId/v1":"308af6a147454eb413cf88fdf4fb623373d88b5ad0190a20cd81af9dbe87c4a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20137 lines \u00D7 4): scripts/support/background-computer-use-probe.swift:3866-3869 | scripts/support/background-computer-use-probe.swift:3931-3937 | scripts/support/background-computer-use-probe.swift:4013-4019 | scripts/support/background-computer-use-probe.swift:4070-4076 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note 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":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":3866}}}],"partialFingerprints":{"codehealthFindingId/v1":"296fd0919554aa7a07a3f500a481ad46fb96563b2107a080c3b37decae84d148"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:4036-4044 | scripts/support/background-computer-use-probe.swift:4861-4869 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/support/background-computer-use-probe.swift:4036\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/support/background-computer-use-probe.swift:4045\u0060 calls \u0060publish\u0060, \u0060testEvidence\u0060, \u0060closeForHeartbeat\u0060 and \u0060scripts/support/background-computer-use-probe.swift:4870\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":4036}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b950f3a323680470241134187ae47a032545542aa4875d407ddd88bc88ffb16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20137 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:5017-5023 | scripts/support/background-computer-use-probe.swift:5066-5070 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/support/background-computer-use-probe.swift:5017\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/support/background-computer-use-probe.swift:5016\u0060 calls \u0060testAuthorization\u0060, \u0060testProducerSet\u0060 and \u0060scripts/support/background-computer-use-probe.swift:5065\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":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":5017}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdaaed8cd9c6481f97db7edcf66120ca5eaa4f1e2133fa954598ecf80987baf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:6534-6540 | scripts/support/background-computer-use-probe.swift:6561-6567 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":6534}}}],"partialFingerprints":{"codehealthFindingId/v1":"70efa001a62b1ed89a63c0739aa081db42ee29c19c2142d7ab0f9b732fb67484"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): scripts/support/background-computer-use-probe.swift:5693-5698 | scripts/support/background-computer-use-probe.swift:5792-5797 | scripts/support/background-computer-use-probe.swift:6070-6075 | scripts/support/background-computer-use-probe.swift:6184-6189 | scripts/support/background-computer-use-probe.swift:6226-6231 | scripts/support/background-computer-use-probe.swift:6285-6290 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":5693}}}],"partialFingerprints":{"codehealthFindingId/v1":"5585344ace11a6af8a425258c775cc1badf528a57fed0dc56bd135249ccf6307"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): scripts/support/background-computer-use-probe.swift:4709-4714 | scripts/support/background-computer-use-probe.swift:4759-4764 | scripts/support/background-computer-use-probe.swift:5012-5017 | scripts/support/background-computer-use-probe.swift:5084-5089 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":4709}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a169000b830113b49fa11a452b4bd1468a697c6dd2706ff491050861163067"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift:194-199 | Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ScriptedBridgePeer.swift:188-193 | Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ScriptedBridgePeer.swift:215-220 \u2014 before extracting anything, compare \u0060Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ScriptedBridgePeer.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 76 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":"Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ef98a7e51bf0d2e161a2e485fdcf711614e2a18ed6fb21d24305066b36d7af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:4221-4227 | scripts/support/background-computer-use-probe.swift:4285-4291 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/support/background-computer-use-probe.swift:4220\u0060 calls \u0060AllowedForegroundTarget\u0060 and \u0060scripts/support/background-computer-use-probe.swift:4284\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":4221}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61f1cb5e4cca46883237b3fa17a80c2c974f4203b122a4f6d89b562225f4dfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:4876-4881 | scripts/support/background-computer-use-probe.swift:5156-5161 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/support/background-computer-use-probe.swift:4876\u0060 it does not close everything it opens, so those exact 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":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":4876}}}],"partialFingerprints":{"codehealthFindingId/v1":"262d9d73fa34911564c4698bc6ded160912ab9d3e68563b2f06fc3f6a98fe653"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 11): scripts/support/background-computer-use-probe.swift:4657-4661 | scripts/support/background-computer-use-probe.swift:4757-4761 | scripts/support/background-computer-use-probe.swift:5010-5014 | scripts/support/background-computer-use-probe.swift:5082-5086 | scripts/support/background-computer-use-probe.swift:5201-5205 | scripts/support/background-computer-use-probe.swift:5248-5252 | scripts/support/background-computer-use-probe.swift:5299-5303 | scripts/support/background-computer-use-probe.swift:5330-5334 | scripts/support/background-computer-use-probe.swift:5365-5369 | scripts/support/background-computer-use-probe.swift:5396-5400 | scripts/support/background-computer-use-probe.swift:5430-5434 \u2014 all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/support/background-computer-use-probe.swift:4657\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":4657}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d712aa0ca069a362499df96e229facdbbfdd0232f70b466b5dd8734d19bb827"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): scripts/support/background-computer-use-probe.swift:4659-4663 | scripts/support/background-computer-use-probe.swift:4709-4713 | scripts/support/background-computer-use-probe.swift:4759-4763 | scripts/support/background-computer-use-probe.swift:5012-5016 | scripts/support/background-computer-use-probe.swift:5084-5088 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":4659}}}],"partialFingerprints":{"codehealthFindingId/v1":"053f22426ed837ecdbeeed711b18a094ce2fcc369b7db56d7e0375cf96cbae88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/LinkedDesktopTargetFixture.swift:30-34 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/LinkedSnapshotTargetFixture.swift:34-38 | Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/ScriptedInventoryServices.swift:250-254 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/LinkedDesktopTargetFixture.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c507107800bf401a1cdb0a6146783f3f3a4e55e950b71f098b09a3310c9032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): scripts/final-qualification/integrated-cu-emitter-calibrator.swift:227-231 | scripts/final-qualification/integrated-cu-emitter-calibrator.swift:425-432 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/final-qualification/integrated-cu-emitter-calibrator.swift:227\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/integrated-cu-emitter-calibrator.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8443655231539f385773962f1e9fd09f27b80b1398130b6cab21984caa16d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): scripts/support/background-computer-use-probe.swift:4308-4313 | scripts/support/background-computer-use-probe.swift:5091-5096 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":4308}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13482c9c12ba7e2bc1bbb6810950b823856bb51ef2d63975d285d630ccd23a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 3): scripts/support/background-computer-use-probe.swift:5353-5357 | scripts/support/background-computer-use-probe.swift:5384-5386 | scripts/support/background-computer-use-probe.swift:5418-5422 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/support/background-computer-use-probe.swift:5353\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. 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":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":5353}}}],"partialFingerprints":{"codehealthFindingId/v1":"647e95cf896763cf67ce227c32a73a01991f1774948fd7bcae514166962ed7a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift:216-220 | Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ScriptedBridgePeer.swift:289-293 \u2014 before extracting anything, compare \u0060Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ScriptedBridgePeer.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 76 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":"Core/PeekabooCore/Sources/PeekabooBridgeTestSupport/ConcurrentGatedBridgePeer.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c053e015b906d5e7ebb364e51cc7ddec299c5efe6b0567f49cfd4c420947ce"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project PeekabooAgentRuntime: PeekabooAgentRuntime has instability 0.86 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"71f576bc6bed7d38adf74bb76cac6e0229719cc0c0cc1c2da8f93d270ba4beca"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: PeekabooFoundation (Core/PeekabooFoundation): PeekabooFoundation (Core/PeekabooFoundation): abstractness 0.16, instability 0.00, distance 0.84 \u2014 zone of pain \u2014 concrete and depended on by 9 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"80a4d4a0dab3c521e1932cb049a3d177490bbe9421b779ee26749576054b8380"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: PeekabooProtocols (Core/PeekabooProtocols): PeekabooProtocols (Core/PeekabooProtocols): abstractness 0.00, instability 0.17, distance 0.83 \u2014 zone of pain \u2014 concrete and depended on by 5 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e6df8ee9a97e25fe240f54376d3c3fe1c5aa9f09a49df6eed6f276cad2786063"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RemoteWindowManagementService (LCOM4 14): RemoteWindowManagementService\u0027s methods fall into 14 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 14 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteWindowManagementService.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22fa6db679c430db30e53cc2921982240c2b94dcaed3713000b710812a3fa00"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CoordinateTransformer (LCOM4 11): CoordinateTransformer\u0027s methods fall into 11 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 11 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooVisualizer/Sources/PeekabooVisualizer/Visualization/CoordinateTransformer.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"262aadf7172c47a1d235326075557373244005310d90a016de6656c38f00d0d7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WindowManagementService (LCOM4 10): WindowManagementService\u0027s methods fall into 10 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b41de3261f1d6446464e61e6507725e786d7a127dd6533cfe2e2ce2b846c363"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ApplicationService (LCOM4 9): ApplicationService\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4b586adde7c224d69adea1978991f0590952a7c49e56eff28a3bc88622f6bb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WindowIdentityService (LCOM4 7): WindowIdentityService\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/WindowIdentityUtilities.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da4de25147522ab85081233caba0a51168c45fbc7b65f4a093e6a50f337e64e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RemoteApplicationService (LCOM4 7): RemoteApplicationService\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteApplicationService.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"594672f28f3a4daf74de99b6c3e4f6d5062e7bd9ae4aa60d3d05f9624b61d691"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ModelMessage (LCOM4 6): ModelMessage\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolMCPBridge.swift"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"17293eda14da5e822c83036cae716bddb4531b70c4884efd7aba76e41b9164c4"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: StatusBarController (LCOM4 6): StatusBarController\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/StatusBar/StatusBarController.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cafe2a52b52d865bb2f730845f754335547c3b72653d70ac24275b04cc1bf52"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UnknownToolFormatter (LCOM4 5): UnknownToolFormatter\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentOutputDelegate\u002BFormatting.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"812217f2aefd2e137d28adef01b848ad2217eaa5b5be2428273b0f646a8bfb85"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RemoteSnapshotManager (LCOM4 5): RemoteSnapshotManager\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteSnapshotManager.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e585ef75c42b7e6561fdd2a6a14bea157a06517169dfcc4fa6605dbf4e75bb0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FocusDispatchGuard (LCOM4 4): FocusDispatchGuard\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/FocusUtilities.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db7156f58084738ab757300504f34bc20de424ddcdb7200400766e5b7d10703"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SnapshotStorageActor (LCOM4 4): SnapshotStorageActor\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotStorageActor.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"9616205aebe0f9b42120a8d0205b47436554c78db632d1c235e3e542b4cb215d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PermissionsService (LCOM4 4): PermissionsService\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/PermissionsService.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8dc4110b95eeb37adccfe0d49dd7fd0e7a9a1b15344be119f6e332d9fbd52bd"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PeekabooAgentService (LCOM4 4): PeekabooAgentService\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3fa78f3df53d3a2613682b13f9d4005010cd5ec83afadfd3acd67fd72030d43"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BaseToolFormatter (LCOM4 4): BaseToolFormatter\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/ToolFormatting/ToolFormatter.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"33bbf3bba37a66bf9a07cf68846ba5593ebd4000d61b21e3865db147d75f094a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PeekabooServices (LCOM4 4): PeekabooServices\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d3f42ec75916ec011180b1f020eccb8357e3213cf46824056307f355db8491"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ProbeView (LCOM4 4): ProbeView\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Playground/Playground/Views/MouseMoveProbeView.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e70432c9c7629d9741c9dd6f5acbaac370929150b30dc59a84245da116c2bfe2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ProxyAXView (LCOM4 4): ProxyAXView\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Playground/Playground/Views/ScrollTestingView.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f93077d45cf84c58a2d7caa4315271199bd5c192f4442f215a2746f3cfafd80"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 JavaScript/TypeScript and Swift suite: Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured \u2014 the node:test suite in the repository root ran and not one test passed (throw new Error(), so the coverage would describe the failed run, not the code; the Swift half could not be measured \u2014 the Swift suite in . produced no coverage export. This repository\u0027s production source spans both ecosystems, and no partial figure is published as if it were the whole: coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testDefaultBudgetCollectsMultipleElementsWhenWindowExposesChildren: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/AXTreeCollectorBudgetTests.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d9bf2e4d53702c18952333aeece307fff3c39872a74ebe4617f14047430af5"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testMaxDepthOneStopsAtRoot: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/AXTreeCollectorBudgetTests.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0b3b4fe56964afffbc7ccbaacc46e8642d5ad3145316f23135f27f8813a2d6"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testMaxElementCountStopsEarly: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/AXTreeCollectorBudgetTests.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0aa4620e7aa2aa242ca625448b26312791e29ecdaf3d7cb69d3de9fe7d6bb2a"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testMaxChildrenPerNodeLimitsTraversal: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/AXTreeCollectorBudgetTests.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"969ee8ea18ad0be4e68aaca98543a3c30d2c02152bdb82cb22c6afdac87674f6"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testNegativeBudgetValuesAreClampedBeforeTraversal: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/AXTreeCollectorBudgetTests.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db70683478fb70e987edf8909029abdfb2e8cdb1564bf65358c92858029f63c"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testExactWindowResolutionDoesNotActivateBackgroundApplication: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/AXTreeCollectorBudgetTests.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a3ddbd5464327871c683a4c72ae88ea9af59ef31083d9cf730627d9e9e5373e"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTemporaryReadAccessRequiresSilentGeneralPermissionWithoutInspectingContents: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/ClipboardTemporaryWriteTests.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"83394ec69b7475a24b86af6ff719e58c51e80e658ae69209890bd0077f99ea47"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Tests/CLIAutomationTests/ConfigGuidanceSnapshotTests.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6415184c171244d77c77c59b344a128c3c205ad98380b9522af37f57174d9f77"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Tests/CLIRuntimeTests/BridgeReceiptCLITests.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d524be2d5b30a5c8d2f09eb36318010990f2dcd06a9238d41f5b2d0de4c670d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Tests/CLIRuntimeTests/CaptureEngineRoutingCLITests.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aca8df9d5c88c48b626eb3698519566344e31742e703b671d6c3da79f8cdc00"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Tests/CLIRuntimeTests/DaemonStartupGateTests.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6dc6bdc1440c94bc4222b028f338d8d6f5965514e50ab1ac830bf0a57936f4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Tests/CLIRuntimeTests/StaticCommandStartupTests.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f54df6544b14e12540941693c4683a082022ea5760ab8ba03ddcfd7a148075"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Tests/CertificationControllerTests/CodeIdentityRunnerTests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"db60259969facca8faadc3fb7c7ca9489d963492a0df41f04ba6850c6649c7e7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Tests/CertificationControllerTests/OutcomePolicyTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"776b4e55ab843c8e826c4e990d6796bbc251a6d3e0cd25760907e4d651bffed6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Tests/CoreCLITests/CaptureReadinessRuntimeTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"064f60a624e6e0f5cd8ae527de9eb9900a855c71d2906f5df01ef4fd84952173"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Tests/CoreCLITests/CommandHelpRendererTests.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d44a8d2e75fa50f4cf6c9859e29993ccd9541b908ff0f5812470366139bcab0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Tests/CoreCLITests/ConfigurationMutationReadTests.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"939cce645a31e1f893db367bac13fd5ab7752c68c05138542adc19e557cf5896"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Tests/CoreCLITests/ExactDialogInputRuntimeCapabilityTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"56144b29ab27fd95b2d62b3e4891213dc7b79d78297586d209d2070e7e50d975"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Tests/CoreCLITests/ExactWindowROIRuntimeCapabilityTests.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff25de07141ec354e1049a56963a79fc6b647ca8d272463913bc5128cdb4548"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Tests/CoreCLITests/ExplicitAutoClassicOwnerRuntimeTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0560bd73d0e92d1e0e42166b21d9a7d04aad3a95817a6b1d54db5a09405b818"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Tests/CoreCLITests/InteractionTargetSelectorValidationTests.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffaaf8e952c4b64a49a31c9b4205d86e2acbc2aff70d4d9d153d1c4469b77596"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Tests/CoreCLITests/PreRuntimeInvalidInputOrderingTests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbbc10cb9a2556fed3ccdee09ee5d08f72e56a8303d6a0f54a5a932d81336515"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Tests/CoreCLITests/StatelessClickRuntimeTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7939ae28253b1e30b7fec6787b421d54beaddd9075d578cb74ff0ff0e4099ff"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Tests/CoreCLITests/WindowTargetCreationTests.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93fc84d6386815c57435f4afed717da3162121a00ff67b1c228686e61a20508"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/AXMutationObservationReaderTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc1eaff0a5b184517fc42b9f2083db2a13fe9659995e241f2baaf47c344d7f7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/ApplicationInventoryTimeoutTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"580eb0c6d2fec486a5d8a3833ad8c9330b7d8b18ab86affff97aa4e4d3d132df"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/AsyncAXMutationTests.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29b676afb5a4617ecdf0482279202cb2b8b6c3de06de984e3c80643bf48bfd0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/BackgroundInputDriverPositionalTargetTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3cd29154e87823e47a2d9903d13b99df59b7ee8c5ec9ee172e891afd865b0e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/BackgroundTextInputDeliveryTests.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e267741332052845b77d79ec7ad7d2e0ce5846e2b1dbd199ccea674056bfa9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/BackgroundTextInputReceiverTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"b675bf5833eab6fd32ac90eb64f8bb33b791ab9036b7423067408ceed8470f40"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/CaptureWindowMainStateTests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3212d2bfe7b28a2e5027e1caf1f4b173af8926057578666703335c5e7cf2fdf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPlainTextOnlyRestoreKeepsTheExistingStringCompanion: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/ClipboardSlotFidelityTests.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"090ba9c074a0222409787bfe2cff3c72eead441eb13025ac94945405491738bb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPlainTextCRLFRestoreKeepsRawBytesAndNormalizedDefaultReadback: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/ClipboardSlotFidelityTests.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ae91dc21893148d9754640ba32a4305120dfcc620e720ea59de5252705b1f6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReadOnlySlowDetectionDoesNotBlockAnotherObservationCapture: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/DesktopObservationServiceTests.swift"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27934c9e9c05ac526f9f7986436acd93c5b0e34d6cef0523e989c9bab3600c0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWebFocusDetectionBlocksAnotherObservationCapture: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/DesktopObservationServiceTests.swift"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c77bac13b1eb095ed39a2083b2a4a46d4c295964983a2ff9c4330e85939f3bc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testServiceOwnedCaptureDelegatesDesktopOperationLaneToExecutionHost: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/DesktopObservationServiceTests.swift"},"region":{"startLine":1201}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ecfe5e4ae62e1b261da24b8fa371548821f727c3811cc3ee18e58613a9938f7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStalledNativeReadDoesNotStarveMainActorOrPublishLateCandidates: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/DialogHierarchyReaderTests.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7cf8acd60b288bfaccf602e3059c4ffd1ff45cba4a3e0dc27d163a26f318267"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCancellationDoesNotWaitForNativeReadOrReachMutation: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/DialogHierarchyReaderTests.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8dc8a04b64e3e96e21f8e81813b2ae6509149875877a2d528ec4138b306ece"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStalledMetadataReadTimesOutWithoutStarvingMainActorOrPublishingLateData: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/DialogMetadataReaderTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c8a404c29eea22cbbfdce5e8888f37efe6ba32615ce772c3787e2cbe2b4602"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCancelledMetadataReadRetainsItsLaneUntilNativeCompletion: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/DialogMetadataReaderTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01b2a3a653099cef9b1dd8b9c45383d8c2e73005659b511f928b8f1eb853e37"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/DialogPreparedActionStoreTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"61de6c325d4d762506729c734a8ce51d4de097de016d960f153866cf07ad6455"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/ExactWindowValueObservationTests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a499f3589c40117473aa18891607d6a4bbbc3cd95ec538cd0d0fdfc60f5db87"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/MenuDispatchBindingTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"f038f02d5befcb74d4bc0dd2a75399c810dc77c47cb0a21d09bf490c9dc2eb46"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/ObservationCaptureReceiptBindingTests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"44499e8af443d9b484cf0be16f2173c1ebff0e34d9d903f1a7949e5f2cacbe0f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/SnapshotDirectoryLockFailureTests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c2273ec0b634e9f8a1602a73bf79eafae50f8a72abd7a1f9bfd88125788d21"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/SnapshotMutationLifecycleTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"02962455806b6bb91cebcaa332b4d3e569e8208336f1bc4c752594715765edad"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/SnapshotPersistedMapPathTests.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ad70d4fb8f15afe0e3c1d84aa434ea0ccf893e1fa48a82b88a16c813d98f92"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/StableRegularFileReaderTests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf9f02dd796764482598d656fe2026b39eec707798dc8133680b9158e23d426"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/TargetedTypeInputPolicyTests.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1ffa98233e3c1bbe1e09d0472e79cf742ad0262c14b0919b3ab5d87d7e232b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/TypeServiceForegroundPolicyTests.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a1b67c4ed58df9922f41ff2069e90b6b317e6b47e09a0975d633e95b909bc1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMatchingFocusedElementAndInternalKeyWindowAuthorizeExactTyping: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/UIAutomationExactWindowFocusTests.swift"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c51dbd70446a61e7f1bdbea58b20cee4f7b97b4792e6e6d090f1b28f3a8232"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/WindowRoutedWheelFailureTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13896a64de1863876ec89ead68e6f0d2be3640367b72cab56c5fab677e700af"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooAgentRuntimeTests/AgentRecordedOutcomeNoticeTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fcbea3e9de129fd3530aa577bb552d18b63c859a6d5d4deb26440c64741067c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooAgentRuntimeTests/AgentScalarArgumentTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"70098070d0e09f159ed3ac97f4786630ae79e82c6ec59910d2994529c963e9fe"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooAgentRuntimeTests/BrowserMCPChannelEndpointResolverTests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"223e46521abe69b0654d996275b437703a5f73a3d981b379874c53a8f8ab1661"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooAgentRuntimeTests/BrowserMCPSessionManagerTests.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"8398b710c8c36544315c261de0a1375f96a718548d915bcfbedf536faa7ba061"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooAgentRuntimeTests/ToolRegistryContractTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"71157cefed5298c70320471ca8bc78bb1b966b1448c326ecf57d382732348637"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooAutomationTests/MenuServiceContractTests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"98adebc1fc653e63dde30dec46fe8843334f79bd93db2d1621ba6756e8560946"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooBridgeTests/AgentExecutionExecutableIdentityTests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a55e9727458fd3b7808e6b0c63f2fd7876b173666f321f04b0c8fec3c556ba"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooBridgeTests/CertificationMonitorSealPayloadTests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b102c7af3a05c7ac955276969f72c2b1e3ef446e7da45b3368ef917a550846"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooBridgeTests/ExactDialogInputWireTests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2cee4a082c09fadc1c2188d72113b6dd741738c36ad904bdbca1dbcc732125"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooBridgeTests/PeekabooBridgeSigningDiagnosticsTests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1129fe3d907bed841242eb925c7e3795e3c88deebac0c8af75e0fed410359fc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/AgentCompatibleProviderStreamingTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"265bde3267ab80dc3349b44c2f39f15b3500915931f88e3a0bee84796ff0658f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/AgentPhaseTimingTests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa71768b4a11a602afd8207870ab0601f8459dd28adc6663be4478358e3f693"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/AgentTextStreamingTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee33c6b0e7e74cf02b0edef48fdd9390bd6b4a504ee86b12b6bd1cc5b766bf4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/AudioInputServiceTests.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb3988dcc41d5ccf9392f68bf10258f85a8d6463f21158472458fc29e11edf4c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/BrowserConnectionHandoffTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8cb3078269d268321e2c190abc7159395c1796568da4796bc4481d66efcaf6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/CaptureModelsTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"560bc0bc81ac4379db04e8791d63e7d555d4dfec43c8945605841189e85dcaea"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/ClickServiceTests.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d50631e5f2e9036d4a43792b0cb2bfef67caa7e599d97374fbc5ade45e1538"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/ClickServiceTests.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd8730034982ff3441d2239e0a6b7e930b683a68183dd2cbebec86ca0322d62"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/ClickServiceTests.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15f0559e9b7ffc3a1a212d0fbf2910568644981cbc996de676ceffb225e81ff"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/ClickServiceTests.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20908faa4df278675c47fc536d7613774f51b65d64cea20c03a3d05de97e30d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/ComposedInputParityBridgeTests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71335d853ff620948f5cabb7001981dff0ff548b7700fe6895ff27d8ac4f117"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/NativeBrowserConnectionBindingTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b0280b0ff9f6675a2942d5d61a16cb25d321a1360a3dda63925b3578d31199"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/PeekabooAgentStepLimitTests.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71fa91965fe58ccb883d0f820b4819523a7222445e319df1bdd832bf150dd72"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/PeekabooBridgeAttestedFailureTests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"41cc3cbbd10dc39519703c9eebae0b9925dd5e39e6dd91518bde630d8365e107"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/PeekabooBridgeBrowserReceiptBindingTests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c209f34eca0dcf49a619ddbe5bfb16d162892d542816a7c075a689148b23a7dc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/PeekabooBridgeClientTransportSafetyTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"74aef2c2809d8804721da316b1bd1b816e8503693b26023e46ccc0e91d801476"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/PeekabooBridgeCompositeTypeDeliveryTests.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9a582e80435003dca5cafd508efc196bf96ac509b1a8a8e0f0a264691b6201"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/PeekabooBridgeDesktopObservationTargetTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b199e1be23a45ba18cf1230e1589f57debb5dcae8cfbd0e6362c613f8adbc3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/PeekabooBridgeGUIClientAuthorizationTests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5edfaafb5b68d638d893a2edc4d77ed426731ec0e5a4d1f6b561d791675746"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/PeekabooBridgeLifecycleDialogSelectorProofTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56c08037b966f09a1370f89d684001a8b562e7877c8357b536d4384a69893cc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/PeekabooBridgeQuitIdentityTests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e931e7cde0dbc9719b393a7b27dabca3feb6ff1a9e55dc8f4ebc66a655fdc1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/PeekabooBridgeRequestPlanTests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"88be12e2d69ea3697986138afbf518079721469cea47caa4469b9eda22571351"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/PeekabooBridgeScopedMenuBarTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be48cd1a07c43f519ec6a2cb929bf28651a1245b6c1982014af70b9ac08251d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/PeekabooBridgeScreenObservationBindingTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b6b44143099a08b80f374db833bb0f1d8d4ff331bcc1dbb7051f27d87c0f95"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/PeekabooBridgeScrollReceiptTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"45151ebc9b16ebc8ece50a6827a07bde06d11ca702aa82aa9addbd1e68776863"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/PeekabooBridgeSelectedLeafReceiptTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b752e5b2f1e00fd00537ca78163c56a1f53324c50f6c4af9153134ed423979"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/PeekabooBridgeSetValueFailureTests.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49eeee0436e11caf61af13fd5cdddea83093b18bc2ea6b4d3d5b3657663ab2b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/PeekabooBridgeSetValueReceiptCapabilityTests.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e55c84dda94468107cc4321780f59a93a99690300cb8daf5d94c2462d3ea50c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/PeekabooServicesBrowserSessionProviderTests.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6124229b0942df0e93cc6e083a791fd7720ce8311f3fabbe116b7beeda1eecb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/PermissionsServiceTests.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd6f0f772c371605ace802cb07b9b51bf9e3b7ecea65497dad979547802e160a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/RemoteScreenCaptureEngineScopeTests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c103bd68ef2e75cbe954a2f66418298dca84bf441ab89c284014a615a9d60d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/RemoteWindowManagementServiceTests.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"382d4caf0465e4be7ec64b805aded5878c4ef97111a3153c844e59a01668189e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/ScrollServiceTests.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5516cbd60d7d1d2999a823e1e51fc1445eb5a3fbbf52e89cd9686d40daa5bc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/TypingFinalReceiverBindingTests.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa13fd54bc4342d19f6eaa56cb719e132622f7c7af0dd93734ac11d880b2f38d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/WindowIdentityUtilitiesTests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26cb3daaf72a0607a86ddeb20920f83ef76e2049719671d7f346ea8aa50758d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooFoundation/Tests/PeekabooFoundationTests/DesktopActionSequenceCancellationEvidenceTests.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"927b1272b013576113810c6e99960c287edfd564a41240c2170c20e88ba7f95c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooFoundation/Tests/PeekabooFoundationTests/DesktopActionSequenceRunningEvidenceTests.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"564d4b3c26f5d14c497513525eb39fb0b96e12270f4d82687cfa36ca3e7ab64e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooFoundation/Tests/PeekabooFoundationTests/DesktopObservationTargetChangeDiagnosticTests.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"633e38f682f19e8bed3c6948aa3ae0281d66862cf8a111d4e076baea9c782f6e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooFoundation/Tests/PeekabooFoundationTests/PeekabooErrorTests.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c39e4a3b804937fb14df4f1f82fa8e0bfa7ef412c8376feb5886690b8d86ab"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/MCP/AppToolLifecyclePinningTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18f346a4a719a53d22705b8b37833892437b993a5743044d4aa52b3f2159f28"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/MCP/MCPDesktopActionOutcomeProjectionTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c93efdb6f1b84e081104c086e1d4d42c6d6daf7bf86d82c827ac9bc0a7e3dc3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/MCP/MCPDialogPreparedActionTests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"67465dee572043c6a17046097757b01928e2322697ec9ab5a4cd2a8ea36ff053"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/MCP/MCPElementActionSnapshotAuthorityTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"abcaeea8eec8aef06987efa786d98a768ebcfd3ee81bf60c501ad52b3813f3bd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/MCP/MCPOrdinarySnapshotMutationTests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9866fe526657059bcec222dd64076f317286975a9bea4cfe652f9873a054b864"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/MCP/MCPPasteOutcomePresentationTests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c5d550d96637d952edec48dd5f94277da24b1c658a42a1959bb5785af90e3a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/MCP/PasteToolClipboardOwnershipTests.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4d6bb2b1f1551637ec61d6a11beea2108c8b6d897d8ac0c2ea937b2b9d9d5b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/MCP/PasteToolTransactionGateTests.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e5c675eea8b29b3b91c4fc63bf4e3086edf2895c9c8361b24be04e8c35a06b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/MCP/PermissionsToolSelectedHostTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"980bb264c567d9806da1f95416742fa7ca1188ea4df6abd3e7fdc7d8b0b2c950"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/MCP/SeeToolImageOwnershipTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2eef6981ee9699d3922ce4f417768ed82c84fe94a080f2b8deab0bb0c71a71b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/MCP/VerifyStateIncompleteEvidenceTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fbf5c7670985967c731f637f01c2903763b5dc9fd3784cc5b3663c15d574ab9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/MCP/PeekabooMCPServerTests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"34868b97604bd5f4aab9c420ebbb35511d8c74ac9e49bc21a8db57d98916df7c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Tests/PeekabooAutomationKitTests/FocusDispatchAccountingTests.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d24c13bf713f3fe6d8953eeea07548ea9186886dc1463d3a5c9bd75b7deb64"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: : This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Tests/PeekabooTests/TypingFinalReceiverBindingTests.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2614012dfb25fdb724b7f72f76e572f8a48082e889ffdd2174a44c9b1ab64268"}},{"ruleId":"D12","level":"warning","message":{"text":"No Package.resolved committed (Apps/CLI/Package.swift): Apps/CLI/Package.swift declares 3 dependencies and no \u0060.library\u0060 product, so it is an APPLICATION \u2014 but no \u0060Package.resolved\u0060 is committed beside it. Nothing records the versions a working build resolved to, so \u0060swift build\u0060 re-resolves against whatever each dependency\u0027s git host serves today and two builds of this commit are not guaranteed to be the same build. Build once and commit the resulting \u0060Package.resolved\u0060. (A published LIBRARY correctly omits its resolution \u2014 SwiftPM ignores a library\u0027s \u0060Package.resolved\u0060 when the package is consumed \u2014 which is why this is asked only of a package that ships no \u0060.library\u0060 product.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ddb672a73bdacd72b26c2e438592bb3b5eaca41ff10b8fac8bba775bff3557e5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandshake.swift: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandshake.swift changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 134 in PeekabooBridgeServer.handleHandshake at line 31. 12 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandshake.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandshake.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e74b5bf1cc0cfea6348b14d4c61369a6f3854f45341cac80925679e79fb78b51"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 81 in PeekabooBridgeOperationResultSemantics.deliveryRules at line 727. 13 of those changes were fix/bug commits, and the other 16 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f8c921b4ce96ceac15e4b7375a098c98c61c6ff956c5b668d567c1f5fcb8e2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/finalize-multi-target-certification.mjs: scripts/finalize-multi-target-certification.mjs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 155 in finalize-multi-target-certification.validateSuccessfulCertificationSummary at line 2870. 5 of those changes were fix/bug commits, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- scripts/finalize-multi-target-certification.mjs\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/finalize-multi-target-certification.mjs"},"region":{"startLine":2870}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d21ec0e555a9b3262329fea07b49ba53bcbcf109130efb66618c2fe3159a0b5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift changed 31 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in PeekabooBridgeServer.validateOperationAccess at line 1084. 14 of those changes were fix/bug commits, and the other 17 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"08420194f9d540d1047416734402514f16512d8f1f4a4334f254b756a8b2e469"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift changed 37 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in PeekabooBridgeClient.handshakeCandidate at line 877. 20 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient.swift"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8cfe3caad02b97e3a204802586c867fc653b3f0c5c0acfa6ff452f6a15b54c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift changed 31 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in PeekabooBridgeClient.requireNegotiatedInputCapabilities at line 198. 15 of those changes were fix/bug commits, and the other 16 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5073c8aa72d6ec14081edc916ef26ef02e556d8442a5be9e48168aa0572ee7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/build-docs-site.mjs: scripts/build-docs-site.mjs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 74 in build-docs-site.markdownToHtml at line 267. 10 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- scripts/build-docs-site.mjs\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/build-docs-site.mjs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9675233aae211d333b843aae3be2dcd8badac03083c905d1274175c4c1270c1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver.swift: Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver.swift changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in RuntimeHostResolver.resolveRemoteRouting at line 327. 19 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12b22f23cef907d33251ae99dbf253873cbb42ac0c0fa65ef3e6eab232f8752"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeModels.swift: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeModels.swift changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in PeekabooBridgeOperation.compatible at line 171. 18 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeModels.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeModels.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"6069b66c973683bc9723e80a77e29b0162ef68c489766a651b12c2d5dec882c1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift: Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in BridgeCapabilityPolicy.supportsInteractionRequirements at line 240. 12 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"377935eafbddd00f6a1d00e565a4db944a8a9e56155c5fba114016c0c3569529"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift: Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in CommanderCLIBinder.makeRuntimeOptions at line 43. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5ccdb87e8cee73eee248e65af7db00884ba95778394de8ba188f44bdd0392a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in PeekabooBridgeServer.handleAuthorized at line 9. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e1b0a5f7bdb531c7aee1abe64a4a9b363282e6baaa4c4a0836f4f8debdef5b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in PeekabooBridgeOperationReceiptSemantics.validateSuccessfulTargetAttribution at line 641. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.swift"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0db8d2bd66d84a96871ee4872e598c36dcd6ef160633362750b0aae72c7514c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift: Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in MCPToolContext.backgroundTargetAuthorization at line 860. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f40ca057de9b196bfb70306880ee42eef1feca74a60bce30c2a0ac58550499c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/run-live-multi-target-certification.mjs: scripts/run-live-multi-target-certification.mjs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 121 in run-live-multi-target-certification.runCoordinator at line 1260. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- scripts/run-live-multi-target-certification.mjs\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/run-live-multi-target-certification.mjs"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3cf9e14a317a15ddd97a2de304b1ee519939f55caca2e6eba1095afb67a3f9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift: Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in BrowserMCPSessionManager.prepareExecutionReceipt at line 921. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fd9a311570e8380b0deb524cee653b3c8e6623c9301b6ebbde6bbc5eb8b433"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeRequest\u002BDesktopMutation.swift: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeRequest\u002BDesktopMutation.swift changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in PeekabooBridgeRequest.minimumNegotiatedProtocolVersion at line 42. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeRequest\u002BDesktopMutation.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeRequest\u002BDesktopMutation.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eed241c7373ae53d8a719b30bc1cb553e61906f8e3763a3e010bc4690ad5bda"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BScreenCaptureKitOwner.swift: Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BScreenCaptureKitOwner.swift changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in RuntimeHostResolver.resolveExplicitAutomaticClassicCapture at line 417. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BScreenCaptureKitOwner.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BScreenCaptureKitOwner.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2f8b04de11c9aea7b31840d5a7345a1ab299bc60dc62649b7633af7cb60181"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift: Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in PasteTool.performClipboardPasteTransaction at line 597. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.swift"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"751d37672ad834a8ed4dac11a584359d0b8d935b4f6f5371f7e977b07ec83758"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in DetachedExactWindowFocusReader.read at line 308. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedExactWindowFocusReader.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9bf6f93d53b2b5bb36b84e1acf28cde093b6a9920eb2e2e32c2d6d96dd6a8ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/HotkeyService.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/HotkeyService.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in HotkeyService.hotkey at line 193. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/HotkeyService.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/HotkeyService.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd1144fa4a0d7ddfbe9c863182388d75bf1c2c43ec0d3f2cf2db72e91170855"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BOperationReceipts.swift: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BOperationReceipts.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in PeekabooBridgeServer.performAttestedOperation at line 59. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BOperationReceipts.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BOperationReceipts.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"28fb3612ba50dc5719f07ed00520d87077ec9f83f2d69d5663daf88867ffa51b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift: Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in ClickRequest.init at line 976. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClickTool.swift"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ed1b707d296dd3a88dd78e9c3a84fbb31f50ae3c3af9e67cebf6a662fa0b15"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift: Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in PasteCommand.performClipboardPasteTransaction at line 222. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07788062b3252a377c50cf91642e0b855841449bf6e45514868e14a25c23ae9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/terminal-archive-policy.mjs: scripts/terminal-archive-policy.mjs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in terminal-archive-policy.validateArchiveEntries at line 93. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- scripts/terminal-archive-policy.mjs\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/terminal-archive-policy.mjs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"420a0e0c9734a58567fd6bbd13dc314fffb3868c39a59a81c14c3a65a505011b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/prepare-release.js: scripts/prepare-release.js changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in prepare-release.buildAndVerifyPackage at line 639. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- scripts/prepare-release.js\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/prepare-release.js"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b1f8c3fee3cf5df1042dbb9e61667172619797d328d84504a293de53ff70bc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in ActionInputDriver.setValue at line 612. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"15cf1891ff852ac905539de8da916f68d8985085e316eede44e6e9bcd6bb886d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in BackgroundInputDriver.click at line 1569. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.swift"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"1484a6b8a72c188b5dedbf8912e7e04d8cb5e49a279bf7ff5a7bebcf2a125c8e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift: Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in ClickCommand.run at line 91. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc73c1f12ee404cc9283f6753d437389c779aa1ba4c931b56f84a0f7588ac56"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/validate-background-computer-use-report.mjs: scripts/validate-background-computer-use-report.mjs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in validate-background-computer-use-report.validateCertification at line 474. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- scripts/validate-background-computer-use-report.mjs\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/validate-background-computer-use-report.mjs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"a597acedd2a2d0c4139956bcd94636222da70b83d6b2d924224582752add528c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift: Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in BrowserTool.execute at line 191. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/BrowserTool.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"6304961e497759bdfa7becab3db831a207c96e5d76236435dedb463c156f4482"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in DetachedAXObservationWorker.inspect at line 239. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6accac57850f2fac4455a689c378906e03b9d650e4de30cda2a6d70ebd65622"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift: Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in PressTool.execute at line 111. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PressTool.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"e335e5c6ea2e2265669e49adbf335220d13370fb4354966704e08421e4cb92e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in TypeService.clearCurrentField at line 905. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e1ee95a626d52f65886bbfb4b8ccab135b7ccdefdef1546f5a9f664ca4d7ca"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BResolution.swift: Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BResolution.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in RuntimeHostResolver.evaluateRemoteCandidate at line 233. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BResolution.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BResolution.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0e56e844fa0e37137d3066f9bccc160c698a5fe6344d55ac89267645ecd439"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/support/background-computer-use-probe.swift: scripts/support/background-computer-use-probe.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 61 in background-computer-use-probe.swift.sealMonitorEvidenceIfRequested at line 3071. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- scripts/support/background-computer-use-probe.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":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":3071}}}],"partialFingerprints":{"codehealthFindingId/v1":"991bba6bb33fd1cc55c9f9df6afb8ca30c5f679864bc88505698ab90ac85aa6a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BDiscovery.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BDiscovery.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ApplicationService.readMutationInventory at line 49. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BDiscovery.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService\u002BDiscovery.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a184e4d446e7420a3992826743810a220bc78756c608856fff88f4199551e2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in ClickService.performActionClick at line 172. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ClickService.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5872f5b8e645bb9e3d4031156f2444796d166ab2545dbf3174c0691a9c8440"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift: Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in PeekabooAgentService.runGenerationLoopBody at line 552. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f084e81f83daf0b5075d9ff80017047797ffb5ca097a07c71774e3b88e1343"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Apps/CLI/Sources/PeekabooCLI/Commands/System/DaemonCommand.swift: Apps/CLI/Sources/PeekabooCLI/Commands/System/DaemonCommand.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in DaemonStatusPrinter.render at line 645. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/System/DaemonCommand.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":"Apps/CLI/Sources/PeekabooCLI/Commands/System/DaemonCommand.swift"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a8cd214a2fe3ff0f2f7d29220f53409d85ab9a5bc3727483d04b5d9e62ad0f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultContracts.swift: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultContracts.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in PeekabooBridgeRequestPlan.validateBoundTypedResponse at line 695. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultContracts.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultContracts.swift"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbc10a55f21eeb31ed4b83af0527ef9fe3d3af3c6ab47a124ee137b5a4ec720"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BPreparedActions.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BPreparedActions.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in DialogService.targetedDialogCandidates at line 279. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BPreparedActions.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BPreparedActions.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"3288eec0857651921b1fa42fb4e69c16185e2ca6585c7c004ea8ed28d812390d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in ScrollService.scrollWithLanePreparation at line 102. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ScrollService.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad09c73733e567c5b94dc69c2b8286e57dcbe2127c4fa90748db6f8400abeb9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in BoundedBackgroundWindowAX.setGeometryValue at line 1341. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BStateOperations.swift"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed9f884f479d745865e2b553e4801bf69b2eb7fcc0beed63ab294fb546bb1cd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand.swift: Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in SeeCommand.run at line 158. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand.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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e05ee80b512eea558720f3fd5560fbd25dddb43132ff421fa7883debd84ae7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionService.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionService.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in ElementDetectionService.inspectReadOnlyElements at line 330. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionService.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionService.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e0f482c779294e71b4bdd678c946664c15398dee0d8a96c60e4ba10a111a9d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BDetectionPipeline.swift: Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BDetectionPipeline.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in SeeCommand.requireBoundTreeOnlyEvidence at line 206. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BDetectionPipeline.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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BDetectionPipeline.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"b468e49dc4904c743162bba1020f8fc5c88b84a608166989b6c76ff4c9847276"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in PeekabooBridgeServer.handleApplicationRequest at line 8. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BServiceHandlers.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1787368b03b57d95b54122d6fd96a88ac3820371d627644450c5cf30c39cf0b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift: Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in PeekabooAgentService.runStreamingLoopBody at line 201. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd42bc66ef78908ed19e76f7c813169e21df4598712622b3fe06a9db1b7fbdf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AXMutationObservation.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AXMutationObservation.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in DetachedAXMutationReader.readSynchronously at line 140. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AXMutationObservation.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AXMutationObservation.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7fe5a2ce1c6ace4f46c73fff1cec950081d11ef128be8250e724655d0f39d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in PeekabooBridgeDesktopObservationBinding.validateWindowEvidence at line 612. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"6611298c481be2ff3255f2e1ed7bad501f15513c7361565988a1dbc49172d996"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/Tools/AgentSystemPrompt.swift: Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/Tools/AgentSystemPrompt.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in AgentSystemPrompt.interactionSection at line 263. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/Tools/AgentSystemPrompt.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/Tools/AgentSystemPrompt.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6881e9a5a6ae5c1823d263a44fca9aaf4d535788235f2b6a2652d77186aa85a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BOutput.swift: Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BOutput.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in SeeCommand.outputTextResults at line 164. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BOutput.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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BOutput.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"501436984812f946c44b2c398a2e5e8e018590dc7541348958bc8967dfb9f30a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/final-qualification/qualification-manifest.mjs: scripts/final-qualification/qualification-manifest.mjs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in qualification-manifest.projectInput at line 2799. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- scripts/final-qualification/qualification-manifest.mjs\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/final-qualification/qualification-manifest.mjs"},"region":{"startLine":2799}}}],"partialFingerprints":{"codehealthFindingId/v1":"c117617e8216d611f3925bab7d60c9fbeae570fac15b4676ca703c6bc9c9898c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionSequenceAccumulator.swift: Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionSequenceAccumulator.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in DesktopActionSequenceAccumulator.interruptedBatch at line 229. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionSequenceAccumulator.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":"Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionSequenceAccumulator.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"3153db2dec5c952e77e6ea540f66775b7d0df96f01b498085b0609f2c1a5be3d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowRoutedPointerDriver.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowRoutedPointerDriver.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in WindowRoutedPointerDriver.scrollTrackingDispatch at line 462. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowRoutedPointerDriver.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowRoutedPointerDriver.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"b054cbc0192f987d24c71e0681e729a7c85adff7774a9d4795ee6abdfe150b87"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand.swift: Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ScrollCommand.run at line 43. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e3ca7414ac4d5c9804b8ab26c9b72e16d0d44d8ec16d00e1267377dca51b191"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in WindowEnumerationContext.mergeWindowInventory at line 439. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5a79e7236fd416c55ab9d4c23a38d2f404dd00a4875feb1f194aab55efa65b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BMutationProof.swift: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BMutationProof.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in PeekabooBridgeServer.windowMutationResponse at line 83. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BMutationProof.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BMutationProof.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"749275b830725eed97183f6cb3145c46a37e5b744a68a1fc0f7f27c59f6d5fd5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDesktopObservationService.swift: Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDesktopObservationService.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in RemoteDesktopObservationService.observeActionResult at line 97. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDesktopObservationService.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":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDesktopObservationService.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"701f9068c2836691485e5904f3d29631c415bf282ed078cda6a15ce8fb3db958"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementLookup.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementLookup.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in UIAutomationService.requireExactWindowKeyboardFocus at line 75. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementLookup.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementLookup.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53ca9cd6349b18b77e14a6f995586539ada454a6214f472a1fa1ccaa2afdccd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundWindowChromeReader.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundWindowChromeReader.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in Reader.read at line 91. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundWindowChromeReader.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundWindowChromeReader.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da0fa2d777ef8429b41a4ceac3f69b18c82fa40e7924923d81321e244d9283b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserCommand.swift: Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserCommand.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in BrowserCommand.arguments at line 243. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserCommand.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":"Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserCommand.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2f30c389272a51641be6156120f3731ad7d99738f973576e14bba2a18e14f5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationTargetResolver.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationTargetResolver.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ObservationTargetResolver.resolveApplication at line 139. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationTargetResolver.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationTargetResolver.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"d09ce2a267e2e482d250cb67b8cd3439b278b784cdb45df5d8689e62257d20ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand\u002BValidation.swift: Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand\u002BValidation.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in ClickCommand.validate at line 12. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand\u002BValidation.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand\u002BValidation.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1364f20b138fbb234492b57dc589fcbb42094b37d633cfd3eec4676b0c4f8dd9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: peekaboo-mcp.js: peekaboo-mcp.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in PeekabooMCPWrapper.start at line 42. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- peekaboo-mcp.js\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":"peekaboo-mcp.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0a3ec1ea9d44417ea9b87825fcb7b528cd8ab6e62ec04584065e4a0e6e195c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BBrowser.swift: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BBrowser.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in PeekabooBridgeClient.receiptBoundBrowserRequest at line 369. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BBrowser.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BBrowser.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13128440a6f3e860162eaf6023f10eda55d940bdeb7e0d33da0be08b6590093"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionResultBuilder.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionResultBuilder.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in ElementDetectionResultBuilder.makeResult at line 6. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionResultBuilder.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionResultBuilder.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"9441396c7a2f7548556cf56d9b1f4d4247253de5bb1042d2cc60fec73a353497"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/final-qualification/managed-launcher.mjs: scripts/final-qualification/managed-launcher.mjs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in managed-launcher.runManagedLaunch at line 318. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- scripts/final-qualification/managed-launcher.mjs\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/final-qualification/managed-launcher.mjs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"565df0eaf1ff1928462a82f4afb6b8f4b520496062d58e9b39a94b2ea41334a6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogs.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogs.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in DialogService.executeFileDialog at line 43. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogs.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogs.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed9e000ddf2a7deaaa82ab005b706ebad76697b2ba4f0e96a17105275dfdedd1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureSession\u002BLoop.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureSession\u002BLoop.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in WatchCaptureSession.captureFrames at line 127. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureSession\u002BLoop.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureSession\u002BLoop.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"14dc6b49c69145039528be79e32507d75c8875c4fc2bb57af74de5a3fadf0b3b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPPageRoutingContract.swift: Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPPageRoutingContract.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in BrowserMCPPageRoutingContract.capabilityContract at line 211. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPPageRoutingContract.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPPageRoutingContract.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4d812f6bd47a7d1ce0e07b4f27cca6a2b9e904babcf5117341ca435f5cf9fb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BBrowserConnect.swift: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BBrowserConnect.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in PeekabooBridgeServer.handleBrowserConnect at line 27. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BBrowserConnect.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BBrowserConnect.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a08b395c5401f3122f7174778df7e1d2c1c61f243bfcea181a67ed4481b2c3b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogNavigation.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogNavigation.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in DialogService.navigateToDirectory at line 178. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogNavigation.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogNavigation.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b26380e41663efcaeb2b4d012373c7a5c541791fc52f5feb9ab90da39a7110"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/docs-list.mjs: scripts/docs-list.mjs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in docs-list.extractMetadata at line 39. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- scripts/docs-list.mjs\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/docs-list.mjs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb38e4cc635528fb0b8a073bf8e847d6f965e1f90442e43bf5cf11ca459ef7f6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationSessionClaim.swift: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationSessionClaim.swift changed 16 times in last 90 days and 11 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is PeekabooBridgeNegotiatedSessionCapabilities.offersSetValueVerification at line 24), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(menubar): prepare clicks within an explicit app owner (#977)\u201D; \u201Cfix(dialog): retain exact file-panel ownership\u201D; \u201Cfix(paste): fence exact-window clipboard delivery (#894)\u201D; \u201Cfix(bridge): verify typed native value readbacks (#815)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationSessionClaim.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationSessionClaim.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"316e5e7f333ec5543c13c4b0ea76326653b4a37b724ca33ece8ab61016bc1289"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandRuntime.swift: Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandRuntime.swift changed 16 times in last 90 days and 10 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is CommandRuntime.init at line 264), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(runtime): declare route-specific permission needs for input commands (#1088)\u201D; \u201Cfix(cli): honor classic verify screenshots on bridge hosts (#849)\u201D; \u201Cfix(cli): avoid capture admission for screenshot-free verify (#844)\u201D; \u201Cfix(see): preserve read-only observation snapshots (#809)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandRuntime.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandRuntime.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"270bfe18d5bb8696a66282d8a01a1382f8b6b97bdf9c0d75478db69757bb7e2c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooCore/Sources/PeekabooCore/Support/RemotePeekabooServices.swift: Core/PeekabooCore/Sources/PeekabooCore/Support/RemotePeekabooServices.swift changed 16 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is RemotePeekabooServices.init at line 34), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(dialog): retain exact file-panel ownership\u201D; \u201Cfix(paste): fence exact-window clipboard delivery (#894)\u201D; \u201Cfix(agent): keep automatic captures on a proven classic host (#778)\u201D; \u201Cfix: background input, bridge error surfacing, exact-app targeting, and system permission dialogs (#743)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooCore/Support/RemotePeekabooServices.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":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemotePeekabooServices.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"9844aac1274a2defe0f422cb9b0cd81a3ec3587f9bdb837d8f6d1ec5ae204bef"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift: Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift changed 12 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is AutomationServiceBridge.click at line 48), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(menubar): prepare clicks within an explicit app owner (#977)\u201D; \u201Cfix(paste): fence exact-window clipboard delivery (#894)\u201D; \u201Cfix(hotkey): preserve exact background select-all receipts (#796)\u201D; \u201Cfix(bridge): bind element mutations to process generation (#640)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandServiceBridges.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c1f770d77bb48544e33e950b8ff9632c4e8b3cff87d8e05d4922f84f9eef95"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService.swift changed 11 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is UIAutomationService.init at line 173), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(paste): fence exact-window clipboard delivery (#894)\u201D; \u201Cfix(automation): settle background AX writes before dependent input (#823)\u201D; \u201Cfix: background input, bridge error surfacing, exact-app targeting, and system permission dialogs (#743)\u201D; \u201Cfix(type): report truthful background delivery (#638)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"0704eecd5bc012266c923300e6a9158f049424a71c65e2579b57819385fa6131"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift changed 10 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is ScrollRequest.validatePointSelector at line 107), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(automation): distinguish unreadable focus window evidence (#912)\u201D; \u201Cfix: preserve no-input refusals during background paste preparation (#902)\u201D; \u201Cfix(bridge): verify typed native value readbacks (#815)\u201D; \u201Cfix(scroll): reject overflowing amounts before dispatch (#769)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/UIAutomationOperationModels.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a73f9f39441ccc8ae4422f552595456f128141e5e93208ca1dad20a2a1defb"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Apps/CLI/Sources/PeekabooCLI/Commands/Core/LearnCommand.swift: Apps/CLI/Sources/PeekabooCLI/Commands/Core/LearnCommand.swift changed 8 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is LearnCommand.renderGuide at line 231), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: preserve background typing caret state and clarify key names (#915)\u201D; \u201Cfix(clipboard): keep unattended native reads silent (#841)\u201D; \u201Cfix(cli): keep learn on injected runtime (#653)\u201D; \u201Cfix(cli): hide foreground-only tools from background catalogs (#595)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/Core/LearnCommand.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/LearnCommand.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c8e26ec909cf8e2ac2cca53658b0746b8b6c286d7290b53c133a95aa1d66c4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Apps/CLI/Sources/PeekabooCLI/CLI/PeekabooEntryPoint.swift: Apps/CLI/Sources/PeekabooCLI/CLI/PeekabooEntryPoint.swift changed 7 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is PeekabooEntryPoint.swift.executePeekabooCLI at line 18), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cli): accept renamed or symlinked executables (#1011)\u201D; \u201Cfix(cli): defer configuration loading until runtime (#828)\u201D; \u201Cfix(paste): bound exclusive paste lock waits at 15s (#793)\u201D; \u201Cfix(capture): preserve GUI readiness and classic recovery (#684)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/CLI/PeekabooEntryPoint.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":"Apps/CLI/Sources/PeekabooCLI/CLI/PeekabooEntryPoint.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3c90f206224049b5b7a755f1fba1bbf8439aa3016e4b2174431539f9c66917"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: scripts/test-terminal-archive-policy.mjs: scripts/test-terminal-archive-policy.mjs changed 7 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is test-terminal-archive-policy.zipFixture at line 24), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: drain ZIP entry readers before closing archive handles (#986)\u201D; \u201Cfix(release): reject non-ASCII tar metadata before decoding (#966)\u201D; \u201Cfix(release): reject archive children beneath regular files\u201D; \u201Cfix(release): resolve composed artifact symlinks before containment checks (#954)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- scripts/test-terminal-archive-policy.mjs\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/test-terminal-archive-policy.mjs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aacdfb8f90979d802404414030f7b310bbd806ddff36f227a17e8b5c05fab8a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/SnapshotMutationRecordingManager.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/SnapshotMutationRecordingManager.swift changed 6 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is SnapshotMutationRecordingManager.ownsSnapshot at line 101), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cli): enforce pixel-only observation deadlines (#870)\u201D; \u201Cfix(cli): report only persisted snapshot map paths (#819)\u201D; \u201Cfix: enforce snapshot mutation leases across CLI and MCP (#789)\u201D; \u201Cfix(mcp): wait for queries with pinned Accessibility (#785)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/SnapshotMutationRecordingManager.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKitTestSupport/SnapshotMutationRecordingManager.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab38ad3f33d2db78aa067ae74ab5ba73211dbaef4e19027122c31d5cef232a4e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BExecution.swift: Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BExecution.swift changed 9 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is AgentCommand.makeAgentJSONResponse at line 140), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(agent): restore streaming callbacks and elide unused events (#863)\u201D; \u201Cfix(agent): distinguish narrative from recorded outcomes (#818)\u201D; \u201Cfix(agent): preserve progress on step-limit failure (#814)\u201D; \u201Cfix(cli): keep agent task content out of public logs (#652)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BExecution.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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BExecution.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a64c27c3d49cd703cd27f3cc02399f7e1afb9c14c7703a67db6e49f30282331"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is WindowManagementService.windowById at line 108), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(windows): keep same-name apps apart in focused-window lookups (#1165)\u201D; \u201Cfix(see): resolve exact windows exposed only through AXFocusedWindow or AXMainWindow (#1156)\u201D; \u201Cfix(windows): describe an empty window index range (#1150)\u201D; \u201Cfix(automation): recover the PID of apps that re-exec themselves (#1121)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowManagementService\u002BResolution.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"986dbc2472213ac32f873ec8d5698458be8ef462681a9437bba8d4735663ebc8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/UIAutomationTarget.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/UIAutomationTarget.swift changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is UIAutomationTarget.pinningCurrentFocusedElement at line 244), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(paste): fence exact-window clipboard delivery (#894)\u201D; \u201Cfix(bridge): preserve background Select All receipts (#837)\u201D; \u201Cfix(hotkey): preserve exact background select-all receipts (#796)\u201D; \u201Cfix(type): report truthful background delivery (#638)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/UIAutomationTarget.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/UIAutomationTarget.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"cefd41bfc0c3b596957a574ab323ab1f2e72d96b08a9e113e074eb11fc58831b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementActions.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementActions.swift changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is UIAutomationService.resolveActionTarget at line 295), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(automation): resolve custom accessibility action titles\u201D; \u201Cfix(automation): settle background AX writes before dependent input (#823)\u201D; \u201Cfix(bridge): verify typed native value readbacks (#815)\u201D; \u201Cfix(bridge): bind element mutations to process generation (#640)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementActions.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BElementActions.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c9e34e1b60761776a5d8009508961623048979998405e9d38bfca966227146"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Apps/Mac/Peekaboo/Core/PeekabooAgent.swift: Apps/Mac/Peekaboo/Core/PeekabooAgent.swift changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is PeekabooAgent.runQueuedTasks at line 214), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(mac): keep a streaming reply ahead of a queued follow-up (#1126)\u201D; \u201Cfix(mac): mark a failed tool row as failed (#1134)\u201D; \u201Cfix(mac): open the recent session that was clicked (#1108)\u201D; \u201Cfix(mac): record chat prompts and replies once (#1117)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/Mac/Peekaboo/Core/PeekabooAgent.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":"Apps/Mac/Peekaboo/Core/PeekabooAgent.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb1ef55094ffda11c0ad920056af6707acc7e34fe150b8a597548603baed493"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooFoundation/Sources/PeekabooFoundation/StandardizedErrors.swift: Core/PeekabooFoundation/Sources/PeekabooFoundation/StandardizedErrors.swift changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is StandardizedError.recoverySuggestion at line 142), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(permissions): show macOS 27 Settings row names (#1078)\u201D; \u201Cfix(foundation): classify cooperative and URL cancellation (#1042)\u201D; \u201Cfix(bridge): bind element mutations to process generation (#640)\u201D; \u201Cfix(browser): preserve target lock guidance (#630)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooFoundation/Sources/PeekabooFoundation/StandardizedErrors.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":"Core/PeekabooFoundation/Sources/PeekabooFoundation/StandardizedErrors.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"a735efe89d9ebd2d8b2739d5c47dde72a0a8f85f6edd73d56506eb922dfc2d2e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Apps/CLI/Sources/PeekabooCLI/CLI/CommanderRuntimeExecutor.swift: Apps/CLI/Sources/PeekabooCLI/CLI/CommanderRuntimeExecutor.swift changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is CommanderRuntimeExecutor.invalidateSnapshotsAfterCommandIfNeeded at line 207), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cli): accept renamed or symlinked executables (#1011)\u201D; \u201Cfix(cli): render Agent dry runs before runtime admission (#776)\u201D; \u201Cfix(cli): bound mutation lock waits and preserve reservation ownership (#758)\u201D; \u201Cfix(browser): isolate caller capability sessions (#646)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/CLI/CommanderRuntimeExecutor.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":"Apps/CLI/Sources/PeekabooCLI/CLI/CommanderRuntimeExecutor.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a01f52c86b4f9a3a6aeef333a1b54b2fb459c6e0fd9d59a0f7236a08312a9b6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolExecutionPolicy.swift: Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolExecutionPolicy.swift changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is BackgroundOnlyToolPolicy.violation at line 173), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(clipboard): keep unattended native reads silent (#841)\u201D; \u201Cfix(browser): isolate caller capability sessions (#646)\u201D; \u201Cfix(cli): hide foreground-only tools from background catalogs (#595)\u201D; \u201Cfix(agent): align background capability guidance (#525)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolExecutionPolicy.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolExecutionPolicy.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd306cc95d77b570b3ea5821dd03a1bdffbe93bdbfc0f6e541015deb2ed63eb2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/WindowIdentityUtilities.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/WindowIdentityUtilities.swift changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is WindowIdentityService.isTopmostRenderableWindow at line 267), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(see): resolve exact windows exposed only through AXFocusedWindow or AXMainWindow (#1156)\u201D; \u201Cfix(automation): recover the PID of apps that re-exec themselves (#1121)\u201D; \u201Cfix: preserve exact window catalog evidence (#508)\u201D; \u201Cfix(automation): resolve exact windows the on-screen list omits (#505)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/WindowIdentityUtilities.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Utilities/WindowIdentityUtilities.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a65c5330b77bb625410c4f7fde6386f4da8a2a799a292ac829cbaa1c3bc15a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BWindow.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BWindow.swift changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is LegacyScreenCaptureOperator.captureWindow at line 7), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(automation): recover the PID of apps that re-exec themselves (#1121)\u201D; \u201Cfix(capture): stop inventing main-window state (#919)\u201D; \u201Cfix(automation): report hidden windows as off screen (#779)\u201D; \u201Cfix(capture): preserve exact popup and sheet extents (#689)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BWindow.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BWindow.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"38663e3954bbfb6fec2d4d4b5a0fcf35f61cdd29d0a4eb1d9b575c0baa3d324b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService.swift changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is ApplicationService.init at line 207), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(automation): recover the PID of apps that re-exec themselves (#1121)\u201D; \u201Cfix(automation): preserve mutations with inaccessible background services (#678)\u201D; \u201Cfix(app): bound retained native metadata work (#674)\u201D; \u201Cfix(app): make background hide outcome truthful (#619)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationService.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"e054571d87610e05e5216663aedf21a96df75969ddeddcbadc7a8147cbbe2548"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Apps/Mac/Peekaboo/PeekabooApp.swift: Apps/Mac/Peekaboo/PeekabooApp.swift changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is AppDelegate.connectToState at line 267), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(certification): admit the GUI controller and preserve receipt scopes (#891)\u201D; \u201Cfix(app): refuse CLI-style bundle invocation\u201D; \u201Cfix(mac): preserve menu-bar-only activation during presentation (#679)\u201D; \u201Cfix(mac): use prompt-free shared credential storage (#651)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/Mac/Peekaboo/PeekabooApp.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":"Apps/Mac/Peekaboo/PeekabooApp.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"136df648bf4307e315e3e8dc8dfe1195bbd787cd8341696caaa83a643270ce18"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift: Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is CommandUtilities.swift.validatedMutationSelector at line 254), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cli): bound mutation lock waits and preserve reservation ownership (#758)\u201D; \u201Cfix(cli): validate system selectors before runtime (#614)\u201D; \u201Cfix(cli): keep command timeouts bounded under load (#532)\u201D; \u201Cfix: refuse fuzzy application mutation targets (#521)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommandUtilities.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b56607d7f6065b28a7943807e6ffde8467ebcb20769aad6b14f9b6875acb21"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift: Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is ActionTool.execute at line 44), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(automation): resolve custom accessibility action titles\u201D; \u201Cfix: enforce snapshot mutation leases across CLI and MCP (#789)\u201D; \u201Cfix(bridge): bind element mutations to process generation (#640)\u201D; \u201Cfix(agent): align background capability guidance (#525)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b5c9db096099993429b248cf7752171af47a85551e97ab868b385fc3e6e65d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService.swift changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is DialogError.errorDescription at line 24), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(dialog): select files in Open panels through Go to Folder (#1167)\u201D; \u201Cfix(dialog): reject search fields during filename entry (#1159)\u201D; \u201Cfix(dialog): retain exact file-panel ownership\u201D; \u201Cfix: background input, bridge error surfacing, exact-app targeting, and system permission dialogs (#743)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed4e1dc5cdd24833f0075e6799b209c4eb9cab58a35d9b63319349ecffc68f1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BModels.swift: Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BModels.swift changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is BridgeCandidateRejectionReport.runtime at line 301), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cli): distinguish Bridge handshake and capture readiness (#807)\u201D; \u201Cfix(browser): isolate untrusted historical Bridge hosts (#740)\u201D; \u201Cfix(capture): preserve GUI readiness and classic recovery (#684)\u201D; \u201Cfix(cli): explain Bridge local fallback (#541)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BModels.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/BridgeCommand\u002BModels.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39843ad0c8f387ecaac7727fa0e1bdba1e9fa10651d83cdbb5d35ef026ebc2f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardPasteTransactionGate.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardPasteTransactionGate.swift changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is ClipboardPasteTransactionGate.withExclusiveTransaction at line 113), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(paste): wait a little longer before restoring the clipboard (#1140)\u201D; \u201Cfix(paste): preserve newer clipboard updates (#835)\u201D; \u201Cfix(paste): bound exclusive paste lock waits at 15s (#793)\u201D; \u201Cfix(paste): cap restore delay at 10s (#759)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardPasteTransactionGate.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardPasteTransactionGate.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"06de9e3dea643ff899d36051170dcca3c7aacd226c4626a51879d1e91c2cf38f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/SystemIdentityResolver.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/SystemIdentityResolver.swift changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is SystemIdentityResolver.repinWindowMutationIdentity at line 474), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(automation): report hidden windows as off screen (#779)\u201D; \u201Cfix: exclude confirmed dead processes from mutation inventory (#721)\u201D; \u201Cfix(automation): preserve mutations with inaccessible background services (#678)\u201D; \u201Cfix: preserve exact window catalog evidence (#508)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/SystemIdentityResolver.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/SystemIdentityResolver.swift"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"688416ac68bb66e3589ba6bda310fb7c7d51e2e6d4bb53bf9f7c9cda6e8173f1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.swift changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is DetectedElement.selectedTextRange at line 133), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(see): expose safe application-partial AX reads (#593)\u201D; \u201Cfix(observation): preserve process-scoped AX read receipts (#556)\u201D; \u201Cfix(bridge): bind read-only application selectors (#544)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/ElementDetectionModels.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"46231172b2d576abd6c17a3fcf762791d3a55a527e0aaae487d98ff98e577f2e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BToolset.swift: Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BToolset.swift changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is PeekabooAgentService.logToolsetDetails at line 120), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(browser): isolate caller capability sessions (#646)\u201D; \u201Cfix(cli): hide foreground-only tools from background catalogs (#595)\u201D; \u201Cfix(cli): align discovery with execution policy (#583)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BToolset.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BToolset.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6cd53b17363b87678eb9fa1c2bf2d2647355ed6069132d19556875fc57f94e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Apps/CLI/Sources/PeekabooCLI/Helpers/TerminalColors.swift: Apps/CLI/Sources/PeekabooCLI/Helpers/TerminalColors.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is TerminalColors.swift.updateTerminalTitle at line 28), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cli): strip terminal controls from titles (#964)\u201D; \u201Cfix(cli): bound git waits in build staleness checks\u201D; \u201Cfix(cli): bound VibeTunnel title process wait\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Helpers/TerminalColors.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":"Apps/CLI/Sources/PeekabooCLI/Helpers/TerminalColors.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d58966281ea772d075a89af0b051f09d484ec96917540107277196842487ec9"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BSupport.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BSupport.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is LegacyScreenCaptureOperator.captureWindowWithCGWindowList at line 8), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(capture): stop inventing main-window state (#919)\u201D; \u201Cfix(automation): report hidden windows as off screen (#779)\u201D; \u201Cfix(capture): preserve exact popup and sheet extents (#689)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BSupport.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/LegacyScreenCaptureOperator\u002BSupport.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"426aad377bc60cae611ddb341a006f5ef4e1586d80048944f776e6f0686dda2c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is ScreenCaptureKitOwnerLease.secureAndValidateLockFile at line 632), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(capture): recover readiness after slow preparation (#896)\u201D; \u201Cfix(capture): verify close-on-fork ownership by behavior\u201D; \u201Cfix(capture): preserve GUI readiness and classic recovery (#684)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2468c8c7706ccb05cb41bc2595bc0dc3c110129ded3b347bd83eae3411626e2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is UIAutomationService.keySequence at line 434), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(type): honor background policies and preserve SDK defaults\u201D; \u201Cfix: background input, bridge error surfacing, exact-app targeting, and system permission dialogs (#743)\u201D; \u201Cfix(snapshots): bind references to producer hosts (#633)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/UIAutomationService\u002BTypingOperations.swift"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"b245ffebe1ecf6a87d74b7a45ba734b0a629f1dfee3254fc657711710c06aefb"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteBrowserMCPClient.swift: Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteBrowserMCPClient.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is RemoteBrowserMCPClient.openBrowserMCPScopedSession at line 82), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(browser): isolate caller capability sessions (#646)\u201D; \u201Cfix(browser): preserve target lock guidance (#630)\u201D; \u201Cfix(browser): bind channel connections to native endpoint (#622)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteBrowserMCPClient.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":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteBrowserMCPClient.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4603418be4dac69fcf7c5c01a3af6472ba7aca95bd6609e7cd8385fdca302d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Apps/CLI/Sources/PeekabooCLI/CLI/CommanderRuntimeRouter\u002BHelp.swift: Apps/CLI/Sources/PeekabooCLI/CLI/CommanderRuntimeRouter\u002BHelp.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is CommanderRuntimeRouter.kebabCased at line 214), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cli): add actionable newcomer recovery (#590)\u201D; \u201Cfix(cli): align discovery with execution policy (#583)\u201D; \u201Cfix(cli): deduplicate runtime flags in help (#571)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/CLI/CommanderRuntimeRouter\u002BHelp.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":"Apps/CLI/Sources/PeekabooCLI/CLI/CommanderRuntimeRouter\u002BHelp.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c9634bae5ef98392d829e3c00508beb5e8eea4db7f44e04cbdba9abfeae19b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogDiscoveryReaders.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogDiscoveryReaders.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is DialogDiscoveryReaders.applicationInfo at line 124), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(dialog): select files in Open panels through Go to Folder (#1167)\u201D; \u201Cfix: bound targeted dialog metadata reads (#798)\u201D; \u201Cfix(dialog): bound structural AX discovery off main actor (#788)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogDiscoveryReaders.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogDiscoveryReaders.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4d9d7e7ea64274b1536e80e062a5f4e735acd26606dcd287659f522247cd0b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogFilename.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogFilename.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is DialogService.updateFilename at line 52), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(dialog): select files in Open panels through Go to Folder (#1167)\u201D; \u201Cfix(dialog): reject search fields during filename entry (#1159)\u201D; \u201Cfix(dialog): retain exact file-panel ownership\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogFilename.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BFileDialogFilename.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0c3e2842ba8cc94ab741ab19ab0b142b38e82db4f3842e8ba691eeec106c09"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Apps/Mac/Peekaboo/Core/ConversationSession.swift: Apps/Mac/Peekaboo/Core/ConversationSession.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is SessionStore.generateTitleForSession at line 124), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(mac): record chat prompts and replies once (#1117)\u201D; \u201Cfix(mac): keep the menu bar session in sync (#1107)\u201D; \u201Cfix(mac): keep an unreadable session file (#1102)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/Mac/Peekaboo/Core/ConversationSession.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":"Apps/Mac/Peekaboo/Core/ConversationSession.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6d9ec7117ed006feb53a4e38cca8a0e97fdcee740d46bc1943f0106d47e85a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooFoundation/Sources/PeekabooFoundation/PeekabooError.swift: Core/PeekabooFoundation/Sources/PeekabooFoundation/PeekabooError.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is PeekabooError.category at line 325), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(permissions): show macOS 27 Settings row names (#1078)\u201D; \u201Cfix(foundation): render out-of-range error durations without trapping (#981)\u201D; \u201Cfix(foundation): preserve fractional timeout durations (#946)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooFoundation/Sources/PeekabooFoundation/PeekabooError.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":"Core/PeekabooFoundation/Sources/PeekabooFoundation/PeekabooError.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8285b444b27c9b41cb30f2153ac32b39fa7b35237e95c342fbe63c86f53006"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Apps/CLI/Sources/PeekabooCLI/CLI/CommanderRuntimeRouter.swift: Apps/CLI/Sources/PeekabooCLI/CLI/CommanderRuntimeRouter.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is CommanderRuntimeRouter.resolve at line 13), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cli): accept renamed or symlinked executables (#1011)\u201D; \u201Cfix(cli): deduplicate runtime flags in help (#571)\u201D; \u201Cfix(cli): reject empty mutation invocations (#538)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/CLI/CommanderRuntimeRouter.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":"Apps/CLI/Sources/PeekabooCLI/CLI/CommanderRuntimeRouter.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef220213efce97b1eaf65f5a5de40a970f1e19fbf9441fe24c6e8a4b67c52d1b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift: Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is ConfigurationManager.validate at line 107), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(config): refuse mutation after an existing configuration read fails (#1007)\u201D; \u201Cfix(config): require HTTP 200 for provider probes (#560)\u201D; \u201Cfix(config): reject invalid custom-provider URLs\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.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":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BCustomProviders.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2bfd80e77304809b08a5e8c0cb6a4954d3a52dd7f3d80641c9dffad30512a06"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BScreenshots.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BScreenshots.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is SnapshotManager.storeScreenshot at line 8), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(snapshots): retain persisted detection classification (#989)\u201D; \u201Cfix(snapshots): preserve managed screenshot inputs during reuse (#987)\u201D; \u201Cfix(snapshots): bind references to producer hosts (#633)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BScreenshots.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BScreenshots.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d869d296fbf7cea81e531e8003a0826c18b8052f14733beb61615769fa9da7"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is SnapshotManager.getDetectionResult at line 159), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(snapshots): retain persisted detection classification (#989)\u201D; \u201Cfix(cli): report only persisted snapshot map paths (#819)\u201D; \u201Cfix(snapshots): bind references to producer hosts (#633)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"7652fe074dabbf1a5eb0bcd0713c85e06f8374efb065960ed8184584f71be0dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.swift: Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is RemoteDialogService.preDispatchFailure at line 308), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(dialog): retain exact file-panel ownership\u201D; \u201Cfix: background input, bridge error surfacing, exact-app targeting, and system permission dialogs (#743)\u201D; \u201Cfix(dialog): prefer active sheets beneath structural parents (#627)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.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":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteDialogService.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"53124ca1d4adbba047212286b80d0327c3d0e8bfa811142856c7fd688571e814"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/HotkeyService\u002BPlanning.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/HotkeyService\u002BPlanning.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is HotkeyService.isPasteShortcut at line 6), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(paste): fence exact-window clipboard delivery (#894)\u201D; \u201Cfix(bridge): preserve background Select All receipts (#837)\u201D; \u201Cfix(hotkey): preserve exact background select-all receipts (#796)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/HotkeyService\u002BPlanning.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/HotkeyService\u002BPlanning.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d3acede973e1cdac24d7cff720e868557c217613a20d30887cb24a767c9ae9"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Apps/CLI/Sources/PeekabooCLI/Commands/AI/VerifyCommand.swift: Apps/CLI/Sources/PeekabooCLI/Commands/AI/VerifyCommand.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is VerifyCommand.predicates at line 162), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cli): honor classic verify screenshots on bridge hosts (#849)\u201D; \u201Cfix(cli): avoid capture admission for screenshot-free verify (#844)\u201D; \u201Cfix(cli): honor verify unknown exit status (#649)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/AI/VerifyCommand.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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/VerifyCommand.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce70545d076b8c75c1b9fd7b64292b61b6d8ba63141bc9cf44344c3154c23352"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClipboardTool.swift: Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClipboardTool.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is ClipboardTool.execute at line 81), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(clipboard): keep unattended native reads silent (#841)\u201D; \u201Cfix(cli): align discovery with execution policy (#583)\u201D; \u201Cfix(clipboard): bound file payload reads (#561)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClipboardTool.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ClipboardTool.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d468058f6bbdabfc67d16d3fff82571584374c294d7364b535719a6bb29da2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService\u002BSpecialKeys.swift: Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService\u002BSpecialKeys.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is TypeServiceSpecialKeyMapping.keyCode at line 66), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: repair foreground focus and keyboard release (#803)\u201D; \u201Cfix(type): honor background policies and preserve SDK defaults\u201D; \u201Cfix(type): report truthful background delivery (#638)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService\u002BSpecialKeys.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService\u002BSpecialKeys.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c61d138a00404409b2367fdf97b10f12262158dc48045941b5ae61bdeb7a418"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BBindings.swift: Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BBindings.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is InitCommand.applyCommanderValues at line 7), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(config): honor print-path without launching an editor\u201D; \u201Cfix(cli): add an optional config editor timeout\u201D; \u201Cfix(cli): keep credentials out of argv (#582)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BBindings.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BBindings.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80c996fb428b237b714d03d28f93b23c2d9e503514d004a5e85f845c0efa13b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BInitShowEdit.swift: Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BInitShowEdit.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 1 (its worst body is PeekabooConfigMessages.initGuidance at line 8), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cli): add an optional config editor timeout\u201D; \u201Cfix(cli): keep credentials out of argv (#582)\u201D; \u201Cfix(cli): stop env parsing config editor options (#562)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BInitShowEdit.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/ConfigCommand\u002BInitShowEdit.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f500bddbbe2be6b3d7b7f8d13c055d3b90d728e39df3206d3e828d4e9ae6e16"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServiceProviding.swift: Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServiceProviding.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is PeekabooBridgeServiceProviding.browserConnect at line 90), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(capture): preserve GUI readiness and classic recovery (#684)\u201D; \u201Cfix(browser): isolate caller capability sessions (#646)\u201D; \u201Cfix(browser): bind channel connections to native endpoint (#622)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServiceProviding.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServiceProviding.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83434194f1dffdea5057c4387c6b01e91aae4e2bdd5fc2d753d7fcecd03f6f6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserBridge.swift: Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserBridge.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is PeekabooBridgeJSONValue.fromAny at line 276), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(browser): isolate caller capability sessions (#646)\u201D; \u201Cfix(browser): preserve target lock guidance (#630)\u201D; \u201Cfix(browser): bind channel connections to native endpoint (#622)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserBridge.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":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BBrowserBridge.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"a989551543d727de729a36bd453cc62bca516337f3d890c44795f7bf064793ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand.swift: Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is SwitchSubcommand.run at line 220), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(cli): require foreground consent for shared UI (#639)\u201D; \u201Cfix(cli): hide foreground-only tools from background catalogs (#595)\u201D; \u201Cfix: refuse fuzzy application mutation targets (#521)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 01:26:10 -08:00\u0027 --until=\u00272026-11-14 01:26:10 -08:00\u0027 --full-history --no-merges -- Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand.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":"Apps/CLI/Sources/PeekabooCLI/Commands/System/AppCommand.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"542eacbee03de9deed6381aca1030643861da25edbcdd85226687de75ca3b08a"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060package.json\u0060 makes this repository a deployable product (line 8)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f571cc2c2542badcf90ae46e31e24c43d9ca80090c40fca9fd1434a5c34546"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060browserUrl\u0060 spells \u0060Url\u0060 where 67 names in the project spell it \u0060URL\u0060: 67 of 68 names in project Apps~CLI~PeekabooCLI spell the token \u0060URL\u0060 (67 of 68; unit: names in project Apps~CLI~PeekabooCLI containing \u0060URL\u0060). Peers: ConfigurationManager.getOllamaBaseURL (Apps/CLI/Sources/PeekabooCLI/CLI/Configuration/CLIConfiguration.swift:87); SeeCommand.makeOutputURL (Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelCaptureFiles.swift:37); SeeCommand.makePixelObservationRequest(outputURL) (Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BPixelObservationRequest.swift:56); DaemonLaunchPolicy.launchDaemon(executableURL) (Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonLaunchPolicy\u002BLaunch.swift:101); DaemonLaunchPolicy.runtimeBuildIdentity(executableURL) (Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonLaunchPolicy.swift:71). Rename to \u0060browserURL\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/MCP/BrowserCommand.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde14e1ab31451902fccd5f28fb2eaa46c42ea3dcd49c8210e485046c56abb0f"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060durationMS\u0060 spells \u0060MS\u0060 where 36 names in the project spell it \u0060Ms\u0060: 36 of 38 names in project Core~PeekabooAutomationKit~PeekabooAutomationKit spell the token \u0060Ms\u0060 (36 of 38; unit: names in project Core~PeekabooAutomationKit~PeekabooAutomationKit containing \u0060Ms\u0060). Peers: CaptureFrameInfo.timestampMs (Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureFrameModels.swift:15); CaptureFrameInfo.init(timestampMs) (Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureFrameModels.swift:25); CaptureStats.totalDurationMs (Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureFrameModels.swift:50); CaptureStats.samplingDurationMs (Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureFrameModels.swift:52); CaptureStats.durationMs (Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureFrameModels.swift:75). Rename to \u0060durationMs\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationResultModels.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"389a4571a9bdf6db3f0ad9d057690d15db10f90b9be59fe216d5ed5faf952de2"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060durationMS\u0060 spells \u0060MS\u0060 where 36 names in the project spell it \u0060Ms\u0060: 36 of 38 names in project Core~PeekabooAutomationKit~PeekabooAutomationKit spell the token \u0060Ms\u0060 (36 of 38; unit: names in project Core~PeekabooAutomationKit~PeekabooAutomationKit containing \u0060Ms\u0060). Peers: CaptureFrameInfo.timestampMs (Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureFrameModels.swift:15); CaptureFrameInfo.init(timestampMs) (Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureFrameModels.swift:25); CaptureStats.totalDurationMs (Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureFrameModels.swift:50); CaptureStats.samplingDurationMs (Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureFrameModels.swift:52); CaptureStats.durationMs (Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Core/Models/CaptureFrameModels.swift:75). Rename to \u0060durationMs\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationResultModels.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"68603fc69e0094529accecc95eb3aef3c95721f4b291d626aec373d2f4570fa8"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060ollamaBaseUrl\u0060 spells \u0060Url\u0060 where 74 names in the project spell it \u0060URL\u0060: 74 of 76 names in project Core~PeekabooCore~PeekabooAgentRuntime spell the token \u0060URL\u0060 (74 of 76; unit: names in project Core~PeekabooCore~PeekabooAgentRuntime containing \u0060URL\u0060). Peers: AgentSessionManager.sessionFileURL (Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentCompatibilityTypes.swift:456); AgentExecutionTraceSanitizer.looksLikeURL (Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentExecutionTrace.swift:879); AgentProcessLimitProbeProvider.baseURL (Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BProcessLimitProbe.swift:7); ReasoningReplayTarget.baseURL (Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift:1482); BrowserMCPChannelEndpointReservation.browserURL (Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPChannelEndpointResolver.swift:13). Rename to \u0060ollamaBaseURL\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/Configuration.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"6618a589687533dadd1b4a372a9d400e2d6a83f37c684786d41a16bc8ff27d33"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060ollamaBaseUrl\u0060 spells \u0060Url\u0060 where 74 names in the project spell it \u0060URL\u0060: 74 of 76 names in project Core~PeekabooCore~PeekabooAgentRuntime spell the token \u0060URL\u0060 (74 of 76; unit: names in project Core~PeekabooCore~PeekabooAgentRuntime containing \u0060URL\u0060). Peers: AgentSessionManager.sessionFileURL (Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentCompatibilityTypes.swift:456); AgentExecutionTraceSanitizer.looksLikeURL (Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentExecutionTrace.swift:879); AgentProcessLimitProbeProvider.baseURL (Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BProcessLimitProbe.swift:7); ReasoningReplayTarget.baseURL (Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift:1482); BrowserMCPChannelEndpointReservation.browserURL (Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPChannelEndpointResolver.swift:13). Rename to \u0060ollamaBaseURL\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/Configuration.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56509c07ec1f1e942ce96240197839a5cb71f07ce3ec78d507cf2cd134de394"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060highlightJson\u0060 spells \u0060Json\u0060 where 18 names in the project spell it \u0060JSON\u0060: 18 of 19 names in project @steipete/peekaboo spell the token \u0060JSON\u0060 (18 of 19; unit: names in project @steipete/peekaboo containing \u0060JSON\u0060). Peers: lib.sameJSON (scripts/final-qualification/lib.mjs:52); lib.decodeCanonicalBase64JSON (scripts/final-qualification/lib.mjs:205); lib.readStableJSON (scripts/final-qualification/lib.mjs:353); lib.readStableJSONLines (scripts/final-qualification/lib.mjs:365); playground-alert-lifecycle.readJSONReference (scripts/final-qualification/playground-alert-lifecycle.mjs:61). Rename to \u0060highlightJSON\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/build-docs-site.mjs"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d424b50bc3516dce2024b220a42cce7aaef321ab4c93a986b6783a5930d35d"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060caseId\u0060 spells \u0060Id\u0060 where 19 names in the project spell it \u0060ID\u0060: 19 of 20 names in project @steipete/peekaboo spell the token \u0060ID\u0060 (19 of 20; unit: names in project @steipete/peekaboo containing \u0060ID\u0060). Peers: qualification-manifest.derivedHeldPointerClientID (scripts/final-qualification/qualification-manifest.mjs:2412); validate-concurrent-run.operationInterval(monitorID) (scripts/final-qualification/validate-concurrent-run.mjs:119); validate-concurrent-run.agentBundleCorpus(expectedListenerInstanceID) (scripts/final-qualification/validate-concurrent-run.mjs:460); finalize-multi-target-certification.failure(slotID) (scripts/finalize-multi-target-certification.mjs:106); finalize-multi-target-certification.deterministicRequestID (scripts/finalize-multi-target-certification.mjs:375). Rename to \u0060caseID\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/validate-background-computer-use-report.mjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"194b045bdee66bd456a7028612206c6b9ad4250ce747f66bbf737ed3c411df1b"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: 5 comments in this file only repeat the code they sit on (lines 238, 299, 306, 693, 697), for example \u0022Check if node_modules exists\u0022. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/prepare-release.js"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca7cbb93f949734546c52a24ef687f6b77f720d7ac7026681eb09a7536417f8"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 4 of 13 project(s) overshoot their size bounds, lowering Project Cohesion to 4.0/10. The most over is \u0060Core/PeekabooCore\u0060 (96707 LoC, 735 module-visible types across 23 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":"3524acc88cd4fc0dfd8108737303de210bac8b144e9265b57fded6c1405aa982"},"properties":{"commitSha":"23f1ab6f7b33cd5c1474e549ee1c2e4e89b5f6b5"}},{"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":"0f884a3bcfe91a6912a300176bbdb724774454b4df308c627ca63d0eb315b3c3"},"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":"38cc5eac9182bedfee2216db49c771eda57424f34ebc47c533526acd62abb982"},"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":"524094e0c8c8d05f465342e686dd3db382059d6729576dcf402dc0f870cbfef8"},"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":"0fe31ba256162d64ccbd56496a0a0b26343c3dd5852e6a91a55eded866966930"},"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":"986606773db22de6d7cc75a541e0b73160bc4a896754e57b9ab3578a4ea52d02"},"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":"2f8abd8d586c5535063ec05c93d96f9da2e7876b6c371025ad10dbb55846ac0f"},"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":"f13faf8aebed4f5ec0e9ced9fca1c873ef43c04533fb45d64c1f6d6887f3d246"},"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":"a4cc598bd9bd24f1c9e84e29b3a840e40f0adc75da974329f73e962cfb90f7dd"},"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":"8f725ebda40bf8a29a95c6f34a89eda2b253b212e978cf4d3087a7292e489d10"},"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":"bdc609c4033c04d0550c056c57279bf32a9a0aaa2a9013e181178098daea6236"},"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":"c2762922b316ed579a201f84bc91467f26638693713e42625ef121d805f48ed8"},"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":"324059a8218a9d131fa8b810622f60432098880c472d63b795e0fb5c8ec95110"},"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":"deae59923f314e24b5d4c72fcad85a1b9e0263b80dcdd40b1cdadffc1f988e26"},"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":"192c6d519b7d69e547fd5cc21d3ba7c374e3f04be71ab57205c9eb97809c6c8f"},"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":"2a716fc54d08bb7bc79455e84f9bc0eab447abd8a987dee1b94c83893471f2ab"},"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":"7de100f9b1abc1503040b289d4cae49acbbb5406107b61cf3a04942abc5c5b5a"},"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":"036bb31621c0d18251f49b01c1f5831c11308cf33b3b3b3cb640a6fcb9d0fd75"},"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":"82fc058234d5ae18d5e2631e7062fa22668c164830e423214595547fc85c114d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"34f998d59eaff18b05f62f3ffd53eb1d86ddd758e021a3b06f3dd141181d69a1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"bca23b90d8b93d9234dde8398f224487748c7e453f96e3550be4565e3737c667"},"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":"69b7a4bea4a8ea4515010a078141a1afe51306a460e86b92f20a2edafb750698"},"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":"ccc35546f9bb23618d2fad0681b3d6b67e7d625bb999a7ddc9bca3bb87a58c2c"},"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":"4cf1fb6f79130093caaa343a28ef3c474f33e5ba6000767324546b9f83045e3c"},"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":"c3347b8e95baca828ca0f51fe9f9e84ba275e2fc34b334b0cb60b1c7ada30102"},"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":"b0f8524cb88b8ecebe1baaeaecf466d52056f7516482bb09c5e09b1bef14fb54"},"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"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7cf8a78c4a993aecafcb4fe2b18ecb6ff3aced137586a07de2812771fcf18756"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"85f99189d964cdde824a816d83f2290af0a3f7efe42feb1d6495743a90e33e22"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"1498825690ee691422757d83c6c8726aaf69040fa62a3b6b71a03075f0880320"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"3f85893d3b60f06f01ae1aa8a94ecc2ca8c328244deedd060ac30557c1bd61bc"},"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":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"57298d8e791482ed40f0eb5b30f2e1d7b9c15bc72ed15682b4d285b1046ac577"},"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":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 6 of 866 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 866 of the 1106 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: Apps/CLI/Sources/PeekabooCLI/CLI/Completions/CompletionModel.swift, Apps/CLI/Sources/PeekabooCLI/CLI/Completions/BashCompletionRenderer.swift, Apps/CLI/Sources/PeekabooCLI/CLI/Completions/ZshCompletionRenderer.swift, Apps/CLI/Sources/PeekabooCLI/CLI/Completions/FishCompletionRenderer.swift, Apps/CLI/Sources/PeekabooCLI/Commands/Core/CompletionsCommand.swift, Apps/CLI/TestFixtures/BackgroundHotkeyProbe/Sources/BackgroundHotkeyProbe/main.swift. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/CLI/Completions/CompletionModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b8e863a3e77400951d537834efc16f3266a1811af04cb0639eda6e54502c9a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/CLI/Completions/BashCompletionRenderer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca80df603739546124e4b96edad1ff160dd0119084fd6414ac031dac77a2bbf"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/CLI/Completions/ZshCompletionRenderer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d166305d4ea9ea887a375dd7f1f04ff1bacec46fa6f9fe2506fc41bf6b91db"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/CLI/Completions/FishCompletionRenderer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16490d7142ac084ddff8d316eefac50d450f9aee10018b33c9b122d5214209d0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CompletionsCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ad7a6891594ec56031f879252006c844fc47da86dcc2a29773a329b83b2847"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/TestFixtures/BackgroundHotkeyProbe/Sources/BackgroundHotkeyProbe/main.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5edb2e94cf3166c8b02ba3b7a43ed988fd9fcbe0fd3fe8b6b42add5180bd31c7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: DockCommand.swift \u2192 CleanCommand.swift, DialogCommand.swift, MenuCommand.swift, WindowCommand.swift: \u0060Apps/CLI/Sources/PeekabooCLI/Commands/System/DockCommand.swift\u0060 changes together with 4 other files \u2014 \u0060Apps/CLI/Sources/PeekabooCLI/Commands/System/CleanCommand.swift\u0060, \u0060Apps/CLI/Sources/PeekabooCLI/Commands/System/DialogCommand.swift\u0060, \u0060Apps/CLI/Sources/PeekabooCLI/Commands/System/MenuCommand.swift\u0060, \u0060Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 4 separate couplings, not 4 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 4."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/DockCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d447f4961358a014fc18ed60aa6376e6fb9f473630a6d8d6736a158025a6af0"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CommanderBinder.swift \u2194 BridgeCapabilityPolicy.swift: \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift\u0060 change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060ed9c8f7e\u0060 fix(runtime): declare route-specific permission needs for input comma\u2026; \u006033c27f4d\u0060 fix(bridge): gate capture engine routing (#398); \u0060e665dfb6\u0060 fix(cli): preserve capture engine host routing (#395) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f691277089155294f7523a97465c56dee4833a2b0f2f9355c2221f4bbb03a3d9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: SpaceCommand.swift \u2194 WindowCommand.swift: \u0060Apps/CLI/Sources/PeekabooCLI/Commands/System/SpaceCommand.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand.swift\u0060 change together 62% of the time (13 of the 21 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 13 shared commits counted here, the most recent 3 are \u00603c5576b2\u0060 fix(cli): stabilize JSON output \u002B automation tests; \u00605b6dcbec\u0060 feat(cli): show help for bare commands; \u00607eee2c99\u0060 refactor(cli): migrate all CLI commands to use injected services \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/SpaceCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eabd879c889508bf9197b34736c287b05219c78e67c164877026634a5f2d3ab"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ScreenCaptureService\u002BSupport.swift \u2194 ScreenCaptureService.swift: \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BSupport.swift\u0060 and \u0060Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService.swift\u0060 change together 60% of the time (15 of the 25 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 15 shared commits counted here, the most recent 3 are \u00607fcffdb4\u0060 refactor(capture): route legacy area through operator; \u0060f185e4b7\u0060 refactor(capture): extract permission gate; \u0060a4a92a77\u0060 refactor(capture): centralize screen scale planning \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureService\u002BSupport.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"259b3dc5ae9768eab7b970b6a40165953b093bc569fa97b68877a6f142827e40"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ActionTool.swift \u2194 TypeTool.swift: \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/TypeTool.swift\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060194cd90d\u0060 fix: enforce snapshot mutation leases across CLI and MCP (#789); \u006037a62edd\u0060 refactor: centralize desktop action composition (#453); \u006024deee95\u0060 fix(mcp): consume canonical action outcomes (#447) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ActionTool.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc7130f6db54cc20143d1f6fb90f55c567179c847d82d17175c92c14ba4ef70"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ErrorHandling.swift \u2194 AgentCommand.swift: \u0060Apps/CLI/Sources/PeekabooCLI/CLI/Utilities/ErrorHandling.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand.swift\u0060 change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00600399222f\u0060 Clarify complex agent and CLI paths; \u0060b464ec91\u0060 fix: Complete Phase 2 modularization and remove unused AsyncHTTPClien\u2026 (at that commit the files were still \u0060Apps/CLI/Sources/peekaboo/CLI/Utilities/ErrorHandling.swift\u0060 and \u0060Apps/CLI/Sources/peekaboo/Commands/AI/AgentCommand.swift\u0060); \u0060a2081a72\u0060 fix: Migrate error types from ApplicationError/CLIError to PeekabooError (at that commit the files were still \u0060Apps/CLI/Sources/peekaboo/CLI/Utilities/ErrorHandling.swift\u0060 and \u0060Apps/CLI/Sources/peekaboo/Commands/AI/AgentCommand.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/CLI/Utilities/ErrorHandling.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a87f3f9f275d9ef0c9f8ddd7496119c964abce4b53187736398288af8e62728"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ClickCommand.swift \u2194 ScrollCommand.swift: \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ScrollCommand.swift\u0060 change together 54% of the time (19 of the 35 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 19 shared commits counted here, the most recent 3 are \u0060822d755c\u0060 feat(cli): consume canonical action outcomes (#445); \u00606448025f\u0060 fix: centralize pre-dispatch refusal outcomes (#444); \u00609498938b\u0060 feat(interaction): report target point diagnostics \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b94d2c7d1510c1b5227d23894ccf7d9281e227c1a27aea48fefa61dcda584bf"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: DragTool.swift \u2194 MoveTool.swift: \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/MoveTool.swift\u0060 change together 54% of the time (7 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060ab31e91e\u0060 fix(mcp): reject unsafe numeric arguments (#409); \u006036661365\u0060 fix(agent): align observation guidance with inspect_ui; \u00605b2c5b8a\u0060 build: update MCP runtime for swift-sdk 0.12 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DragTool.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d024d7859b472db644c4190ff3572b4c33c1696e25ddee274649665db7cf3adc"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: DragCommand.swift \u2194 MoveCommand.swift: \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/MoveCommand.swift\u0060 change together 53% of the time (19 of the 36 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 19 shared commits counted here, the most recent 3 are \u0060b9e8e22c\u0060 fix(cli): validate coordinates before runtime selection (#469); \u00606448025f\u0060 fix: centralize pre-dispatch refusal outcomes (#444); \u0060555132f3\u0060 refactor(cli): split drag destination resolution \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/DragCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ebaff1e71a00735189e1600f3ccf0113d7fb8e8d107cfdeacb0a540b2cab88"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ScrollTool.swift \u2194 TypeTool.swift: \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ScrollTool.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/TypeTool.swift\u0060 change together 53% of the time (10 of the 19 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060194cd90d\u0060 fix: enforce snapshot mutation leases across CLI and MCP (#789); \u006037a62edd\u0060 refactor: centralize desktop action composition (#453); \u006024deee95\u0060 fix(mcp): consume canonical action outcomes (#447) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ScrollTool.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e67daf15d2b81cd21dbfd70158ac642b742491ce33010d9937cf82331c712d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ClickCommand.swift \u2194 MoveCommand.swift: \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/MoveCommand.swift\u0060 change together 50% of the time (18 of the 36 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 18 shared commits counted here, the most recent 3 are \u00606448025f\u0060 fix: centralize pre-dispatch refusal outcomes (#444); \u00609498938b\u0060 feat(interaction): report target point diagnostics; \u0060e77d1854\u0060 fix(interaction): refresh stale query snapshots \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"114142f99f699ad4ef64c5fed82c1fd7b7eda6180b77d36de368eefa7ca8a39d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CleanCommand.swift \u2194 DialogCommand.swift: \u0060Apps/CLI/Sources/PeekabooCLI/Commands/System/CleanCommand.swift\u0060 and \u0060Apps/CLI/Sources/PeekabooCLI/Commands/System/DialogCommand.swift\u0060 change together 50% of the time (8 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u006091c6e874\u0060 fix(cli): harden e2e automation flows; \u00605b6dcbec\u0060 feat(cli): show help for bare commands; \u00607eee2c99\u0060 refactor(cli): migrate all CLI commands to use injected services \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/CleanCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ca8109741e092f419d718af44441dba073a038481ea174a76d8b95efa4bc9a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AgentCommand\u002BModelParsing.swift \u2194 PeekabooAgentService\u002BExecution.swift: \u0060Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BModelParsing.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BExecution.swift\u0060 change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u006033c55947\u0060 feat(agent): add GPT-6.1 Sol selection (#873); \u006001523a55\u0060 feat(agent): add GPT-6 model selection (#833); \u0060807bb841\u0060 feat(agent): support GPT-5.6 and Claude Sonnet 5 models (#247) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BModelParsing.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d59502f6ccbed55885ef1d50360d27471de0062bd7ad602cbfba56595355f4"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PeekabooBridgeClient\u002BTransport.swift \u2194 PeekabooBridgeServer.swift: \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift\u0060 and \u0060Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer.swift\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060c693cd61\u0060 refactor(bridge): centralize request planning (#568); \u00602976dea7\u0060 feat(bridge): attest certification producers (#564); \u0060680d9797\u0060 fix(bridge): refuse unverifiable set-value hosts (#559) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"241fe9d66879e55e72d45c8caa4a1f00b857b42b816648a4774c0ddfdec82653"}},{"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":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 7/12 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060.\u0060, \u0060Apps/CLI/TestFixtures/BackgroundHotkeyProbe\u0060, \u0060Apps/CLI/TestHost\u0060, \u0060Apps/PeekabooInspector\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b237f7efe841e3a95b381b232502a3a473094adeb069a11eaca8ca533fb1c34"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060sleep\u0060 is async and calls sleep \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"33eb4b5fa032e089fcedb925fb2e1326e9053b0c650c95d9417c6d78906533df"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060sleep\u0060 is async and calls sleep \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f41bf2350a820106fa45f452ab0300701cfb9f29cd9627d9b688798245b73b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060sleep\u0060 is async and calls sleep \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCertificationController/ControllerRunner.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da994f2f36e710434595c876ae953e0874efff05b1890d8115951d1ee061003"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060sleep\u0060 is async and calls sleep \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureMonotonicClock.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ef6815d56b9b3f7d3a0f100be00ca901c43bd169af09e4bef650910d9d26b0"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060sleep\u0060 is async and calls sleep \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/WatchCaptureSession\u002BLoop.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e387088b339f0a2b09d2464e7e212766c3e61aadf63ae7b45c1d621fafd4132"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rightClickDockItemImpl\u0060 is async and calls usleep \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService\u002BActions.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42286c4d6c52a2de53fda7ae3db2c2168c46a8c77c33016a6a62e84c9579780"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060postHotkey\u0060 is async and calls usleep \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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/HotkeyService.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ed864b0b835265bcab82a54c3272d84cded7fc61409692ed7dc1013847c475"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060resolveSessionCreation\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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceipts.swift"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9116f90e11f710e58d2a5ad5de82c18e6b41657329001a8dd707b1d0fbf1a0"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060automate\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":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BAutomation.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f890ea92e722dda835f9c37aced0e023b7a5acc16b1feb75b3cd73a86571722f"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060performAutomationAction\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":"Core/PeekabooCore/Sources/PeekabooCore/Support/PeekabooServices\u002BAutomation.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"780e697cf28ac2e1a1c8ce486185e8f5c439ebee4aa93825f930eaa892dc7ad9"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060waitForInspectorReceipt\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4235}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6974f19826a65d1fa73ed1bdc3c462a3dfc66322d6379d41a61d378aedce72"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.realpathSync\u0060 in \u0060inspectCodeIdentity\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4280}}}],"partialFingerprints":{"codehealthFindingId/v1":"019eeb1a0d5ec987d0ff1327ccc58c4165f1b8d1b03d2d0651359a9859adc118"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.mkdtempSync\u0060 in \u0060inspectCodeIdentity\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4281}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3543b4b8580d0383837394cd6ef7edae69711ce815e64a7003344cee84c8736"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.chmodSync\u0060 in \u0060inspectCodeIdentity\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4283}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6fce58dc37b0bd9e8cb9a0a0508b674d97afd38e8933f84cb70130d5e5aa52"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.realpathSync\u0060 in \u0060inspectCodeIdentity\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4349}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2457585185077d303b384f31f8e753c4ce6dbf9d5556d0efb8be92679eadaee"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readdirSync\u0060 in \u0060inspectCodeIdentity\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4371}}}],"partialFingerprints":{"codehealthFindingId/v1":"96efed3f99a737f5c74e289f8c1a2bbd826d6c54a08c4b6c125f7a07e65d2d6e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.rmSync\u0060 in \u0060inspectCodeIdentity\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4403}}}],"partialFingerprints":{"codehealthFindingId/v1":"613ed4046ebff20a6e6a2834e790feac0bda73e22b2114bfdc60fcea118650ae"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.realpathSync\u0060 in \u0060stageCodeIdentityInspector\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4414}}}],"partialFingerprints":{"codehealthFindingId/v1":"68247865d8a989b13feda811ba958b24f1ae33a64f5c0deff4c979e0b3b47352"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.realpathSync\u0060 in \u0060stageCodeIdentityInspector\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4416}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b91667ed73e9001bd70c06d3933f0ec5726da68ac17da875aade8e8cce2da5"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.mkdtempSync\u0060 in \u0060stageCodeIdentityInspector\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4417}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d47d911b207797c24e6365c6ab048f994d2dfef6f71e16a8410dd746a109d7b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.chmodSync\u0060 in \u0060stageCodeIdentityInspector\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4419}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0bc0a20eafd403358dd9d0867174faa86ff0f472dc143f3ec14dacb39d25e9"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060stageCodeIdentityInspector\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4422}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abc30db417f8156b371044a4a06bd43586877f3987491ea7b21a4f8f6669ef3"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readdirSync\u0060 in \u0060stageCodeIdentityInspector\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4424}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3164eb738cf3e93faa2f4ee7da3b91810b01adb7dc3efbc1f79db7e85c06ca"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060stageCodeIdentityInspector\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4429}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7c214f60a4b4fe996944455ba993c9266924c05bb6a7a5ceb0ad26d7ec0bee"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.chmodSync\u0060 in \u0060stageCodeIdentityInspector\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4436}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e2121c4a3ca5583245a0a938e01a67a829c6bdb10cbf0cbfa9614a791f94cc"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.lstatSync\u0060 in \u0060stageCodeIdentityInspector\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4437}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb81c912f80121e0163c66604a310372e600c203ff021b326944fa016dcfd21"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.chmodSync\u0060 in \u0060stageCodeIdentityInspector\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4508}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2f3d9421d924dc1e524f0b7050c1994a8f5a65480ac03c9e71b172bc58cb9e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.rmSync\u0060 in \u0060stageCodeIdentityInspector\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4509}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d01e6ef1f5623fc6446cdaabe1cc7d96123e0c130abd9e4250a9f731d99c89"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.realpathSync\u0060 in \u0060verifyLiveMonitorRuntime\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4751}}}],"partialFingerprints":{"codehealthFindingId/v1":"8980f2523901d42554b79b199763368a93077a53fc8d2aafe4098ec06961c83d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.lstatSync\u0060 in \u0060verifyLiveMonitorRuntime\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4798}}}],"partialFingerprints":{"codehealthFindingId/v1":"e600393da979ddbb168ae32c481960fbefab6a808e34dfae7fb73554e9e7dce8"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readdirSync\u0060 in \u0060verifyLiveMonitorRuntime\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4814}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a431582c25e5caf7b8aee1d52427ff7c05002b366cdcb3360045530e47e191"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.realpathSync\u0060 in \u0060verifyLiveControllerRuntime\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4840}}}],"partialFingerprints":{"codehealthFindingId/v1":"694aed2e6127bd87acef5687e163815e18830480bdf573fc3ebcd132583fd480"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.realpathSync\u0060 in \u0060verifyLiveForegroundObserverRuntime\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4894}}}],"partialFingerprints":{"codehealthFindingId/v1":"099b38b1cba0ede6b12edeec3f83a99f1fe1f1f112b459024b26f137fe0a33e4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.realpathSync\u0060 in \u0060runStagedPIDAttestationCommand\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":5036}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d379105aa3b9dafbad203628dc11f97d95bdcd2e3276374011d610951b5b1f9"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.mkdtempSync\u0060 in \u0060runLivePIDAttestation\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":5117}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d4a124da558de36bddef1e24c7d5737212c39d3e82711d5df170ad842abb8d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.chmodSync\u0060 in \u0060runLivePIDAttestation\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":5118}}}],"partialFingerprints":{"codehealthFindingId/v1":"506919e578bf55f05d65dc9bffa635340d7ae07fc93cd90fe2d65a603426196f"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.rmSync\u0060 in \u0060runLivePIDAttestation\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":5186}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2171c7669171ca05890d483c17cee8adca187018642f12b8327da5714b321dd"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060spawnSync\u0060 in \u0060anonymous function\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":5257}}}],"partialFingerprints":{"codehealthFindingId/v1":"274d5d42e95d2c7167f383eaa515377e9956cbb2caaaebda9c6aa452e2331e90"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readFileSync\u0060 in \u0060runCLI\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":5367}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc8d0e72d37a316f7c56c91ca3e968f016f28ed676ddf08ecb719cba6596578"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060anonymous function\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"440d292b6e2d49adf4a451c7c5b5e31dfb38309ec479846f175e46a4ca675176"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060anonymous function\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74f1a48a7f085d6e38a3a3cd2efffb81585f2ae9c5d3c7564bf5086312310e4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060anonymous function\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b7e7f6f670cedd995006d45f7c7822587f769cdd6670b4c6d6b9b80b034ee2"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060runPIDAttestation\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"e337e7142acc4dd306a46f7f494903adf370ab5474ca297ddfa292379c6469cf"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.mkdtempSync\u0060 in \u0060runCoordinator\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c58fe4c606767b17f81a73b31aa79fb772e45a4898e4426cd99babdbc653495"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.chmodSync\u0060 in \u0060runCoordinator\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"b106ec2ce27603d2f5c7b48e5ca88962af7927ae21949356f964f2e8c52d50d9"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.realpathSync\u0060 in \u0060runCoordinator\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"0715fefaf2383085c4031c8db919927c59db5459fcf6749753b61c8323e7331a"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.realpathSync\u0060 in \u0060runCoordinator\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1275}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd804c1754ff2eb10b18fe191b7072bf53d2535f259705c84cc910c11984893"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.realpathSync\u0060 in \u0060runCoordinator\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2b0e9f06976af96a9158cba2302e6fa018dc3fb4e89d73be3cd20b1710e1e6"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readFileSync\u0060 in \u0060runCoordinator\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1292}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7977ffc3bd8eb7ae371272a0d5fecc1aef9ca4f531d19be8a9465c0b7bf87f5"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readFileSync\u0060 in \u0060runCoordinator\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"81131b5864192c17794d9570a0acb719e2b33d41b5b6d7fc614dd0bc47aa4b0e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.mkdirSync\u0060 in \u0060runCoordinator\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2aa522a39fbf62f92436c41629638b02d8276e6c110e230bfbffa4399865411"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.mkdirSync\u0060 in \u0060runCoordinator\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"d753a037f182528d2c688407c203d36d6a4d0ed4fa168acd6d9315d3f54497b8"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060anonymous function\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1435}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf38efbba6f92db19d34eb327ecdf2256cb1adfdb40b43586825b8c9fe639964"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060waitFor(\u0022foreground observer readiness\u0022)\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1529}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b0561db982e0deb3fba9d9a99447707d79d790309d4d5519b3f1fb033fcab4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060runCoordinator\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1649}}}],"partialFingerprints":{"codehealthFindingId/v1":"987dbb0193079a26b1ef5d9e50c6df28aa81d1933645bbb3f2edea6f40c7f67c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060runCoordinator\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1651}}}],"partialFingerprints":{"codehealthFindingId/v1":"809efe38fccdce89c2b4c60350ca555a8c82d6186433342905ed5118abf0c778"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060waitFor(\u0022monitor readiness\u0022)\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1674}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeeb98616645a7342d6dfa3c44ccf343b2a8a725d945854e40f5ea75680b3e28"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.realpathSync\u0060 in \u0060runCoordinator\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1637265ed47fa5b26d51709fa10256e85c9ac43c583df0dd509d03ca0219e3"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readFileSync\u0060 in \u0060runCoordinator\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"6865906205f90951714b8b0af57cd39885634299c23f910152e9b3018e70ba57"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060runCoordinator\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1769}}}],"partialFingerprints":{"codehealthFindingId/v1":"40881561ef3ea57247f98ae5983245d38f48d6d15b58f6d342293ec6c23be88f"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060callback to controllerStates.every\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1779}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a173c3577aa822f72fa67bd1fe4b1c69d1973fe7fe786bf4ff528326af39e5"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060callback to controllerStates.some\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b393fbf90a1e0ad935bf9d4fce5240d2f840315911a6b304d42a293d8495586"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060waitFor(\u0022independent foreground observation\u0022)\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1831}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5aec16022783005890a9b924dc1d9694221f3392fefb7831f627088c2d1ad55"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060callback to controllerStates.some\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1833}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9c18fb57527aee6719f11dcc0f714e64929d541f95eb14da417e29086304fa"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060waitFor(\u0022foreground restoration witness and attestation endpoint\u0022)\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1869}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0985a22ab1b757588c91013ce32def1749868769695380e8e8241b8608b7c4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060callback to controllerStates.every\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf839d902f0f8a507048b6239e7760056a9737d1e8c215a66a6c16382d449c7e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060callback to controllerStates.some\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1897}}}],"partialFingerprints":{"codehealthFindingId/v1":"968848f36f50dc38ed9418b178888ec3d6163a8a415f3fb88fe487932b620974"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060callback to controllerStates.every\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1910}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2ee6a5720838d4b9f57b43ca4d47e9e4c3bcc02623bf6ef1ded07cbaa958cc"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060runCoordinator\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1915}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac73b0eb7d4218067fee5f7cacbb3c38871a56592f8ba1ad9b9bd4de5564e69d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060waitFor(\u0022monitor-owned corpus seal\u0022)\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":2002}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa55affbbe10b1e896e4ff6db6b96665abce41b0a0b5b34247854c3ed48400e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.mkdirSync\u0060 in \u0060runCoordinator\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":2022}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ff25f1764a5534e59314f1607ee19e1a903568d7ad5558e8c97e8c55cb15a1"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.mkdirSync\u0060 in \u0060runCoordinator\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":2023}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c382b3f98bf06254a03aa104d13a6c69aed9669ac8f66eed1bbc342423432d4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060runCoordinator\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":2130}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed0f79b32271ac3c0fafd501c539361c788ecc669da1b5ea8fd158a017331ab"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060runCoordinator\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":2135}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8d9918d39c18e174cd521312bd33a0fbb1c8466e8c92018dc51d8962bae2a9"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readFileSync\u0060 in \u0060main\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":2166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0403d22d80125a3d72ec4cd72a4575805b79a4e9cacdb4806de24b2e8b2087e"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 77 plain JS \u2014 the untyped files are peekaboo-mcp.js, scripts/build-docs-site.mjs, scripts/controller-source-manifest.mjs, scripts/docs-lint.mjs, scripts/docs-list.mjs, scripts/docs-site-assets.mjs (\u002B71 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:4083 \u00B7 scripts/run-live-multi-target-certification.mjs:181 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4083}}}],"partialFingerprints":{"codehealthFindingId/v1":"77af0409dd04afaad156a0eb5b4259ee38589e9dbd4e4307ee26cd34822d7de7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): scripts/final-qualification/qualification-manifest.mjs:2935 \u00B7 scripts/final-qualification/qualification-manifest.mjs:3557 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":2935}}}],"partialFingerprints":{"codehealthFindingId/v1":"74465ac4786a20575c374361e30eef9b45601c80c4939329546183b8adef01e9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (29 matched lines \u00D7 2 locations): scripts/controller-source-manifest.mjs:9 \u00B7 scripts/validate-terminal-artifact-manifest.mjs:11 \u2014 the two spans are one implementation copied and then locally edited \u2014 333 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/controller-source-manifest.mjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ccc6c585fa479d4a0614024e69fa79854d2702efb4a852de861d65dc3344f9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (25 matched lines \u00D7 2 locations): scripts/final-qualification/qualification-manifest.mjs:1946 \u00B7 scripts/final-qualification/validate-concurrent-run.mjs:191 \u2014 the two spans are one implementation copied and then locally edited \u2014 163 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":1946}}}],"partialFingerprints":{"codehealthFindingId/v1":"df26b8cfd6189e12f963d801da5ab54f5322221beb2c434b8a0c554e9026a09b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:108 \u00B7 scripts/run-live-multi-target-certification.mjs:84 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7ac45238a935d237be42c272fb99293ebebe14243ac51668aed6c8f76a13a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:4376 \u00B7 scripts/finalize-multi-target-certification.mjs:5051 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4376}}}],"partialFingerprints":{"codehealthFindingId/v1":"926ff255a5f17803af7ea6f48a40494d46ddd08046995bdaad8be38a9ecc43f6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:4314 \u00B7 scripts/finalize-multi-target-certification.mjs:4992 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4314}}}],"partialFingerprints":{"codehealthFindingId/v1":"483b7773bc6a2292f1c22d5d3670814b8c83d2da694e43c958c3a044a8af858b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): scripts/final-qualification/qualification-manifest.mjs:2348 \u00B7 scripts/final-qualification/qualification-manifest.mjs:2393 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":2348}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a4d74c3133d174af8eae4fcd9c5679b3d167a14dd50b880759a87beb9d274a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): scripts/final-qualification/qualification-manifest.mjs:3141 \u00B7 scripts/final-qualification/qualification-manifest.mjs:3709 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":3141}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b02f84aa23647f35bb83aed0e8da5390759684418edd47a24fa8f613ea026c1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:2124 \u00B7 scripts/run-live-multi-target-certification.mjs:918 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":2124}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f80a32f4dd1f1c5547d47a9e62bf77a448aa6755c3c8653dde2b9086cf9b2c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): scripts/final-qualification/executable-policy-scanner.mjs:357 \u00B7 scripts/final-qualification/executable-policy-scanner.mjs:384 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6cd770bd1bebdb3ab69a3d6a40621626ece298c9125434039b487a137c564ef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3 locations): scripts/final-qualification/project-live-bindings.mjs:254 \u00B7 scripts/final-qualification/publish-coordinator-marker.mjs:113 \u00B7 scripts/final-qualification/validate-concurrent-run.mjs:1133 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/project-live-bindings.mjs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"0809ec50617c6e307085749e7997819437f1aadd088e32e17bcbfa90d4c0a77e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): scripts/final-qualification/qualification-manifest.mjs:2628 \u00B7 scripts/final-qualification/qualification-manifest.mjs:2650 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":2628}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4ce4c74120dd34ae700abc35dee12688511629e494dd47d4c28733ee5498a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): scripts/build-docs-site.mjs:856 \u00B7 scripts/build-docs-site.mjs:920 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/build-docs-site.mjs"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2cd9c2e506605e6dab17577a046b2ccef8191503e187d1cb75e0c06af3647ba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): scripts/final-qualification/publish-agent-execution-acknowledgement.mjs:63 \u00B7 scripts/final-qualification/validate-concurrent-run.mjs:47 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/publish-agent-execution-acknowledgement.mjs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f1ae6c683383dbc0fcd691f3176434cbf64f1b0c558bff18f1afe4cb0acb71"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:2894 \u00B7 scripts/finalize-multi-target-certification.mjs:2925 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":2894}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b007ebbaf890d70c58d2c2dc034a0eb39a38f106c16b8a53c32fb972b76440c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:3418 \u00B7 scripts/finalize-multi-target-certification.mjs:3456 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":3418}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47ddfd4d4544078af38e23c514cd13b39779f15570af2658180ca7f99308c7a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): scripts/final-qualification/executable-policy-scanner.mjs:409 \u00B7 scripts/final-qualification/executable-policy-scanner.mjs:432 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"499d574cc868d4d04e9b201bc1b1d95f34d2ca1467f0ba7e631a734b6838b153"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): scripts/final-qualification/publish-agent-execution-acknowledgement.mjs:85 \u00B7 scripts/final-qualification/qualification-manifest.mjs:619 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/publish-agent-execution-acknowledgement.mjs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"11cff47424542da1fec252d59038f6906cbcb416d4ef7bc27875e90cd34c8dec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): scripts/final-qualification/executable-policy-scanner.mjs:1394 \u00B7 scripts/final-qualification/qualification-manifest.mjs:3845 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ea36c6cbae0c45dcca72e3d41f4ad318e9aa3c2c759ffb1a960be39b337bae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): scripts/final-qualification/lib.mjs:763 \u00B7 scripts/final-qualification/qualification-manifest.mjs:1964 \u2014 the two spans are one implementation copied and then locally edited \u2014 71 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/lib.mjs"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8cc0f6ad7dac5392b85ac61e93d4cf2d59eac7d02ea146e5aa6d6de84c28cb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4 locations): scripts/test-chrome-devtools-mcp-contract.mjs:264 \u00B7 scripts/test-chrome-devtools-mcp-contract.mjs:278 \u00B7 scripts/test-chrome-devtools-mcp-contract.mjs:290 \u00B7 scripts/test-chrome-devtools-mcp-contract.mjs:302 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c22f2004e6fe7e2c58fcc7a295bb7c03de6105977ad333ec0ecd9d79a7b22ba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): scripts/final-qualification/executable-policy-scanner.mjs:956 \u00B7 scripts/final-qualification/executable-policy-scanner.mjs:974 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"701d8646f63e16d4534a9e3f86b40b27237d8ae59bceb9a560bcb180c941be03"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:3359 \u00B7 scripts/finalize-multi-target-certification.mjs:4010 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":3359}}}],"partialFingerprints":{"codehealthFindingId/v1":"997bcc65d86d16545e23bd692646c98676dcce2bd8bdd227592aaad230abee92"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:4429 \u00B7 scripts/finalize-multi-target-certification.mjs:4591 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4429}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae6f047e3e972eeaa0305a7eee6e75542d57b70264528560110af6f91c962dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:4632 \u00B7 scripts/finalize-multi-target-certification.mjs:4695 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4632}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27d1d1c413dd94fb7a88b0257e3f401b6aff2eba27c2395b3c69f043751fa60"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): scripts/final-qualification/process-tree-collector.mjs:133 \u00B7 scripts/final-qualification/publish-agent-execution-acknowledgement.mjs:58 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/process-tree-collector.mjs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ce0b3bf704d9631f68b31c3b570a6f131c465faf7ea4ff4a6d15e27da088d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): scripts/final-qualification/qualification-manifest.mjs:3864 \u00B7 scripts/final-qualification/qualification-manifest.mjs:3884 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":3864}}}],"partialFingerprints":{"codehealthFindingId/v1":"93717e5963101203c66db17cd6e18b9213fa44e0ab2db7a6bf3f53d6bc06916c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:346 \u00B7 scripts/run-live-multi-target-certification.mjs:292 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"427de52ba4ae8ad68a2b8f6761c6312975f55d511848160381e4dce889f2e16c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:451 \u00B7 scripts/finalize-multi-target-certification.mjs:4174 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"015d38c78f700fa48cb26970b883068d3a9fc5499df2f6b1e7f941e427a4e724"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): scripts/test-terminal-archive-policy.mjs:248 \u00B7 scripts/test-terminal-archive-policy.mjs:264 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-terminal-archive-policy.mjs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76c533db3cbe28b3f1048dca25ad213b80839e40b66106b0ea638aa2e93014a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): scripts/final-qualification/crash-inventory.mjs:146 \u00B7 scripts/final-qualification/executable-policy-scanner.mjs:1393 \u00B7 scripts/final-qualification/publish-agent-execution-acknowledgement.mjs:549 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/crash-inventory.mjs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b17a01608af2309beb6181996dc991b227e0c3bcf37ea5e251b1e10958484c2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): scripts/final-qualification/lib.mjs:822 \u00B7 scripts/run-live-multi-target-certification.mjs:403 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/lib.mjs"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b69268c5c3e2ffaa802d8f759947783b09816a1874dd65fca22e4f35afbe3b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): scripts/final-qualification/lib.mjs:845 \u00B7 scripts/final-qualification/managed-launcher.mjs:144 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/lib.mjs"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb43db13bffada885509e32ac67157e71fac58514a12746d1019ba24b2a4785"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4 locations): scripts/finalize-multi-target-certification.mjs:728 \u00B7 scripts/finalize-multi-target-certification.mjs:737 \u00B7 scripts/finalize-multi-target-certification.mjs:746 \u00B7 scripts/finalize-multi-target-certification.mjs:755 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"64262e1841285c4d6b989a30c30ef851bf488e84640a8d821776d37978b893f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:4418 \u00B7 scripts/finalize-multi-target-certification.mjs:4570 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4418}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4324610afe29070ca4e78c695b6438fbc5e5ca6bb50a40ad4f6cf66d8368d1f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): scripts/prepare-release.js:795 \u00B7 scripts/prepare-release.js:821 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/prepare-release.js"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"6223c087e5e4d4ca2bf03e17090765f4db81fcae0df845b90ade6e48f6881420"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): scripts/release-preflight-contract.mjs:56 \u00B7 scripts/validate-background-computer-use-report.mjs:17 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/release-preflight-contract.mjs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"aafb8310a47d8f387e74810cca1e6d8c2b56cc2bc60f3f69913f94b26e6d5f13"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): scripts/run-live-multi-target-certification.mjs:519 \u00B7 scripts/run-live-multi-target-certification.mjs:1222 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9cd3013627e757a6e0b7399de4d0789737ccb85e9278658a8e47c255783a554"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): scripts/test-terminal-archive-policy.mjs:327 \u00B7 scripts/test-terminal-archive-policy.mjs:337 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-terminal-archive-policy.mjs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76f4e466a6755c395221c6851be7e15cd197d4896550af781ec70e962a80e7c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): scripts/validate-terminal-artifact-manifest.mjs:221 \u00B7 scripts/validate-terminal-artifact-manifest.mjs:874 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/validate-terminal-artifact-manifest.mjs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6e4c76acf186bf3d74e37982bf665feb7d77bb780f2505d981d797c1ea05f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): scripts/docs-lint.mjs:182 \u00B7 scripts/docs-lint.mjs:191 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/docs-lint.mjs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30ba7b262e7e1ad26e759e81e5c305272567122e0b12f1cbd210f851151c5ee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5 locations): scripts/final-qualification/construct-live-plan.mjs:180 \u00B7 scripts/final-qualification/crash-inventory.mjs:147 \u00B7 scripts/final-qualification/executable-policy-scanner.mjs:1394 \u00B7 scripts/final-qualification/playground-alert-lifecycle.mjs:427 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 5 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/construct-live-plan.mjs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"059c58cb73dfbdad93fb9300db8c8e2579532c75b3ffbca4837fef92a204f8f0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): scripts/final-qualification/construct-live-plan.mjs:55 \u00B7 scripts/run-live-multi-target-certification.mjs:540 \u2014 the two spans are one implementation copied and then locally edited \u2014 85 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/construct-live-plan.mjs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"535485be0dfb7378155ebd4b93293412ab6a4edf6df8426468da78d6c95d3e88"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): scripts/final-qualification/managed-launcher.mjs:147 \u00B7 scripts/final-qualification/process-tree-collector.mjs:217 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/managed-launcher.mjs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb219553a48622a08eff5d5b97ca0b594934c3279dd1e07db193306775c0e26"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): scripts/final-qualification/publish-agent-execution-acknowledgement.mjs:336 \u00B7 scripts/final-qualification/publish-agent-execution-acknowledgement.mjs:360 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/publish-agent-execution-acknowledgement.mjs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"514997f11a9030f53122b0b1c2afa39fd3b0f609f1194d58b0fea78358358d84"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): scripts/final-qualification/qualification-manifest.mjs:1561 \u00B7 scripts/final-qualification/qualification-manifest.mjs:3319 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":1561}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c04c580fa4abf797a280a2c900d05dbada687b9a14adbd3b5d477e5c611b3f6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): scripts/final-qualification/qualification-manifest.mjs:3845 \u00B7 scripts/final-qualification/validate-concurrent-run.mjs:1133 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":3845}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bfeccd537cc830956d48f0b380573d9ab95a1c56e16970853d64c872d2ee3e2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:487 \u00B7 scripts/run-live-multi-target-certification.mjs:622 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"29174c8df689c04bf34411ad24a8ad81e2b9670141bcff21e2deabbd35ed02aa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:1733 \u00B7 scripts/finalize-multi-target-certification.mjs:3736 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8322999b61cb1f50294d50240a6f70ad57e276e7f330efaf880fb5ab2b48d48"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:3372 \u00B7 scripts/finalize-multi-target-certification.mjs:4021 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":3372}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c1e5f439e2d3385fd166ee1a98411928a9ae2206083a905b71fb60db05c541"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:4336 \u00B7 scripts/finalize-multi-target-certification.mjs:5025 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4336}}}],"partialFingerprints":{"codehealthFindingId/v1":"50251a81ce3b85ce966b8d61a8c371a28f70f6dac6956b719af2b926eeef567b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): scripts/validate-terminal-artifact-manifest.mjs:299 \u00B7 scripts/validate-terminal-artifact-manifest.mjs:908 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/validate-terminal-artifact-manifest.mjs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"83afb359e4710c60f985d864262404828b5d31c1b68953143e1d3e9002d3929f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/final-qualification/executable-policy-scanner.mjs:1181 \u00B7 scripts/final-qualification/qualification-manifest.mjs:459 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f49fa118bfdd2282e4ffbf97d6a6178793a15153a1cda9aa003d10def42b05"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/final-qualification/lib.mjs:44 \u00B7 scripts/finalize-multi-target-certification.mjs:138 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/lib.mjs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee69d228653f5ee942987f83105f4048abb1add3e668894fb2b3e8c3bbf23d1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/final-qualification/lib.mjs:539 \u00B7 scripts/final-qualification/lib.mjs:551 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/lib.mjs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7d93a89e900b3f000b2762c52b77bbd9018c171e5ba7d24f44d3053e906f38"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/final-qualification/lib.mjs:951 \u00B7 scripts/final-qualification/playground-alert-lifecycle.mjs:134 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/lib.mjs"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"333fe553d573b49d82114543c22f9af57bcda1e7d15a815bd148e72fa4328cd7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5 locations): scripts/final-qualification/managed-launcher.mjs:526 \u00B7 scripts/final-qualification/project-live-bindings.mjs:255 \u00B7 scripts/final-qualification/publish-agent-execution-acknowledgement.mjs:551 \u00B7 scripts/final-qualification/publish-coordinator-marker.mjs:114 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 5 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/managed-launcher.mjs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"be463f3bd5680b40e8f5871bba7d2332fb80946b530e7696c2860f0122d29d80"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/final-qualification/qualification-manifest.mjs:2177 \u00B7 scripts/final-qualification/validate-concurrent-run.mjs:582 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":2177}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b23319693a0c2bf3c314c18e634ccee08bec0b40e31d917146802a91f494a06"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/final-qualification/qualification-manifest.mjs:2822 \u00B7 scripts/final-qualification/qualification-manifest.mjs:3425 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":2822}}}],"partialFingerprints":{"codehealthFindingId/v1":"464f49d609c50e3392f59d3008431dff5668d67b2367a612a31ee000d755f946"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:5290 \u00B7 scripts/finalize-multi-target-certification.mjs:5304 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":5290}}}],"partialFingerprints":{"codehealthFindingId/v1":"88446466dd6d8b040ff284881e95ceb81a3877cc16eadb14dfccd48a3d93e9c9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/terminal-archive-policy.mjs:118 \u00B7 scripts/terminal-archive-policy.mjs:127 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/terminal-archive-policy.mjs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a169cff06b8f238e2be2f775c7be87201103599bd8bce3253a26d7ce7e4af1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): scripts/terminal-archive-policy.mjs:225 \u00B7 scripts/test-terminal-archive-policy.mjs:15 \u2014 the two spans are one implementation copied and then locally edited \u2014 59 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/terminal-archive-policy.mjs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"550826349a4d3787b6d85798ad52c2c30f590a39ca4cd3217e152cc2f22e9561"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/test-terminal-archive-policy.mjs:373 \u00B7 scripts/test-terminal-archive-policy.mjs:460 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-terminal-archive-policy.mjs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"325708e97d779dc57bb67abdc6b412aadfe87a882c88a92786cd0faf904b0b65"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): scripts/docs-lint.mjs:80 \u00B7 scripts/docs-list.mjs:20 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/docs-lint.mjs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b29aea5c2220ef65a15d67d70d393d2856535bc0556d3fc07b4287ef8213dd6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): scripts/final-qualification/executable-policy-scanner.mjs:931 \u00B7 scripts/final-qualification/executable-policy-scanner.mjs:947 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a03a7219718d95819f98608721e3c4f211a27e9afee711f7db684606af6687"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): scripts/final-qualification/process-tree-collector.mjs:296 \u00B7 scripts/final-qualification/qualification-manifest.mjs:796 \u2014 the two spans are one implementation copied and then locally edited \u2014 75 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/process-tree-collector.mjs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae698d257d0df8e48b0a9c98cffe6dedfb5dcb77e4e41ed85cfbf14ce54461d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:2916 \u00B7 scripts/finalize-multi-target-certification.mjs:2980 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":2916}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb8c0b7625a6359572171f8f39c76a75ad87b5ca816ed8753d68b2fd0a6c8021"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/build-docs-site.mjs:520 \u00B7 scripts/build-docs-site.mjs:531 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/build-docs-site.mjs"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"a17f061b686705ea32d1faef7374c3bda042286f202ff90975db51e870f9a078"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/build-docs-site.mjs:534 \u00B7 scripts/build-docs-site.mjs:541 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/build-docs-site.mjs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"537dc4c146804e65e827b527b46fbefb4e7e894debda1bd001173132a1a568ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/final-qualification/executable-policy-scanner.mjs:351 \u00B7 scripts/final-qualification/executable-policy-scanner.mjs:737 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"602a94441d23e978e5c279dbbee4a60d82d5fb0d1245659e34a5fffa57499529"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/final-qualification/executable-policy-scanner.mjs:374 \u00B7 scripts/final-qualification/executable-policy-scanner.mjs:399 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88dc5ff1834ac306b450edb9a3d428022ece98e049b193b2dcc73a3d90b64cb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): scripts/final-qualification/executable-policy-scanner.mjs:941 \u00B7 scripts/final-qualification/executable-policy-scanner.mjs:957 \u00B7 scripts/final-qualification/executable-policy-scanner.mjs:975 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d148d880c6d39f868ec2678e680ce55de7e8dd6c9e50ee1d38365b07c54f7ce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/final-qualification/lib.mjs:141 \u00B7 scripts/final-qualification/lib.mjs:703 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/lib.mjs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37d3ca7ecc57b3081be5d66224386d424a38572354b394a24b8bf0ab0edd679"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): scripts/final-qualification/lib.mjs:569 \u00B7 scripts/final-qualification/publish-agent-execution-acknowledgement.mjs:182 \u00B7 scripts/final-qualification/qualification-manifest.mjs:653 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/lib.mjs"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8a1e103a84bb97ce41c8bb7f5575693887c00165576d732b2e85be6118a23f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/final-qualification/managed-launcher.mjs:125 \u00B7 scripts/final-qualification/qualification-manifest.mjs:252 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/managed-launcher.mjs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb794ffb0d61798a206a01530f052d3900bf7f7d3cbecdda04a8a15c026398b9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/final-qualification/playground-alert-lifecycle.mjs:316 \u00B7 scripts/final-qualification/qualification-manifest.mjs:1309 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/playground-alert-lifecycle.mjs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a63b118069d593a5632efe06645540eb77619a225aaaacb6316ed3c0bafd284"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/final-qualification/publish-agent-execution-acknowledgement.mjs:192 \u00B7 scripts/final-qualification/publish-agent-execution-acknowledgement.mjs:296 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/publish-agent-execution-acknowledgement.mjs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"811623760bd6d626cf9d883c56f67767e5a63750301511a450c6d3a0e2acdf7a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/final-qualification/qualification-manifest.mjs:688 \u00B7 scripts/final-qualification/validate-concurrent-run.mjs:736 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94fba342a2df7f7f46c11e0a456d5d4241df3ba28bb86b405b8a478f043c4aa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): scripts/final-qualification/qualification-manifest.mjs:2418 \u00B7 scripts/finalize-multi-target-certification.mjs:386 \u00B7 scripts/finalize-multi-target-certification.mjs:394 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":2418}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae45c6490e4127cff1081508b66b767d85c2b4c8acaa93a99276fa89dca2a33"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:174 \u00B7 scripts/finalize-multi-target-certification.mjs:777 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"a524c1c3540e18492866af0f7fef49d05bdd363acac3a3d3da9d35bbc436f38d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:1018 \u00B7 scripts/finalize-multi-target-certification.mjs:2917 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff91d86e3036db6fc82012ff8045945940de9ee973be39894054c2d02a40ac0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/finalize-multi-target-certification.mjs:4398 \u00B7 scripts/finalize-multi-target-certification.mjs:5073 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4398}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d665359dcf0e38f30d8c5f341f6dba6d1aa8d20f6ca86dc963a2d077792cdb3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/test-terminal-dmg-payload.mjs:43 \u00B7 scripts/test-terminal-dmg-payload.mjs:49 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-terminal-dmg-payload.mjs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf78b6e5352480cf8eb0b8f42f310cd448dffd51701f07be487bcd9e1aebca5"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-suite-dependency]: scripts/test-browser-provider-connection.mjs:8 imports tests/fixtures/devtools-websocket.mjs, a module inside the test suite \u2014 test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-browser-provider-connection.mjs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3d4e6c5ccc8df10883cb40210760dccfafca05a2a0cdb7ea8426e1155df15a"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-browser-provider-connection.mjs:12 reaches into another package with a relative path (../node_modules/.bin) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-browser-provider-connection.mjs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"419f54b1b3b25197da68c531639ede5c4e7a69f80aedaa46a5e0f9c91ef418fc"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-browser-provider-connection.mjs:14 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/index.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-browser-provider-connection.mjs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2195e9bdad95ad49aa1b6621f1d735b369dcfe6c54d70ada7ea8228debc45d5f"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-browser-provider-connection.mjs:15 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/BrowserManager.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-browser-provider-connection.mjs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b799e63b36fb7a0d9e5f564b95ef24dd18cd98cfd9f08bcd3ba3e8a083596a61"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-browser-provider-connection.mjs:16 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/config/mcp-options.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-browser-provider-connection.mjs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8214a5dbe40d7cdffb22d7af3d0f7eda99ea2de0f24676e1ebb7939a358a71"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-suite-dependency]: scripts/test-browser-provider-connection.mjs:132 imports tests/browser-provider-lifecycle.test.mjs, a module inside the test suite \u2014 test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-browser-provider-connection.mjs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"e249e8ca76ae7902d5604a55ab434cd4e0e3710e281fc6184c520dccfd901c89"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:9 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/package.json) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66434e64f79c851c8201e6446d57333f73d8b3b522a94a49cf91f19d10eafe8"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:81 reaches into another package with a relative path (../node_modules/.bin) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5dc214da9210efa03f181c3b4726097526897b3e7b1761e87f1286ca7c51d0"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:84 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/ToolHandler.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad201d90b1c3e210a5009a4d6be48f815ee83e24413a0dd09c3aada117bcf789"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:88 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/tools/tools.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b640d4c68b220f3771889e03d4e9907cf2e6038b31e1056e3aebbff49d160a9"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:91 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/config/mcp-options.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e69348c0f4bcb9923fd529b6d2a01aeb3a9ffec8e043073730ecf362cf3a881"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:188 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/telemetry/ClearcutLogger.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d8fec7142ae26ab0a59672386b91555cb24739be396f6c1ee7c167d264290d"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:210 reaches into another package with a relative path (../node_modules/.bin) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09b1435fa96ad45af31d92529c4283082874e1020f47e271ecb0c43c75feca3"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:269 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/McpPage.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03dbf469a17bb9cbe40a99b386512cfca9ef4c244436372401dbab92d1d98b6"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:273 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/TextSnapshot.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bfdeeda7dc10ffd03afc714b95ca288311e6aaa99bed597a8b65e593034160"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:277 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/McpResponse.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f41ce19818c47f6412c555d906fb47164b28cf0eda8214e19a2ecdbe50f6cb"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:281 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/tools/input.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca1fb7b0f0b04c37c20d9a4a668552b49f5dc73822fef321be291c6cb5891ba"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:285 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/formatters/SnapshotFormatter.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56d120efbfb0098f484ab6cfe380a8b25e4b2eb68587a46affd32fc07ebb397"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:289 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/tools/screenshot.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa97d1d97613c63948f35106987cdaade02910d894908879242738bfc940aad"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:293 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/formatters/IssueFormatter.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4df2dff1b45dc279a2c79dcf7a06a2e8918793a8a7c29ee22ad546e6378b4b9"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:297 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/utils/WaitForHelper.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b75edb041c156eeeb09d91ac6742cd500c0133c4102610b3d9f35ca39e0a78"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:301 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/tools/script.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f653a4b3daca8b8fdbdeb329d488d882ffd38cf89bd1bdab3d646e62335c90a"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:305 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/tools/pages.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0a56d76cf08180d19213be0ceca4aeaaeafd50536113725f51e9ca87b22fe9"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:309 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/tools/network.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"96dcaa0fd9061bf44624c102f0aae9221adb97ff877e3331d17cf65340ba08d9"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:313 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/TextSnapshot.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2bf1e6f9a0277b5e9cb7251519ec4a5a280b08513d94695e9d2e1a6187d2a50"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/test-chrome-devtools-mcp-contract.mjs:317 reaches into another package with a relative path (../node_modules/chrome-devtools-mcp/build/src/third_party/index.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-chrome-devtools-mcp-contract.mjs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"237e32d8c4e623541441658448cf9bf6cb5d772436ed7cabf0e7fda6b04aca51"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function thinMachOSlice (cyclomatic 144, cognitive 235): thinMachOSlice has cyclomatic complexity 144 and cognitive complexity 235; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5564a29ac48263776902ca835574b485497b710bc1bddc64e6ae61d2e9b375"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateSuccessfulCertificationSummary (cyclomatic 137, cognitive 85): validateSuccessfulCertificationSummary has cyclomatic complexity 137 and cognitive complexity 85; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":2870}}}],"partialFingerprints":{"codehealthFindingId/v1":"636745cdeb720bb204796c5fd2f7da69012cd2a49a2a3c089f532ccac662882d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function semanticProcessTree (cyclomatic 104, cognitive 32): semanticProcessTree has cyclomatic complexity 104 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4106fc4e540623fc4f0f5a0c778fa456a37a3dcbd13066fb6733d61fdc5728"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseCodeDirectory (cyclomatic 101, cognitive 72): parseCodeDirectory has cyclomatic complexity 101 and cognitive complexity 72; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"235ef0e7bedcdd8066fcda38fa0bbf66caf3726017243b9784ade990643bed2a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runCoordinator (cyclomatic 96, cognitive 95): runCoordinator has cyclomatic complexity 96 and cognitive complexity 95; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e245b527568745997053cb1a1a644b6f844d6becc9b2b4a566f793df8314a75"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function semanticConcurrentValidation (cyclomatic 93, cognitive 34): semanticConcurrentValidation has cyclomatic complexity 93 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9dae53805825c61e88b99ea9229dd362801eb6ff2663f19c2c610e46ddfbc56"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateCatalog (cyclomatic 90, cognitive 62): validateCatalog has cyclomatic complexity 90 and cognitive complexity 62; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb86d8c44e69279ceb56e927cbf374a8399c202a1a17df93acee19d9b9516ea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateContract (cyclomatic 85, cognitive 69): validateContract has cyclomatic complexity 85 and cognitive complexity 69; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81d7c2a0a03f105555ed3b78abbb43c71cb4b8cccc84f3996305cc63f1b29b4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateLiveMonitorEvidence (cyclomatic 82, cognitive 74): validateLiveMonitorEvidence has cyclomatic complexity 82 and cognitive complexity 74; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":2301}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb6fed14c787ecbfd03f8c7c3550e1f01ed3312329e4b1f9b91841051ce4f39"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateObservationSemantics (cyclomatic 73, cognitive 49): validateObservationSemantics has cyclomatic complexity 73 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":1412}}}],"partialFingerprints":{"codehealthFindingId/v1":"975557be7759cc3b0667b521a8b5b2b81a0cd5afb8d06a533c5ae150c9e9c5f3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateCertification (cyclomatic 70, cognitive 111): validateCertification has cyclomatic complexity 70 and cognitive complexity 111; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/validate-background-computer-use-report.mjs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27320b37183f8f792444e9e4c31341ff398e25e30a046eb2475df11ac4501a9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractAndCompare (cyclomatic 67, cognitive 78): extractAndCompare has cyclomatic complexity 67 and cognitive complexity 78; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/validate-terminal-artifact-manifest.mjs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"343f160c16dfb94078ec08d613c2a626e511e7af747544742f800859c69b3137"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validatePlan (cyclomatic 64, cognitive 41): validatePlan has cyclomatic complexity 64 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8247e52c866544d54642bc448d32b312e8e75ad3bb4ecbef6ee821893b793b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateCatalog (cyclomatic 63, cognitive 76): validateCatalog has cyclomatic complexity 63 and cognitive complexity 76; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/validate-background-computer-use-report.mjs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b121fb843b968861a247692342daad53092dd9344a55fb8668983dfe4e958c2a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateCollectorReadiness (cyclomatic 59, cognitive 28): validateCollectorReadiness has cyclomatic complexity 59 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/publish-agent-execution-acknowledgement.mjs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"987a2a066a4c2d1c4164a044732df7d2b6d443195a86cabd3c5ccd8accc7e8ad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validatePlaygroundAlertLifecycle (cyclomatic 57, cognitive 34): validatePlaygroundAlertLifecycle has cyclomatic complexity 57 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/playground-alert-lifecycle.mjs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"5009abb41eafaed882782c813123a992f19de7190f267e537758586e510d74e5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateAgentExecutionResponse (cyclomatic 57, cognitive 31): validateAgentExecutionResponse has cyclomatic complexity 57 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/lib.mjs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53561bd1bcee607af67e655639f6b6fbd69b84fa6ffe083fc88d19587a47fb4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function bindStreamPolicyImports (cyclomatic 54, cognitive 97): bindStreamPolicyImports has cyclomatic complexity 54 and cognitive complexity 97; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"92daf754ecf9d89daeb28a17834b34ee6fff855cd997f8d261f7a9981db11f6c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function verifyDigestClaims (cyclomatic 52, cognitive 40): verifyDigestClaims has cyclomatic complexity 52 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":3085}}}],"partialFingerprints":{"codehealthFindingId/v1":"01648f22b5b7df41a2f8dfed5e904df7d84f781fd8b718879b2b96048d164da4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateCoordinationReceipt (cyclomatic 52, cognitive 17): validateCoordinationReceipt has cyclomatic complexity 52 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/publish-agent-execution-acknowledgement.mjs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55df93a8b7d732b91acb5009786903022c17a275476240e46ed41370838bc2e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function semanticHeldControllerResult (cyclomatic 51, cognitive 18): semanticHeldControllerResult has cyclomatic complexity 51 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":2425}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35679317977ade2a7a85047e1cb5d086b0535047f3f95f72767615a1fe1a4b8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function markdownToHtml (cyclomatic 49, cognitive 82): markdownToHtml has cyclomatic complexity 49 and cognitive complexity 82; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/build-docs-site.mjs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a33fe08724d61b84a1b385091f83a68d074a127716cf5ffc71b17b75e5f5ad7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function adjunct (cyclomatic 49, cognitive 37): adjunct has cyclomatic complexity 49 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":2607}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3a3c8167effa9a6b42ed3dafabf841ed4aac05097e7adf499a3461de6359c7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function chainedStartsSegmentCount (cyclomatic 48, cognitive 84): chainedStartsSegmentCount has cyclomatic complexity 48 and cognitive complexity 84; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d493916e79fe8a51cd34aa2769791faa5c9d6480c592895374b4c39097ddaef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 48, cognitive 30): (anonymous) has cyclomatic complexity 48 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e506065a5e1468028f381e57b5beb15131427ef85c043afbc6866d30c4ec3e6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateForegroundPostcondition (cyclomatic 47, cognitive 28): validateForegroundPostcondition has cyclomatic complexity 47 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":2508}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d35ac7e5ca1d21fb81ae30bfce95dffe71076c969c70ddfc5fe0c52c0a46a6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateArchiveEntries (cyclomatic 44, cognitive 54): validateArchiveEntries has cyclomatic complexity 44 and cognitive complexity 54; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/terminal-archive-policy.mjs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"59791f49f6a6e3056465506db88b39243d1e777d9dbf0a0e9c67109c6996c3e8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectProcessTree (cyclomatic 44, cognitive 34): collectProcessTree has cyclomatic complexity 44 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/process-tree-collector.mjs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b961a81d551e75f7655bc3759edea9960467bdfa73619b3dff65f7f9988d7b7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function chainedFixupPolicyImports (cyclomatic 43, cognitive 45): chainedFixupPolicyImports has cyclomatic complexity 43 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"47079f04cad39075d492f743cb3eb2e69e614a441768c979bdf14e52f0667275"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function makeLiveCertificationContract (cyclomatic 41, cognitive 22): makeLiveCertificationContract has cyclomatic complexity 41 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":3613}}}],"partialFingerprints":{"codehealthFindingId/v1":"685f16aad56c3ba349e96a2467964c0ee8e1ea4ff6782dfe934b0bcf2d8d67ff"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function machOEvidence (cyclomatic 37, cognitive 39): machOEvidence has cyclomatic complexity 37 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2e07bcad8d1cfc623f78385c79dc5a036fc5c4b14e7524ed73f8ff5b1a9f23"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateOperationSemantics (cyclomatic 36, cognitive 28): validateOperationSemantics has cyclomatic complexity 36 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"0240163a4294f2fb107b65b28005b903f6190201f98f1ecec0b10ddd25436263"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 36, cognitive 22): (anonymous) has cyclomatic complexity 36 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":2979}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43bed64351ef912287bb8aff53daf3896d4a0d5770f77705929e75d0a8ea45f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 35, cognitive 34): (anonymous) has cyclomatic complexity 35 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"b736561b667b9e37b773f076229a71fa5f191f79b21648c22aff4a34bcf4171b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function decodeBundle (cyclomatic 35, cognitive 25): decodeBundle has cyclomatic complexity 35 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":1677}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f4f3e5a615b33fadddc11e150304e414ae2cafe07aa2e9ae90ddedcda1db77"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateZipLocalEntries (cyclomatic 34, cognitive 53): validateZipLocalEntries has cyclomatic complexity 34 and cognitive complexity 53; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/terminal-archive-policy.mjs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed8b47346d7dd771108b0829605915410f09ce4c6bfa56744e7f6da1fdf3d98"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codeDirectoryIdentifiers (cyclomatic 34, cognitive 36): codeDirectoryIdentifiers has cyclomatic complexity 34 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"cabd2e31b434d0a7e56434eb56238c4deee3c5070d66c942da10c71be2430d43"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function semanticPeekabooArtifactManifest (cyclomatic 34, cognitive 25): semanticPeekabooArtifactManifest has cyclomatic complexity 34 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4c9d24a45cf8bbc0d73362417994c35526899f526bb5e47dbf480bb913963d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateNotary (cyclomatic 34, cognitive 17): validateNotary has cyclomatic complexity 34 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/validate-terminal-artifact-manifest.mjs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c828acc8abcb70099230dcd4c1ce0bf5b6a391a682d236ef791b7a0b592beb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function semanticValidatorPair (cyclomatic 34, cognitive 16): semanticValidatorPair has cyclomatic complexity 34 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":1937}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba3b00b7568d4f306d502b69302da345e25cfbe2d11c71cb1588d69af3d50ec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function constructLivePlan (cyclomatic 34, cognitive 13): constructLivePlan has cyclomatic complexity 34 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/construct-live-plan.mjs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8cdf07f462c2bb2bd76bec2cfd0299b513b2024ba693e136796840b224e87b5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseNode (cyclomatic 33, cognitive 53): parseNode has cyclomatic complexity 33 and cognitive complexity 53; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"b344433aceb3c9854ce220a669a13766b9b0985b24edfda7f1a3683b6446b137"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inspectCodeIdentity (cyclomatic 33, cognitive 26): inspectCodeIdentity has cyclomatic complexity 33 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4269}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae64992acd1ac9faed49417c6cb2969c0044d2dc8a4c8a0c0cb16a49964c2a26"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validMonitorHeartbeat (cyclomatic 33, cognitive 16): validMonitorHeartbeat has cyclomatic complexity 33 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":2124}}}],"partialFingerprints":{"codehealthFindingId/v1":"21210ae7d8c555e993f94dc758862f482b8bbcce34e5ced6b4d3dc5329771ab3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateEvidenceShape (cyclomatic 32, cognitive 34): validateEvidenceShape has cyclomatic complexity 32 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":3244}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b158c30491077cd5a3ed9ff47d8cade053cd7d41679c29d49faf07c0a2c7e54"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function heartbeatIsClosed (cyclomatic 32, cognitive 19): heartbeatIsClosed has cyclomatic complexity 32 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac66b1e3f755f85420336b5e4694081073c5182ebba7d74da70f04461ae9a12e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isExactPhysicalTarget (cyclomatic 32, cognitive 19): isExactPhysicalTarget has cyclomatic complexity 32 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/validate-background-computer-use-report.mjs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1ab7196ab5de012a3698b33f4d1b85d77eec187f3cf9aa406cde59a6f03de3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateProvenance (cyclomatic 31, cognitive 32): validateProvenance has cyclomatic complexity 31 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/validate-background-computer-use-report.mjs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"91db3b3f8ec0fb02d72cdf5776723abaabe57178a981fc60b108afe61b091d95"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseArguments (cyclomatic 30, cognitive 33): parseArguments has cyclomatic complexity 30 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":3949}}}],"partialFingerprints":{"codehealthFindingId/v1":"6633b50b67ebe55e98c74e719cb50dc0ee6a5bb0347657de3cefa84e44a782df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function controllerReceiptSlot (cyclomatic 30, cognitive 18): controllerReceiptSlot has cyclomatic complexity 30 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":3576}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c1e98d2c8d777a323634035d174fd3bdb74a23488d8b735f6df31b3ce3ef59"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function semanticElevationInstallReceipt (cyclomatic 30, cognitive 12): semanticElevationInstallReceipt has cyclomatic complexity 30 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ef6b98d3e8844f7191bec15bc92cb97adecec97d83c729b4e3cf6068340709"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateConcurrentInterleavingBinding (cyclomatic 29, cognitive 18): validateConcurrentInterleavingBinding has cyclomatic complexity 29 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":2118}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c295d04c833dab69738de123c39e9523ddf7d942f003276c0a73948e499143"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function semanticOpenClawArtifactReceipt (cyclomatic 29, cognitive 9): semanticOpenClawArtifactReceipt has cyclomatic complexity 29 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8fb7306d4112caba1f6d70c65c67961243f82427e0c9c90a0b58d25407b82f3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseTarGz (cyclomatic 27, cognitive 63): parseTarGz has cyclomatic complexity 27 and cognitive complexity 63; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/terminal-archive-policy.mjs"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c047fdfa8f88e8160fe8ce9d7c9a867bd62e9111d8d8e6e97ac3f05b16857f9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function agentReadbacks (cyclomatic 27, cognitive 24): agentReadbacks has cyclomatic complexity 27 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/validate-concurrent-run.mjs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2c3982cc33bed97a8093cbc9c9eb8492fc3b67536fbbda8cc5a2c3aec473b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validControllerHandshake (cyclomatic 27, cognitive 20): validControllerHandshake has cyclomatic complexity 27 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":3518}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c280768ff55a4a1fe2ab11c1bc90535e5983321d98809c20ffee0d4602eead"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateEvidence (cyclomatic 27, cognitive 14): validateEvidence has cyclomatic complexity 27 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":2570}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae67695bd96a2fdcd73ecc26b76bdfc67705028194a907677d9b0dc7796dea1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function signedBundle (cyclomatic 27, cognitive 11): signedBundle has cyclomatic complexity 27 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/validate-concurrent-run.mjs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"9602174835008e7dc17092efb2ddda34d9d166d76a9e81e02b7b3dc56452fa36"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateProtocol130Request (cyclomatic 27, cognitive 11): validateProtocol130Request has cyclomatic complexity 27 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":1592}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9446beab25432fc4a2f98a6026c4c7f0196f4792e43cf4009e706a0dbc258f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function checkFile (cyclomatic 26, cognitive 44): checkFile has cyclomatic complexity 26 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/docs-lint.mjs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab2998321b7302d66bc92993396fa1b8418d92fa4b29c695d16f70c8dfcae20"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateSessionCorpus (cyclomatic 26, cognitive 35): validateSessionCorpus has cyclomatic complexity 26 and cognitive complexity 35; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":1866}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26f7fdbbc85cfec97747a7caa6013de0c1270a5ca62241acdf67cf59fe0fc66"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function taskProcessTree (cyclomatic 26, cognitive 24): taskProcessTree has cyclomatic complexity 26 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/test/qualification-tools.test.mjs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f92c55860fe67421fa47ffdedf827ca760fa98a2686238f31bb653346710d8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function semanticPlaygroundAlertLifecycle (cyclomatic 26, cognitive 15): semanticPlaygroundAlertLifecycle has cyclomatic complexity 26 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"924c2ea0cdc89cb132836be0d5dc95fdead407241aacd80c1d9df10fc1442cf3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateCycleBinding (cyclomatic 26, cognitive 14): validateCycleBinding has cyclomatic complexity 26 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/crash-inventory.mjs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6734300a50a00474f4960256bf8de417892f0f51e3913033576488a3591d79e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function zipDirectory (cyclomatic 25, cognitive 20): zipDirectory has cyclomatic complexity 25 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/terminal-archive-policy.mjs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf42445ce8a790ae4254a2451105d464c0fed70a704bf10e7f943d69880dd871"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function authenticateLiveBridgeBundle (cyclomatic 25, cognitive 15): authenticateLiveBridgeBundle has cyclomatic complexity 25 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/lib.mjs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f6a3ec7334fdc8acaebb4ae72866359c4210b227da4957b0ec8b2752423eea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validExpectedOutcome (cyclomatic 25, cognitive 14): validExpectedOutcome has cyclomatic complexity 25 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5d9b16ecc465779a6f7413de24daa454c1dbb6d590584dad8762c88aed1648"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function targetIsValid (cyclomatic 25, cognitive 12): targetIsValid has cyclomatic complexity 25 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d49a98892a80cbc8c6af7f84205d099f62fb6d9491953855166e3847a4cbdd0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractMetadata (cyclomatic 24, cognitive 51): extractMetadata has cyclomatic complexity 24 and cognitive complexity 51; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/docs-list.mjs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"948d1f3f079a2207f3ecbf41e8f4434103aea921f37a8d68d34d8b29ead2367e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildAndVerifyPackage (cyclomatic 24, cognitive 26): buildAndVerifyPackage has cyclomatic complexity 24 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/prepare-release.js"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d714393adc7f95244b3fa9920f6fcb4e85750815231d0cb7b4557497db208ec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runStagedPIDAttestationCommand (cyclomatic 24, cognitive 23): runStagedPIDAttestationCommand has cyclomatic complexity 24 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4971}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ac8b51531c8a0f47272c795c80a6e5ab6d9cdb09d7d261ca97213324ed2a34"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runLivePIDAttestation (cyclomatic 24, cognitive 17): runLivePIDAttestation has cyclomatic complexity 24 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":5105}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a44cdadefd1e9bcda7eb2c4465440d4e71468fa2f66488d5cc9a2ebd5b187c7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isExactSourceArtifacts (cyclomatic 24, cognitive 17): isExactSourceArtifacts has cyclomatic complexity 24 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/validate-background-computer-use-report.mjs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2ff34b8bb3b3017c6b0e5a13d264b2404a0dd36df48e56cf00fdccf1a2b053"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function processRecord (cyclomatic 24, cognitive 12): processRecord has cyclomatic complexity 24 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef21cd5823f3310e9940c51b7d4a7806fd50628058309342e4b65b356130832"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function machoPlistValue (cyclomatic 23, cognitive 24): machoPlistValue has cyclomatic complexity 23 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/validate-terminal-artifact-manifest.mjs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c73f717c8b276719e8939e711123a4c2f8f689fe871e919d5a5a4de2395dd8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function checkSwiftCLIIntegration (cyclomatic 22, cognitive 31): checkSwiftCLIIntegration has cyclomatic complexity 22 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/prepare-release.js"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"b667bedaa779511836d4334161371215329c6064d8763d40f8e97fd3038ab817"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 21, cognitive 30): (anonymous) has cyclomatic complexity 21 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/test/qualification-tools.test.mjs"},"region":{"startLine":6250}}}],"partialFingerprints":{"codehealthFindingId/v1":"78dd99612050ce5840940490c06d966a2a7531e0a227b49f38bc178400d2fd8e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateBoundFile (cyclomatic 21, cognitive 22): validateBoundFile has cyclomatic complexity 21 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/validate-terminal-artifact-manifest.mjs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e79fbd2c9126b8c011ead0d7543f6cd3b73b82e7adfd170ab138e809bc35b4b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validSemanticElement (cyclomatic 21, cognitive 16): validSemanticElement has cyclomatic complexity 21 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8566ebc8e6dfa0703820ea658a12d31628fcfc560571945841b32f42dd06af7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function tarRecord (cyclomatic 21, cognitive 11): tarRecord has cyclomatic complexity 21 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/terminal-archive-policy.mjs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11759f152698c8ec6c3ac02bc022bc0f6dbf3007f5e848572058bd980982021"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isExactMonitorReceipt (cyclomatic 21, cognitive 11): isExactMonitorReceipt has cyclomatic complexity 21 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/validate-background-computer-use-report.mjs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"672dd0dd01e4938a4b5f58025349f88f540a4169ab827fd02dcb11f0aff1f388"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseZipCentralDirectory (cyclomatic 20, cognitive 29): parseZipCentralDirectory has cyclomatic complexity 20 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/terminal-archive-policy.mjs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"683ade4e296837d3f8f9f3e045ae18975201d0c8ce8690a9140a025bb13eb39d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function makeRequestAndResponse (cyclomatic 20, cognitive 28): makeRequestAndResponse has cyclomatic complexity 20 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/multi-target-certification-fixture.mjs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8ab6b4cb53cd29ca300461bd7771161939923a7dc700ff79e445089c5a77f6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateZipPayload (cyclomatic 20, cognitive 24): validateZipPayload has cyclomatic complexity 20 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/terminal-archive-policy.mjs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f50fb62311e5dfda3fee3720f561faa3e3c1c7041a96e668046d588bab46f8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 20, cognitive 13): (anonymous) has cyclomatic complexity 20 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":3704}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a78773849045566f22d2afcbd46dec3ab5ae572920a94704dca809c78f51ef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateLocalDuringConcurrentBinding (cyclomatic 20, cognitive 9): validateLocalDuringConcurrentBinding has cyclomatic complexity 20 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc55cfca8debe909a4bc2d475f6b7723c6fc4843cc615132fd2385678e9a097"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePaxRecords (cyclomatic 19, cognitive 21): parsePaxRecords has cyclomatic complexity 19 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/terminal-archive-policy.mjs"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"6281924539393ede09313170335a63a8d552071b7089c763c4ef1cb03adcdc2d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inspectDMGPayload (cyclomatic 19, cognitive 20): inspectDMGPayload has cyclomatic complexity 19 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/terminal-dmg-payload.mjs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80a5d6117e930541975e4d389631189cfa844a2c479492328ee2ba1663b2ff9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateCodeIdentitySubject (cyclomatic 19, cognitive 17): validateCodeIdentitySubject has cyclomatic complexity 19 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4200}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d231159df1e4e8a6d1a6da474c49a51c80e69c831d570fc27cce6c942fd640"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildMultiTargetCertificationSummary (cyclomatic 18, cognitive 23): buildMultiTargetCertificationSummary has cyclomatic complexity 18 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":2650}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4479e5620c7d9a7f49e1d775aa74b34223ab4596484905330c8879ca5a7577f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function policyStrings (cyclomatic 18, cognitive 21): policyStrings has cyclomatic complexity 18 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ff79322db0e21dd641741ba27719d0e6d22630fd0c7425bf78f58067a54222"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function projectDigestJSON (cyclomatic 18, cognitive 17): projectDigestJSON has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46f07c00a4013295fb18d0f5d33d7720494ad88f91dfba4b9a08fb746f882cb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function highlightCode (cyclomatic 18, cognitive 10): highlightCode has cyclomatic complexity 18 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/build-docs-site.mjs"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"b991ec5e424089d64952c1143f3648d842977fe10d47d4a83f65d9a15f955590"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function policyFindingsForFile (cyclomatic 17, cognitive 46): policyFindingsForFile has cyclomatic complexity 17 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb9bce882f7f00738c2adb2d834b271da93e70159217c613e0cc50539b16fd2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateLinks (cyclomatic 17, cognitive 37): validateLinks has cyclomatic complexity 17 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/build-docs-site.mjs"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb7b1f33f2ddd4fbbe665251a339aea7aad20512f520e171e4a4985bfa52ea5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 16): (anonymous) has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/test/qualification-tools.test.mjs"},"region":{"startLine":1719}}}],"partialFingerprints":{"codehealthFindingId/v1":"f262086c0d820adf46d118018ee97798f7307f6af5f8760e2784c1140ef6d24f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readCalibrationEmitter (cyclomatic 17, cognitive 12): readCalibrationEmitter has cyclomatic complexity 17 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/lib.mjs"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"349a50040aeed494149498865626570ef4504544b3d092d0a1bbe7e5aeeba813"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validatedProcess (cyclomatic 17, cognitive 9): validatedProcess has cyclomatic complexity 17 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/publish-agent-execution-acknowledgement.mjs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b9c6a80c242578b2f0e2b98c048343dda216aca078b5542fa339039608b07e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validCrashEvidence (cyclomatic 17, cognitive 9): validCrashEvidence has cyclomatic complexity 17 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":2202}}}],"partialFingerprints":{"codehealthFindingId/v1":"b07c240a77d8432afe0a5f1df5840993bcf26c3ec80ed8e4d577b5d9be7c66a4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function walk (cyclomatic 16, cognitive 22): walk has cyclomatic complexity 16 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da292eb3e5f2b43a5fd7c359d8d4bd0c05e8706c4f68c6c6a71cd6b112c9c63"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 21): (anonymous) has cyclomatic complexity 16 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/managed-launcher.mjs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea0f606e4f04fab7d37973bff518645c3c3b3d6cd730b274327bee95f4bc7b2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runManagedLaunch (cyclomatic 16, cognitive 17): runManagedLaunch has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/managed-launcher.mjs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"8117c234015441a7522433f972fa827f0cb9c9a33c2bc4eae8d95fa0bb8d2f19"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function concurrentFixture (cyclomatic 16, cognitive 15): concurrentFixture has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/test/qualification-tools.test.mjs"},"region":{"startLine":4898}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddced834c0bd9ed1c76a4b7c4f48a52d333b4a0692b2f6a159d5970fb91abe1a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runCLI (cyclomatic 15, cognitive 20): runCLI has cyclomatic complexity 15 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":5332}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1826fcac32bb13e0cde23849ccab9d8e1a784681fd8d872c487b1f9110d74b4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function selectHomebrewReleaseAssets (cyclomatic 15, cognitive 17): selectHomebrewReleaseAssets has cyclomatic complexity 15 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/select-homebrew-release-assets.mjs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"8baa994444f0f4a08aee96918bb515a537e8e3f79b2fc343609c77cb6687d3eb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runPIDAttestation (cyclomatic 15, cognitive 12): runPIDAttestation has cyclomatic complexity 15 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf9d569176c71462d69618892e1311b81902335f8b94478afdcc33883e822b4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validMonitorProcess (cyclomatic 15, cognitive 10): validMonitorProcess has cyclomatic complexity 15 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8e44bb461ab6032bbb34bcecabfc10ae95530ea931ebd434cd571c137958b9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function verifyLiveMonitorRuntime (cyclomatic 15, cognitive 9): verifyLiveMonitorRuntime has cyclomatic complexity 15 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4741}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba68a946eca63b85f7116ae33860567a6c06b263a69321c0ff91f8e03713756a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runner (cyclomatic 14, cognitive 18): runner has cyclomatic complexity 14 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/certification-code-identity.test.mjs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"df965b1a2a1b9bd4b64ae656b65c59e5b857c0d0d3b6128f8ef68af50cddc445"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function verifyCurrentBuildSourceBinding (cyclomatic 14, cognitive 15): verifyCurrentBuildSourceBinding has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7cbc734aa1f748e0e2df49082d3412a2bbf446634216fe9b7b1cb98265995af"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectControllerCorpus (cyclomatic 14, cognitive 14): collectControllerCorpus has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ea5340bbfb6ad506d339f5859ff78d415b5158484067124607b07303d6c3c3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function installedEntry (cyclomatic 14, cognitive 10): installedEntry has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"c133e9b321c624c3edead6833594602246dec18fd07d0d4340cca61d785aad16"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readStableFile (cyclomatic 14, cognitive 9): readStableFile has cyclomatic complexity 14 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/lib.mjs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"af697605c132c6cbf708417243b01ae118c77cad684394a359b201cc942bb206"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 21): (anonymous) has cyclomatic complexity 13 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/test/qualification-tools.test.mjs"},"region":{"startLine":3480}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1e573238dbcb5541603308b89190dd648e7ea3a3df1de035a236fa573eb78b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function splitRow (cyclomatic 13, cognitive 19): splitRow has cyclomatic complexity 13 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/build-docs-site.mjs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"9997ba0a304937d211bbd3a5ba13f463b46f7e6792fcbdc1319868ebb376065d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function checkGitStatus (cyclomatic 13, cognitive 19): checkGitStatus has cyclomatic complexity 13 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/prepare-release.js"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e2680a704c89190fade912638177638f851ef2c27cbac00021a68bc0bc51b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 15): (anonymous) has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/release-validation-workflow.test.mjs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1f331b076badfa669f71616919261a35bff8afdb0c19b59dc99f17da63c71d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateAgentExecutionTrace (cyclomatic 13, cognitive 14): validateAgentExecutionTrace has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/lib.mjs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec83405cef51eb96da2f373479afe049389e811542276b9a153263f760cc0d11"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function canonicalValue (cyclomatic 13, cognitive 13): canonicalValue has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/controller-source-manifest.mjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c80cfd078115201cd905d335f6df708aa4f7a3f4384507acec2326fe505496"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function canonicalValue (cyclomatic 13, cognitive 13): canonicalValue has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/validate-terminal-artifact-manifest.mjs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4efad3df9d2b838ec0d03b08e16e730b7b42d476fffc2da440363629ff91556e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/validate-concurrent-run.mjs"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"4415810eea035d8e73ff4ef85b0f15b65ca2260e8cfb513cd8f6d80ad27e66b1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function coordinatorEvents (cyclomatic 13, cognitive 9): coordinatorEvents has cyclomatic complexity 13 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/validate-concurrent-run.mjs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd5b54f1ce4d9a8ee6b12d93f5481dbfc731e0d5beba32730721a33340ce439"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function zipFixture (cyclomatic 12, cognitive 14): zipFixture has cyclomatic complexity 12 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test-terminal-archive-policy.mjs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76752e9e1a980fde6cbd12a1937dafb89da4ce09dab99a8dfbba355d9d05c95"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 12): (anonymous) has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"f844ff8324e6f130fbc5f08a7d3f135392ae14a9622eb4132832b4fd7dcaa862"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function stageFirstPartyExecutable (cyclomatic 12, cognitive 12): stageFirstPartyExecutable has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4671}}}],"partialFingerprints":{"codehealthFindingId/v1":"d866240f9cd94966a21c109e803c39524d55a1ca2c8da9bfd890e59565ed7245"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateZipDescriptor (cyclomatic 12, cognitive 11): validateZipDescriptor has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/terminal-archive-policy.mjs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb5ddc9f79ee5add6de701fbba2aad1a069c27c054b4b6aae3b4e62961bb9f3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 9): (anonymous) has cyclomatic complexity 12 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/validate-background-computer-use-report.mjs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"5238e3deecd0bb09beb2f1f53c6127a3e3f2dde20f7bb4d250b7bf03fe0e23d6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function playgroundAlertLifecycleFixture (cyclomatic 11, cognitive 17): playgroundAlertLifecycleFixture has cyclomatic complexity 11 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/test/qualification-tools.test.mjs"},"region":{"startLine":4365}}}],"partialFingerprints":{"codehealthFindingId/v1":"36519c14c90a35dd9fee6fbb4298f9796ca154c27423c1c2574ec33e3697133c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 14): (anonymous) has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/ambient-state-test-policy.test.mjs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbea12b5b68264381f56f7cc6ff4bea7918a4dbd48d827aa3fdd9d285480d46"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readSource (cyclomatic 11, cognitive 13): readSource has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/controller-source-manifest.mjs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"80482501d8c49f95c1589af92c8762bfba3f84322f3316004f8e0dc8ed9460f0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function finishMetadata (cyclomatic 11, cognitive 13): finishMetadata has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/terminal-archive-policy.mjs"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da1ad98306c64a545118a0fd6cea2e827009dc642f701aec55f8ae4e874687e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function stageCodeIdentityInspector (cyclomatic 11, cognitive 12): stageCodeIdentityInspector has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4407}}}],"partialFingerprints":{"codehealthFindingId/v1":"d294857684b6c471fa02d62d4620df1dec75d1581ea530841bd4a050dc69131f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createFirstPartyExecutableStage (cyclomatic 11, cognitive 12): createFirstPartyExecutableStage has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4563}}}],"partialFingerprints":{"codehealthFindingId/v1":"d606ecd20a3403bc6a9291ceaa6627162a09161181e6637d246356686acf3dd2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function unsignedInteger (cyclomatic 11, cognitive 11): unsignedInteger has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dab51d041ce68815f3ef134bbd42b686596617650ffa85dd697114a31a53a02"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function canonicalValue (cyclomatic 11, cognitive 11): canonicalValue has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3d3191a2c948f985a856847dfae3f10c04a41a1befa1880b215bfd1ce6bd2e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function checkRequiredFields (cyclomatic 11, cognitive 11): checkRequiredFields has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/prepare-release.js"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ffe9275cc295cabe27c621b4dec73ee1f8274a5921d49fcd2e5a0d240027678"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function canonicalValue (cyclomatic 11, cognitive 11): canonicalValue has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61a9a5dd454198206aa1c8fa08340d22eb254fe964518369a05658e5416c213"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function zipEntryType (cyclomatic 11, cognitive 10): zipEntryType has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/terminal-archive-policy.mjs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"addf63bea8ae171a91a39a13c7126bc12f84e4bc4edfd1c84bf615049fbd1c5b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function integratedReadback (cyclomatic 11, cognitive 9): integratedReadback has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/validate-concurrent-run.mjs"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"099b3a48e5a9bc68cf54f078f0e5f78aec9beb8c693e8877ba2aebfd53c7e5e3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codeSignatureMetadata (cyclomatic 11, cognitive 9): codeSignatureMetadata has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":4046}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9d9afb6cbd708bc7dafc88fd2218beddb091fb0f2cad3c1a35b5b25b2dd086"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 9): (anonymous) has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/multi-target-certification-fixture.mjs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94572868bc95499f0d520bd80d1ffa648001a6fc28626499b5dc6ad114f9fd1"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: tests/codeql-build-graph.test.mjs:228 imports \u0027../Apps/CLI/Sources/PeekabooExec/\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/codeql-build-graph.test.mjs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"7258b1913be7e8934e2616c49ebdfa0a252429ecaf3bd8186a7ab615f7a5e3b8"}},{"ruleId":"R6","level":"warning","message":{"text":"The declared test suite includes a file that cannot be loaded: This repository declares test tooling, and the \u2713 above records that declaration \u2014 but tests/codeql-build-graph.test.mjs cannot be loaded at all: it imports a module that names no file in this repository, so the runner throws while collecting it and none of its cases execute. The wiring is present and the suite it points at does not run as written, which is why the tooling tick must not be read as a statement that the tests pass. Fix the unloadable file(s) \u2014 each one is reported with its failing import under Test Coverage \u2014 then the declared script exercises what it claims to."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/codeql-build-graph.test.mjs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70f41483c2e3800cf4258b01cfc49b90dd62280fa2babb5fcb2f0e79346bb25"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027EXPECTED_ROOT_COMMAND_COUNT\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/release-preflight-contract.mjs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a97768644cf5970d67bf075dbbc5c8288d750a1f48b21767f6e8c55ebffd54"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027productTagline\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/build-docs-site.mjs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8011fdd42dcfd134bf6f0a958d1e5f259c86ce8bb53734bf8a5af23b73c28b"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027crc32\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/terminal-archive-policy.mjs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d0b56dfd964162a56ac526614c6ec217846223b43768217fb3e544887d7b1e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!Number.isFinite(value) || Object.is(value, -0) || (Number.isInteger(value) \u0026\u0026 !Number.isSafeInteger(value))\u0060 appears character-identically in 4 files \u2014 scripts/controller-source-manifest.mjs, scripts/finalize-multi-target-certification.mjs, scripts/run-live-multi-target-certification.mjs, scripts/validate-terminal-artifact-manifest.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/controller-source-manifest.mjs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"43717f1933b44babf18aac679d3f61756957a73bf61db88820c3ddd9eb256aa0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!display.error \u0026\u0026 display.status === 0 \u0026\u0026 matches.length === 1\u0060 appears character-identically in 3 files \u2014 scripts/final-qualification/publish-agent-execution-acknowledgement.mjs, scripts/final-qualification/qualification-manifest.mjs, scripts/final-qualification/validate-concurrent-run.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/publish-agent-execution-acknowledgement.mjs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde18b05f9d656f6ea2d60025ee9c6a76692df058d31f9443d511a3f7729b204"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!value || typeof value !== \u0027object\u0027 || Array.isArray(value)\u0060 appears character-identically in 5 files \u2014 scripts/controller-source-manifest.mjs, scripts/final-qualification/lib.mjs, scripts/finalize-multi-target-certification.mjs, scripts/run-live-multi-target-certification.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/controller-source-manifest.mjs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5391a96c1de4fa6ea9689b7f8cba8b30a30fa58dc6cdbd89fb66bdd756a141"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!verification.error \u0026\u0026 verification.status === 0\u0060 appears character-identically in 2 files \u2014 scripts/final-qualification/process-tree-collector.mjs, scripts/finalize-multi-target-certification.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/process-tree-collector.mjs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec109586857a65f6bce13d42b552417b28a072248ee55eeb8bf835beed725d1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Number.isSafeInteger(value) \u0026\u0026 value \u003E 0\u0060 appears character-identically in 4 files \u2014 scripts/final-qualification/construct-live-plan.mjs, scripts/final-qualification/lib.mjs, scripts/final-qualification/playground-alert-lifecycle.mjs, scripts/finalize-multi-target-certification.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/construct-live-plan.mjs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d43e237aeb21fb1c90d60482d1b2178b191ff8c365dcc3648188e98d5bd7971"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060child.exitCode === null \u0026\u0026 child.signalCode === null\u0060 appears character-identically in 2 files \u2014 scripts/run-live-multi-target-certification.mjs, scripts/test-browser-provider-connection.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec44d89c9d79fb48cc4603619758d02c386a8432216a68966d2b46b27f658df0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060component === \u0027\u0027 || component === \u0027.\u0027 || component === \u0027..\u0027\u0060 appears character-identically in 2 files \u2014 scripts/final-qualification/executable-policy-scanner.mjs, scripts/final-qualification/qualification-manifest.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/executable-policy-scanner.mjs"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc19f3d74423b1791ecb074c5e8e215fadb6605025b35a3c4e1ea42c98d34719"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060entry.isFile() \u0026\u0026 entry.name.endsWith(\u0027.json\u0027)\u0060 appears character-identically in 2 files \u2014 scripts/final-qualification/playground-alert-lifecycle.mjs, scripts/final-qualification/validate-concurrent-run.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/playground-alert-lifecycle.mjs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"236829fe09e7748649c226a9ab6b12425b1aacb492bf508c264cfe10a96480a6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060heartbeat.attributedForegroundEventCount !== 0 || heartbeat.attributedForegroundSourcePIDs.length !== 0 || heartbeat.foregroundActivityObser\u2026\u0060 appears character-identically in 2 files \u2014 scripts/finalize-multi-target-certification.mjs, scripts/run-live-multi-target-certification.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":2416}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f28b6d6ccf622e0c24126d1d14d092a4bc22c0a89af2463a03faf35450a920c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060index === 0 || actionIntervals[index - 1].completed_at_milliseconds\u0060 appears character-identically in 2 files \u2014 scripts/final-qualification/qualification-manifest.mjs, scripts/final-qualification/validate-concurrent-run.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":2265}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf4fe0f90e8dc6f0904830a804cfd96237a198fdf720ffbe48fa5cdcddab451"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060index === 0 || roots[index - 1].root_id \u003C root.root_id\u0060 appears character-identically in 2 files \u2014 scripts/final-qualification/process-tree-collector.mjs, scripts/final-qualification/publish-agent-execution-acknowledgement.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/process-tree-collector.mjs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef9d28ce9b1a3aeddae55641b086581087101e1f36023cb3cb96c1a84de5277"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060index === 0 || value.lifecycle_watched_pids[index - 1] \u003C pid\u0060 appears character-identically in 2 files \u2014 scripts/final-qualification/publish-agent-execution-acknowledgement.mjs, scripts/final-qualification/qualification-manifest.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/publish-agent-execution-acknowledgement.mjs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bfdfd8ac47544d48c7f1a80f7d5578910a64e6fc9f323722faf6017266de140"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060inner.x \u003E= outer.x \u0026\u0026 inner.y \u003E= outer.y \u0026\u0026 inner.x \u002B inner.width \u003C= outer.x \u002B outer.width \u0026\u0026 inner.y \u002B inner.height \u003C= outer.y \u002B outer.heig\u2026\u0060 appears character-identically in 2 files \u2014 scripts/finalize-multi-target-certification.mjs, scripts/run-live-multi-target-certification.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e09977853e3f73f6c80cccdf32905b5bbd5bb2f51d94e3da0f84b08a9b3a52"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060names.includes(name) \u0026\u0026 result[name] === undefined\u0060 appears character-identically in 2 files \u2014 scripts/final-qualification/lib.mjs, scripts/final-qualification/playground-alert-lifecycle.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/lib.mjs"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9611d3e21becc691e61b2328b6a5932bee37ef6db2915933c7e151fae396487"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060positiveInteger(value.pid) \u0026\u0026 positiveDecimal(value.start_identity)\u0060 appears character-identically in 2 files \u2014 scripts/final-qualification/lib.mjs, scripts/final-qualification/validate-concurrent-run.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/lib.mjs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17a96477cf58b0c607af1f5b35496af341f16489e456bfc0fd1ba37cc37800e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prototype === Object.prototype || prototype === null\u0060 appears character-identically in 3 files \u2014 scripts/final-qualification/lib.mjs, scripts/finalize-multi-target-certification.mjs, scripts/run-live-multi-target-certification.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/lib.mjs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"accc9f844445ca01a1d3d951b06fffa0cc21d040f784c389df867e508be8c064"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof entry === \u0027string\u0027 \u0026\u0026 !entry.includes(\u0027\\0\u0027)\u0060 appears character-identically in 2 files \u2014 scripts/final-qualification/managed-launcher.mjs, scripts/final-qualification/publish-agent-execution-acknowledgement.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/managed-launcher.mjs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"7364f4ac55bdb042b6e3f74c4ce327284460bba89089c74cdb77cd3ee94f6207"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof process.geteuid === \u0027function\u0027 \u0026\u0026 info.uid !== process.geteuid()\u0060 appears character-identically in 2 files \u2014 scripts/finalize-multi-target-certification.mjs, scripts/run-live-multi-target-certification.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":3328}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad22e1ec39423e8ee868c0a5cedcb1d203c6ac5c52a55b2aac71b43fd18bfe8f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value !== \u0027string\u0027 || !POSITIVE_DECIMAL.test(value)\u0060 appears character-identically in 2 files \u2014 scripts/final-qualification/lib.mjs, scripts/run-live-multi-target-certification.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/lib.mjs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"8586db319ebc28e4f19dcb26ee0b17e2664ed84de5f332801f49a1ffbd47735d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0027number\u0027 \u0026\u0026 Number.isFinite(value) \u0026\u0026 !Object.is(value, -0) \u0026\u0026 (!Number.isInteger(value) || Number.isSafeInteger(value))\u0060 appears character-identically in 2 files \u2014 scripts/finalize-multi-target-certification.mjs, scripts/run-live-multi-target-certification.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbfc70551b936524b44cddcf6868b6d7d483db8a7b8da046dbd0e5c985536bb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0027string\u0027 \u0026\u0026 /^[1-9][0-9]*$/.test(value)\u0060 appears character-identically in 2 files \u2014 scripts/final-qualification/construct-live-plan.mjs, scripts/final-qualification/playground-alert-lifecycle.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/construct-live-plan.mjs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"84001858c9a46cb512972b6c615c0655131654b37703a22db8aeed1e02dd7b16"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value \u0026\u0026 typeof value === \u0027object\u0027 \u0026\u0026 !Array.isArray(value)\u0060 appears character-identically in 2 files \u2014 scripts/final-qualification/qualification-manifest.mjs, scripts/validate-terminal-artifact-manifest.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/qualification-manifest.mjs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"b219d0774bb6f5046fb3c3406a7e2c3e2989b63179f3941cae3f235439324a7b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value === null || ( typeof value === \u0027string\u0027 \u0026\u0026 value.length \u003E 0 \u0026\u0026 !value.includes(\u0027\\0\u0027) \u0026\u0026 Buffer.byteLength(value) \u003C= 1024 )\u0060 appears character-identically in 2 files \u2014 scripts/final-qualification/construct-live-plan.mjs, scripts/final-qualification/project-live-bindings.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/construct-live-plan.mjs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b5ab656b80d50012fd1e078e698f5042fdd94fc312cc4c94c3c74e60c47b87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value === null || typeof value === \u0027boolean\u0027 || typeof value === \u0027string\u0027\u0060 appears character-identically in 3 files \u2014 scripts/controller-source-manifest.mjs, scripts/finalize-multi-target-certification.mjs, scripts/validate-terminal-artifact-manifest.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/controller-source-manifest.mjs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"485884c219038346f15df13028a5e76dcc01dcbafd6d5a94162ed2fb69f503d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value === null || typeof value === \u0027string\u0027 || typeof value === \u0027boolean\u0027\u0060 appears character-identically in 2 files \u2014 scripts/final-qualification/lib.mjs, scripts/run-live-multi-target-certification.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/lib.mjs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4ff064dc63ff8ac8ff4c911d9a35e925b5f66a6905989c1c4b97d5f2ca3a24"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value.parent_pid === null \u0026\u0026 value.parent_start_identity === null\u0060 appears character-identically in 2 files \u2014 scripts/final-qualification/publish-agent-execution-acknowledgement.mjs, scripts/final-qualification/qualification-manifest.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/publish-agent-execution-acknowledgement.mjs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b4dea252a2d0195cd5e58d9b0accab06912e8e59a022c482e8497c94fc7fe3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value.role === \u0027local\u0027 \u0026\u0026 value.epoch === \u0027during\u0027\u0060 appears character-identically in 2 files \u2014 scripts/final-qualification/process-tree-collector.mjs, scripts/final-qualification/qualification-manifest.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/process-tree-collector.mjs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a6baafe153c60a91f01d5795b7d745eafbaadbe70161af64b34b9512616c06"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.value.enabled \u0026\u0026 $0.key.caseInsensitiveCompare(provider) == .orderedSame\u0060 appears character-identically in 2 files \u2014 Apps/Mac/Peekaboo/Core/Settings.swift, Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BAccessors.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":"Apps/Mac/Peekaboo/Core/Settings.swift"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c42f83cac6c41ae7188651df458da18b1048799acb5c3b7bddf0f9c237afba0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060PeekabooBridgeOperationResultSemantics.successfulOutcomeMatchesContract( outcome, response: projected.response, plan: plan) || PeekabooBridg\u2026\u0060 appears character-identically in 2 files \u2014 Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift, Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.swift"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"43481487fe6a1329378982c515dade113f59a2c0c144e4392abd9f50442387ae"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Self.isLowercaseASCIIOrDigit($0) || $0 == 0x2D\u0060 appears character-identically in 2 files \u2014 Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift, Apps/CLI/Sources/PeekabooCertificationController/ObserverPlan.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":"Apps/CLI/Sources/PeekabooCertificationController/ControllerPlan.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a66d6ef7a8659d42162f5a953c6897f9029e9bb2d7e798f24599de34f4c013"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060[\u0022Open\u0022, \u0022Save\u0022, \u0022Export\u0022, \u0022Import\u0022].contains(title) || title.hasPrefix(\u0022Save As\u0022)\u0060 appears character-identically in 2 files \u2014 Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift, Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogElementClassification.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.swift"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b6e418f54d0123aa5628f0d2cbd3c51720504f27ce245e9d4ea11a42e44d64"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060bounds.origin.x \u003C -10000 || bounds.origin.y \u003C -10000\u0060 appears character-identically in 2 files \u2014 Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift, Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/WindowCGInfoLookup.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ApplicationWindowEnumerationContext.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"1902a42c8931c9ebac9a882a024a7c2f1b815ab0a2628c47c0d779f64ced567a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060bounds.origin.x.isFinite \u0026\u0026 bounds.origin.y.isFinite \u0026\u0026 bounds.width.isFinite \u0026\u0026 bounds.height.isFinite \u0026\u0026 bounds.width \u003E 0 \u0026\u0026 bounds.height\u2026\u0060 appears character-identically in 2 files \u2014 Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCaptureBinding.swift, Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCaptureBinding.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ba5c87f61f6499c2b5d09e02e95429ee1c734f4a3f9ca74594497fea97281c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060code == EWOULDBLOCK || code == EAGAIN || code == EINTR\u0060 appears character-identically in 3 files \u2014 Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonStartupGate.swift, Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift, Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopOperationLaneCoordinator.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonStartupGate.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b971a4302f555fdb8953e5cd58b2ea7d808ad221d1eb14e0b9f296b1714c51"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060description.contains(\u0022\u2318\u0022) || description.contains(\u0022\u2325\u0022) || description.contains(\u0022\u2303\u0022)\u0060 appears character-identically in 2 files \u2014 Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AXTreeCollector.swift, Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/MenuBarElementCollector.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AXTreeCollector.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"88cb0b9a4f932ccd072eaadccd2c81062be2fcd1f9ae1c7af0b0aafc2ffc32c9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dispatchErrorDescription != nil || Task.isCancelled\u0060 appears character-identically in 2 files \u2014 Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift, Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d7670d5be4f0bc206d4e14ae66d4ce13deebd88adb8ebb5a0931569d8badc4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060element.type == .button || element.type == .link\u0060 appears character-identically in 2 files \u2014 Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationLabelPlacementGeometry.swift, Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationLabelPlacer.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationLabelPlacementGeometry.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b23d5709dfd599764fd741c5b84fa6655a9e3a9c6156a6760627397959da7d4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060entries == [\u0022openai/gpt-5.6\u0022, \u0022anthropic/claude-opus-5\u0022] || entries == [\u0022openai/gpt-5.5\u0022, \u0022anthropic/claude-opus-4-7\u0022] || entries == [\u0022opena\u2026\u0060 appears character-identically in 2 files \u2014 Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BAccessors.swift, Core/PeekabooCore/Sources/PeekabooAutomation/Services/AI/PeekabooAIService.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":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BAccessors.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04470c656ebb2a790075a23b85778ae9c41aafdd2cf65afb66a4414a78b880f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060entry != \u0022ollama/llava\u0022 \u0026\u0026 entry != \u0022ollama/llava:latest\u0022\u0060 appears character-identically in 2 files \u2014 Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BAccessors.swift, Core/PeekabooCore/Sources/PeekabooAutomation/Services/AI/PeekabooAIService.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":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BAccessors.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"9861c6171e74a9e909744a0d3c531a41416dc23872f7010a3e2962d9eddef789"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060env[\u0022FORCE_COLOR\u0022] != nil || env[\u0022CLICOLOR_FORCE\u0022] != nil\u0060 appears character-identically in 2 files \u2014 Apps/CLI/Sources/PeekabooCLI/CLI/Output/TerminalDetection.swift, Apps/CLI/Sources/PeekabooCLI/Commands/Core/LearnCommand.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":"Apps/CLI/Sources/PeekabooCLI/CLI/Output/TerminalDetection.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f834570376bce162a978c8e604c3f36fb12a3e33218263ad24b5ff1b912071"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060errno == EINPROGRESS || errno == EAGAIN || errno == EALREADY\u0060 appears character-identically in 2 files \u2014 Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerTransport.swift, Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeClient\u002BTransport.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerTransport.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe62aed01a001ad83752abe1bfd870bc2013162e032ed6118ba85b6271dbf49"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060errno == EWOULDBLOCK || errno == EAGAIN || errno == EINTR\u0060 appears character-identically in 2 files \u2014 Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitCaptureGate.swift, Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ClipboardPasteTransactionGate.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitCaptureGate.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ec298463ff2ef7dc7890c40c808b93c530155f9ba7250d15ee1b3b2d11996b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error is CancellationError || Task.isCancelled\u0060 appears character-identically in 2 files \u2014 Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand\u002BState.swift, Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionRunner.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":"Apps/CLI/Sources/PeekabooCLI/Commands/System/WindowCommand\u002BState.swift"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e886fc7f6ae52d545868a93da43cd2de74da1e706871225a5d65a4495ec53cf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060field.title() == identifier || field.attribute(Attribute\u003CString\u003E(\u0022AXPlaceholderValue\u0022)) == identifier || field.descriptionText()?.contains(i\u2026\u0060 appears character-identically in 2 files \u2014 Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BElements.swift, Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BForegroundOutcomes.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DialogService\u002BElements.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddaa3e04f3f2229e157b804dd1a58d7dc639f87564eedaf8e5371db162b22ed1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060handshake.negotiatedVersion \u003E= PeekabooBridgeConstants.attestedOperationReceiptVersion \u0026\u0026 handshake.hostCapabilities?.contains(PeekabooBridg\u2026\u0060 appears character-identically in 2 files \u2014 Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift, Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BDialogs.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"e01434f106ca699e3fd5af691743578e6a2bd18ee9ba1cc9afca262ec13feaf9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.channel != .thinking \u0026\u0026 message.metadata?.customData\u0060 appears character-identically in 2 files \u2014 Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolMCPBridge\u002BProviderContext.swift, Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolMCPBridge\u002BProviderContext.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"742a2f32306d648cf6aa6b3b26bb113f75301ce786c468a00a5951008da36f26"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060model == configuredDefault || entry == configuredDefault\u0060 appears character-identically in 2 files \u2014 Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BAccessors.swift, Core/PeekabooCore/Sources/PeekabooAutomation/Services/AI/PeekabooAIService.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":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BAccessors.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"7adaf468bb6ee669c90e6264b2a405f71a28f50c7dde77b94ce78ea45cc4dffb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060newlyCreatedSnapshotWasPending \u0026\u0026 PendingSnapshotCleanupPolicy.shouldPreserveReservation(after: presentedError)\u0060 appears character-identically in 2 files \u2014 Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool.swift, Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SeeTool.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3daa4edae54c0062bbc2e55d465441f344ce974f150aa2c11ff4a9555f58119"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized.contains(\u0022grok-4.20-multi-agent\u0022) || normalized.contains(\u0022grok-4-20-multi-agent\u0022) || compact.contains(\u0022grok420multiagent\u0022)\u0060 appears character-identically in 2 files \u2014 Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AnalyzeTool.swift, Core/PeekabooCore/Sources/PeekabooAutomation/Services/AI/PeekabooAIService.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AnalyzeTool.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8be432d9d72833ee701ec608e1c8cdb7127e4a748e5c11586ff9dd578d57c45"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized.hasPrefix(\u0022gpt-4\u0022) || compact.hasPrefix(\u0022gpt4\u0022) || normalized.hasPrefix(\u0022gpt-3\u0022) || compact.hasPrefix(\u0022gpt3\u0022) || normalized.hasPr\u2026\u0060 appears character-identically in 2 files \u2014 Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AnalyzeTool.swift, Core/PeekabooCore/Sources/PeekabooAutomation/Utils/AIProviderParser.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/AnalyzeTool.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6428b4ea32ef13f7b0a95c12804a30f8588768cd9697e5cbd91d57784be1be"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.requiresImplicitSnapshotInvalidation || options.usesPerToolSnapshotInvalidation\u0060 appears character-identically in 2 files \u2014 Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift, Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/BridgeCapabilityPolicy.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be260040942dfdd6623716f39071d60516bce1bd3dc3644c17c3df9003bd9bf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.saveRawScreenshot || options.saveAnnotatedScreenshot || options.saveSnapshot\u0060 appears character-identically in 2 files \u2014 Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService\u002BOutput.swift, Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationOutputWriter.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService\u002BOutput.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"5355d0f3e2e724e14d557e9a13d84e4a5ff31686a7f811c6989d5469c1e6769c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060outcome.delivery == nil \u0026\u0026 outcome.dispatchState == .none\u0060 appears character-identically in 2 files \u2014 Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift, Core/PeekabooFoundation/Sources/PeekabooFoundation/DesktopActionOutcome.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationResultSemantics.swift"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"2724133947730b82eb2097a2342d086a80a061a7493920117addfe2cbe2b6350"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060primary.utiIdentifier == UTType.plainText.identifier || primary.utiIdentifier == UTType.utf8PlainText.identifier\u0060 appears character-identically in 2 files \u2014 Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift, Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/PasteTool.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/PasteCommand.swift"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b83048298ff08c2395d80e1f9ba0c8cae50cd65fbec86ef37f9d6bed0771f8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060request.detection.mode != .none \u0026\u0026 request.detection.allowWebFocusFallback\u0060 appears character-identically in 2 files \u2014 Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService\u002BOperationLane.swift, Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationService\u002BOperationLane.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e93b446e713eb5d5c3c8cdcbc8ff4be3747ac7dd9357b42255beba3123fcd8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060request.webFocus \u0026\u0026 target.requiresStableMutationTarget\u0060 appears character-identically in 2 files \u2014 Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool.swift, Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SeeTool.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"92baea99dbfc9071946ea5e85c965ef6b38e37cb3c6477596891ad9f4f14c773"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result == pid || (result == -1 \u0026\u0026 errno != EINTR)\u0060 appears character-identically in 2 files \u2014 Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionProcessRunner.swift, Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ShellTool.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionProcessRunner.swift"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eadee37f3ca2b432a9890cee0acae628ddc7f2feb210f31ab74f0f4baf3fa52"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result.details[\u0022saved_path_verified\u0022] == \u0022true\u0022 || result.details[\u0022saved_path_exists\u0022] == \u0022true\u0022\u0060 appears character-identically in 2 files \u2014 Apps/CLI/Sources/PeekabooCLI/Commands/System/DialogCommand\u002BFile.swift, Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DialogTool.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":"Apps/CLI/Sources/PeekabooCLI/Commands/System/DialogCommand\u002BFile.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed30f63ef14209debab27050e6364dfb1ed585c2eab5fd9840ecb91d9cc8842c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060role == \u0022AXSecureTextField\u0022 || subrole == \u0022AXSecureTextField\u0022\u0060 appears character-identically in 2 files \u2014 Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift, Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/BackgroundInputDriver.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"d228f662e044fc302d1325f9f3a38d311004fe2670553c5f41e82cae4ac6f62d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060role.contains(\u0022textfield\u0022) || role.contains(\u0022textarea\u0022) || role.contains(\u0022searchfield\u0022)\u0060 appears character-identically in 2 files \u2014 Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AutomationElementResolver.swift, Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService\u002BTargetResolution.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/AutomationElementResolver.swift"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f03331e7692917470da7f40609da2cff9d1bfbef85cffe7c689f5d8a394e5aa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060selection.isNew \u0026\u0026 MCPToolContext.snapshotObservationStartedAt != nil\u0060 appears character-identically in 2 files \u2014 Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool.swift, Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/SeeTool.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/InspectUITool.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c319b97b98ec23ca89ca72f3d6f4b1f1d0c6e06dc206e771b5d6f700ad4f395"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060selector.applicationIdentifier != nil || selector.windowTitle != nil || selector.windowIndex != nil\u0060 appears character-identically in 2 files \u2014 Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DialogTool.swift, Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceiptModels.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/DialogTool.swift"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f70dc9d75b34ecb7a1ef0deffbb554a898a081bb1e5ee599a3e335fa7ab6c4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.app != nil || self.pid != nil || self.windowTitle != nil || self.windowIndex != nil\u0060 appears character-identically in 2 files \u2014 Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift, Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BLiveScope.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureCommand\u002BAction.swift"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c3f5792c53ead25ad83876104d02daee43d7c4848016a8d1a083b902de3dad"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.foreground || !self.focusOptions.hasForegroundFocusOverrides\u0060 appears character-identically in 4 files \u2014 Apps/CLI/Sources/PeekabooCLI/Commands/System/DialogCommand\u002BClick.swift, Apps/CLI/Sources/PeekabooCLI/Commands/System/DialogCommand\u002BDismissList.swift, Apps/CLI/Sources/PeekabooCLI/Commands/System/MenuCommand\u002BClick.swift, Apps/CLI/Sources/PeekabooCLI/Commands/System/MenuCommand\u002BList.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":"Apps/CLI/Sources/PeekabooCLI/Commands/System/DialogCommand\u002BClick.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ceb7af32bbeac6e1973c47c4e1759b48fd21e877841924ea038c021003a931a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.isASCIILetterOrDigit($0) || \u0022.-_\u0022.unicodeScalars.contains($0)\u0060 appears character-identically in 2 files \u2014 Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ChromeProcessCodeSignatureValidator.swift, Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCodeSignatureIdentity.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/ChromeProcessCodeSignatureValidator.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a34cd2ac630c2a6468ad87078e2b55841b943bba88c13ccd2e3883c33678860"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.maxDepthReached || self.maxElementCountReached || self.maxChildrenPerNodeReached || self.deadlineReached || self.incompleteAccessibilit\u2026\u0060 appears character-identically in 2 files \u2014 Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationRequestModels.swift, Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DetachedAXObservationWorker.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/DesktopObservationRequestModels.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bfab4b73a69c679c356dc774b9eece4c495c5a2bbf0a7ee721abf3e21e9154c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.resume || self.resumeSession != nil\u0060 appears character-identically in 2 files \u2014 Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BChat.swift, Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand.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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/AgentCommand\u002BChat.swift"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f36fe0e4e3bcc392fd221212ea4ce093625854356714a918d8b7b875b5a176"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.windowID != nil || self.windowTitle != nil || self.windowIndex != nil\u0060 appears character-identically in 2 files \u2014 Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogOperationModels.swift, Core/PeekabooFoundation/Sources/PeekabooFoundation/InteractionTargetSelector.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Core/Protocols/DialogOperationModels.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f535534e55f3f986fa7fc82226520948ee2cc598dc4f99d5d07f494d75c2f04"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060size.width.isFinite \u0026\u0026 size.height.isFinite \u0026\u0026 size.width \u003E 0 \u0026\u0026 size.height \u003E 0\u0060 appears character-identically in 2 files \u2014 Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCaptureBinding.swift, Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCaptureBinding.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2d2c2e6237b3492d5dea236232d65c85fda234b025c78aa128e7beb1fd9e68"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060snapshotData.applicationName != nil || snapshotData.applicationBundleId != nil || snapshotData.applicationProcessId != nil || snapshotData.w\u2026\u0060 appears character-identically in 2 files \u2014 Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift, Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82aab7f61917c30df77018c2b889b396775418efab51cb9350d31f82b42bf74"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060toolName == \u0022see\u0022 || toolName == \u0022inspect_ui\u0022\u0060 appears character-identically in 2 files \u2014 Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolMCPBridge\u002BProviderContext.swift, Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Server/MCPToolResponseMetadataProjector.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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentToolMCPBridge\u002BProviderContext.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb2770d2f8865d2748c3b99008a0dde89e673804f0c4b1970da28a8448072f4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value.hasPrefix(\u0022/\u0022) \u0026\u0026 !value.contains(\u0022\\0\u0022) \u0026\u0026 !value.split(separator: \u0022/\u0022, omittingEmptySubsequences: false).contains(\u0022..\u0022)\u0060 appears character-identically in 4 files \u2014 Apps/CLI/Sources/PeekabooCertificationController/CodeIdentityRunner.swift, Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift, Apps/CLI/Sources/PeekabooCertificationController/ObserverPlan.swift, Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeCertificationProducerAttestationModels.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":"Apps/CLI/Sources/PeekabooCertificationController/CodeIdentityRunner.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3876a069e6757d6088da8c261cf90f2076f9d19696bc944f2332cd76451266"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060values.singleOption(\u0022app\u0022) != nil || values.singleOption(\u0022pid\u0022) != nil\u0060 appears character-identically in 2 files \u2014 Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder\u002BInteractionPermissions.swift, Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder.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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/CommanderBinder\u002BInteractionPermissions.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"60eb6108510c67d77cd6a5ba3f417c2bb351b13ed4d4f17888192b095879e188"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060warning.hasPrefix(\u0022APP:\u0022) || warning.hasPrefix(\u0022app:\u0022)\u0060 appears character-identically in 2 files \u2014 Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift, Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"90eaaa7d76f0202c84abbab560f894acfbbf556ccc3b901b9e16fb50fcb8e27c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060warning.hasPrefix(\u0022WINDOW:\u0022) || warning.hasPrefix(\u0022window:\u0022)\u0060 appears character-identically in 2 files \u2014 Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift, Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/InMemorySnapshotManager\u002BDetectionMapping.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"df994ede28e221337762801ad0588a32098ed814089f2fa7ceb0b03b0141f356"}},{"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":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteBrowserMCPClient.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d850f2cdbc8be90418bb157adb25f17282c8946054efaafc0174479457cb1b"}},{"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":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteBrowserMCPClient.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff86b50186371dfe76f0b34d30805aa646bfda01ec50855f9872679718bb1f2"}},{"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":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteScreenCaptureService.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"409355a28cf638029f4613456cb7a0568ad4d6eb3d2f4d02302180cbae236577"}},{"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":"Core/PeekabooCore/Sources/PeekabooCore/Support/RemoteUIAutomationService.swift"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"63520e5b46d63e2d2332a3e46e04c89f8945e34c0d93c19e948c1ad94e1c699e"}},{"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":"Core/PeekabooCore/Sources/PeekabooCore/Daemon/PeekabooDaemon.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42f9b5b9b8edf49992290f0560a10988dd9a0cf1f0bcfe71640af7ba40f297a"}},{"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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserSessionHandoff.swift"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef71663743007917ec8c655208a810859538d183dfc71772c89a0ef647cac428"}},{"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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeBrowserSessionHandoff.swift"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0d225034e321c96b417b62e8f2a9b8ba0e13e79dc935efd85914fc54f253a3"}},{"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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeConnectedRequest.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e335f867886b3256bc5dca938ba637eebd08eb7ad8787932bd9626d86450f6d"}},{"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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2eb930ff31ce14a55a0aadeae6573b9a60918afe378841e895341d04d8cd5b"}},{"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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f5bd09693151def700eea1a74ea0ff8443787b14bae25c1698ba71654f046e"}},{"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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost\u002BBrowserHandoffMaintenance.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43e28009e060f6e0798d0959fff7ccf749ec27478b1448b2ef09352cdad7a0c"}},{"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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeHost\u002BClients.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc8227a6ffd17a5195504b2bf41a74054697d179b99ed58f7f775c1b82d02a4"}},{"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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeOperationReceipts.swift"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a79ee3e196ff7bebedc351dba35ee5a20393bddc3b8eaeffdd5f42cd7566eb7"}},{"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":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeServer\u002BHandlers.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84fd46522bf0ee2dfc4901da6c62922319c460c4dd157d84e5321a53705221b"}},{"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":"Core/PeekabooCore/Sources/PeekabooAutomation/Configuration/ConfigurationManager\u002BParsing.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"9548116a3029b6ab7805fccebdbd886bda1f04b503614dc1b91b100266531f6d"}},{"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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0b73374a3501a27d514cb76e4782a70f92876aed0da62ad46a03b6b4cc6239"}},{"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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b28025d715039996faa5b8ca7ddee379a77c3645537870f5bc92f11494eb3d2"}},{"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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"356a5a08292bdb95a36f8d9b307520e4abe5b3baf1d97a8b67eaa6a5f09d73be"}},{"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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolContext.swift"},"region":{"startLine":1194}}}],"partialFingerprints":{"codehealthFindingId/v1":"8405be322c4e23530133e4f016fcde52a23970596e68ed5b8a01f9fd763ad09e"}},{"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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/MCPToolSnapshotMutation.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1edfc7c4809af6755200ee2a3df56b193d54ced80bbcbdd5b936334ef635f8"}},{"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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Tools/ShellTool.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3c10f193de066c4d476f7b919cc924b207f30c5b4b499f97643a8fe7f731af"}},{"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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/MCP/Server/EOFDrainingTransport.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc88b67963540b6cd90d503e6bd90230e6e2f56695a2d967564d3ce31692e2e6"}},{"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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPAuthenticatedSessionPool.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"c818e00fb99ff48d0c7ba5ed5f5b9edba41dc8aa6588d9be01928155aa3a916e"}},{"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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPAuthenticatedSessionPool.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"596612540fd5bed0a67eab34fee38e4281305eec5d6737114f55a36c00cb31d5"}},{"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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0fe71265f41c69370e06511abfa53277af67d741e566e1627bda398ad8224d"}},{"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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd8e06f1cf1f0e8c8319ed863c40fc4a6fa1f8467aaa575d11d84c005f670d3"}},{"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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea43340e2f82d897086a987b6321f65c3d1da9898fd52aa54605b9f2c5b10f21"}},{"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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserMCPSessionManager.swift"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"804b2168889c66f0dfdd93b632e2a0675ff48cd05459e75165739a4abc802164"}},{"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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Browser/BrowserToolCapabilitySession.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"8744fb034418ddf7ee0f03670782f17eb922980926bec737d9656f5316c44bac"}},{"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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentCompatibilityTypes.swift"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c092b9af15ce714e627ae663fbadc29b42cbd5a039d8e15e3eb6cf95b486100"}},{"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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentCompatibilityTypes.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0f90c3793fce88867f289ba4ba2fb8e2307854ed54b6c8be7ad99ffa924642"}},{"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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BTools.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae0fb172f7fa4d174c16934d315dd47540ca702e1273fbc5894cbfb8e4deeef"}},{"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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BTools.swift"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"32dc4b8807c5371eeeee515e1b774dbb3bd777345a87c31677c0af3866697566"}},{"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":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"24adefdcb8ba39af58d89498f4321f70b4a262c200c3ba3d63a81eb1c24e5e75"}},{"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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/FocusedElementReceiptResolver.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3145a300c3534ffdab844f7a116c5b2981f83114190ead34d022f77b1ec7a85"}},{"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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Strategy/FocusedElementReceiptResolver.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7040d97c3420d1643f9317fc728e97c399ed93e667d9d0427bebfc0e447f33"}},{"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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b800f8bb5c95fb3ba396e1206601e28823eeac4a138f7ebd865e1ed2d1c15f5"}},{"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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ActionInputDriver.swift"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b36401bb1269b8e791f967dbbb8ed1c25169c473eafefc6304619485c1168c3"}},{"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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/DockService\u002BVisibility.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0dbdebbc3b693a924017d19cf66c3c25d4680092cb8731add562bfbba4024d9"}},{"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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ElementDetectionService.swift"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5676553208167199ec01d76ab598bd59fe04c36b7739313611c7f2a3fa0cba"}},{"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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/ExactWindowHeldPointerLifecycle.swift"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac6792f4ff9b7b60563605d8c4f10e208c9ba0f13708327f31af8b7a08fc3a4"}},{"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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/UI/TypeService.swift"},"region":{"startLine":1495}}}],"partialFingerprints":{"codehealthFindingId/v1":"100fc1e582f95229f0ee2e8286801c88591692dfa51f5336cf5312359bca2289"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/System/DetachedApplicationInventoryWorker.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a212f1fc0f4e4a72a960ca0a1f32fea6074148638ea6df8ae23f5e78313e692"}},{"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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/DesktopMutationWatermarkStore.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"6884775d934ba8a2f43ef10498e3b1ddcdb6bcc514e615536d5b6b90e7de4d8c"}},{"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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Observation/ObservationOCRService.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e2e41fa30cc097c774cdb11bbca979b825d8ab530085674507c4969a4baf37"}},{"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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitCaptureGate.swift"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9578dee498e66f11785f921e2d4ca57c5f532806eeb9639d618cb27451a41c"}},{"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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitOwnerLease.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f4516139f1387b9d87a1796f27e18cb271bf3b10419a6aee604cbc8e38e518"}},{"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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCaptureKitProcessCapabilityRegistry.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0c5290bce7f70df396733b76fb2bfc3a3c0e5a1f9837a555a2e51fd87b419a"}},{"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":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Capture/ScreenCapturePermissionGate.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22f82ba1abd59ad3a7bb19529bede60374af4b3d9bbd5c94009b72db49b5fad"}},{"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":"Apps/Mac/Peekaboo/PeekabooApp.swift"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"e010169db045614567cb1d456a9b4a59d48ada31f7d09900c8bbbd54c1dfe5c0"}},{"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":"Apps/Mac/Peekaboo/Services/SessionTitleGenerator.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"8851c61e4c8f0ad784bcda51ccc9e71b9ec7282d56a40d76f89955232ef52ffc"}},{"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":"Apps/Mac/Peekaboo/Services/SessionTitleGenerator.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"df37c975f5af46aece42d742feb1bf2b6da9febd391a2ee3c22c7037230d1b85"}},{"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":"Apps/Mac/Peekaboo/Features/StatusBar/AutomationTargetTracker.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb19ea3ad7f90a946dd1162e36fb9f091bae6f0566d739f247042643c8f9b70"}},{"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":"Apps/Mac/Peekaboo/Features/Settings/SettingsWindow.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e59670b871b3ee117f7140edf1c8e4c70ac223f5e7d82fb02ead770623d18fe"}},{"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":"Apps/Mac/Peekaboo/Features/Settings/SettingsWindow.swift"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"480de86a4b50c5e304b8e58327b8956b2cf860522d39578d522b61523dcf4345"}},{"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":"Apps/Mac/Peekaboo/Core/ConversationSession.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb66f51d46ce090bb0a54ea147658a4c9a61b0f194dbe617c192403485f5dcf"}},{"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":"Apps/Mac/Peekaboo/Core/ConversationSession.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a391597bea2c345c5912a6171f71bd2de7707631be86902f77c2822fc7a341"}},{"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":"Apps/Mac/Peekaboo/Core/ProviderCredentialCoordinator.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"25cc6259b20555e5a681bff0714246a6b793e4b314dd216f096854f06bcb22ec"}},{"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":"Apps/Mac/Peekaboo/Core/ProviderCredentialCoordinator.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01cef824e08d12d9857186ee7cb72dc060406d49a7d66a0d8a480243d7bfbd5"}},{"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":"Apps/Mac/Peekaboo/Core/ProviderCredentialCoordinator.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b8d8f460ea907d7113fe3a5a961f3682eef14b6713356f166d897f1cf9d583"}},{"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":"Apps/CLI/Sources/PeekabooCertificationController/LocalPIDAttestation.swift"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea878429d93259aae8c88639c75a87e4846029b363dbb5be7ddc0c44c22a0d34"}},{"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":"Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarClickVerifier.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f78bc142c149b91ed189d2db2865c966fd8abb807cecf80f1b2543e9912d2e"}},{"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":"Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarClickVerifier.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b84cb80062245047a66e3eb12a37c5f7cdd1762990feabb136a87eb0376d8fd"}},{"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":"Apps/CLI/Sources/PeekabooCLI/Helpers/MenuBarClickVerifier.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"88988c8601d9b809ee824211ca0084b1a40a511a6504d6df68115f811d146e9e"}},{"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":"Apps/CLI/Sources/PeekabooCLI/Commands/System/SpaceCommand\u002BList.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34f78dd26d0d0eaf539b15afd822e3f28b27ebf507733b0f1b08a3f5172f6f5"}},{"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":"Apps/CLI/Sources/PeekabooCLI/Commands/Shared/InteractionObservationInvalidator.swift"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"464c4fa339ef16281a918ce951d855da65320421d5d97925c60765c24aac52fd"}},{"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":"Apps/CLI/Sources/PeekabooCLI/Commands/Core/CaptureActionProcessRunner.swift"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49fd040ffb45359604973dac594aa3720f8ab9bfb5c362c454c8524b54cf37e"}},{"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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonLaunchPolicy.swift"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"471868c05f9c7dc083ef10960bc52b516e1bae1ad53d98434f2806f9dc6ab90b"}},{"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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonLaunchPolicy.swift"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f0003bfb70a8e62bb3968636f58e49d8126116bacdaca7f3b9fc79b5b77714"}},{"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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/ManagedAutoDaemonRegistry.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d96d2f945a0e5315a3e82bc26803a6294d46ea23e242082f48674d2dd596431"}},{"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":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/RuntimeHostResolver\u002BSnapshotAffinity.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"a426804ba9f77132d57c3934130e3945014d7f2c1242214feb7215c9124e9a82"}},{"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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BCaptureSupport.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b57e35c1cbaec5d8e6861eb3f306733cb4f08356bc5add932a95046ecea684"}},{"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":"Apps/CLI/Sources/PeekabooCLI/Commands/AI/SeeCommand\u002BOutput.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47d64d13617027cc482eda7f94b750be83609abebde62bd4aec150f14dfffd4"}},{"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":"Apps/CLI/Sources/PeekabooCLI/CLI/CommanderRuntimeExecutor.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af8d079d5668f1d339567fcb7bfb10ae5e36763c53ef4fcb2a462349e4f7c45"}},{"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":"Apps/CLI/Sources/PeekabooCLI/CLI/Utilities/GitStalenessProbe.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d10698b96fb6faa1e5fd06d04344622c038a1febd35315e94c81668f9f75dee"}},{"ruleId":"X5","level":"note","message":{"text":"Ruby\u0027s type checker does not check nil everywhere: This repository commits no Sorbet configuration (\u0060sorbet/config\u0060) and no \u0060Steepfile\u0060, so nothing type-checks its 1 Ruby product file(s): a nilable value reaches a method call silently and raises \u0060NoMethodError: undefined method \u2026 for nil\u0060 the first time it is nil. A \u0060# typed:\u0060 sigil does nothing without a \u0060sorbet/config\u0060 beside the code; a Steep run configured only on a command line is not something this check can read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"32b27113b1bc22f400935e8620d19eae7fd3ef145cc36018609c445ea8cd4af1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060discoveredHistoricalBuildScopedSocketPaths\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/System/DaemonCommand.swift"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8465126527bf273d5827a94b7deaefa7c797b55153d9c930a9675a015917cb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060executableUUIDs\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Base/Runtime/DaemonLaunchPolicy.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c019b5e0e10f84294867a045afce31ed45e96b2edecd36204bfca8f5f0f3e886"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060snapshotDirectoryURLsUnlocked\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooAutomationKit/Sources/PeekabooAutomationKit/Services/Support/SnapshotManager\u002BHelpers.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e26fe6da34540d6a048a2196941af57f1aac246b2d3abb8192f76a2adcb41f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060listSessions\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/AgentCompatibilityTypes.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"3466e7ca7ca845684569e72a656a057b233b42fbc9bbe4c0dc545fd283930001"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060toolCompletionTextPayload\u0060 turns every thrown error into \u0060\u0022{}\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooAgentRuntime/Agent/PeekabooAgentService\u002BStreaming.swift"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7525dd207fb79e865f7d3096fc4e5e98d28c3115c469f4d2c29ba96f2986de"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060argumentsSHA256\u0060 turns every thrown error into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeAgentExecutionSupport.swift"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ae88e978fa5c4ea3f83caf3b84d629bb372e5986327cc64694ef0b7dfd1db1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060validateOutputOptions\u0060 turns every thrown error into \u0060\u0022inline capture content digest\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/PeekabooCore/Sources/PeekabooBridge/PeekabooBridgeDesktopObservationBinding.swift"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f67c51113023a4343d4312285f4eaeab4dd17430b3c24b411d9ba071ef3fa22"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060probeOllamaModels\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/Mac/Peekaboo/Features/Settings/SettingsWindow.swift"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3d6a3db90a11f73e73866e19a0d20fc2a7e3e86a92d0e411824bb3869a33b2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060decodeJSONLines\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/support/background-computer-use-probe.swift"},"region":{"startLine":4830}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec1db60d588e19375ba661f4094b9098c61d65a447889b6b880336e18bf245f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060sameJSON\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/final-qualification/lib.mjs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d62089f704c214b27e281b5ef91fcbb09e2877a6f80d29cc200fb1ebb6b109b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060sameJSON\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/finalize-multi-target-certification.mjs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"606944f85c2db6cff9388cd578049167b27a9c1f61791d1c5bc0412be72bad28"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060sameJSON\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/run-live-multi-target-certification.mjs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e728ee051091779a97047d84786a1ef9d42c9e2a61169b9075c5edc0947950"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060query.hasPrefix(\u0022//\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060query.hasPrefix(\u0022//\u0022)\u0060 also satisfies \u0060query.hasPrefix(\u0022/\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Apps/CLI/Sources/PeekabooCLI/Commands/Interaction/ClickCommand\u002BValidation.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7db0098a3929ead560587773005233c5357fb0121868eabae178e3ad291bc93"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"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":36,"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."]}]}