{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"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":"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":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"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":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"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":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Condenser.renderItems (cyclomatic 212): Condenser.renderItems has cyclomatic complexity 212 (threshold 15). Of this number, 205 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift holds 5 of the 82 methods over the threshold \u2014 including the worst \u2014 and 235 of the 885 points over it (27%), 3.9\u00D7 the next-largest file (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift at 60). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"6093b4881b8a8bddbd9b26b6b5822c630cd1bc6a97056b1785ea3a758ee64237"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatCLIProcessRunner.executeStreaming (cyclomatic 52): ChatCLIProcessRunner.executeStreaming has cyclomatic complexity 52 (threshold 15). Of this number, 42 points are the body\u0027s own statements and 10 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":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c5db642ee75f8cc25de139b56bd0bf966b8a72c65978de5a75b9b0db2da496"}},{"ruleId":"D1","level":"warning","message":{"text":"DailyWorkflowComputation.swift.computeDailyWorkflow (cyclomatic 50): DailyWorkflowComputation.swift.computeDailyWorkflow has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyWorkflowComputation.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e44ad8717981f4fab65cfdf7d06640f4b5419bacdb1545d21e0ab7c74e2313"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatService.processConversation (cyclomatic 49): ChatService.processConversation has cyclomatic complexity 49 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 12 belong to 3 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ChatService.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"bace1256607852aa9f184167fdc2effbe6261e5949b6eeff36912860290467d1"}},{"ruleId":"D1","level":"warning","message":{"text":"Coordinator.handle (cyclomatic 41): Coordinator.handle has cyclomatic complexity 41 (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":"Dayflow/Dayflow/Views/UI/Flow/FlowWebView.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"e85dce1c940670a376241d166efae443929e67b2dea0a504c531d14379f0750c"}},{"ruleId":"D1","level":"warning","message":{"text":"LLMService.processBatch (cyclomatic 40): LLMService.processBatch 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":"Dayflow/Dayflow/Core/AI/LLMService.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14ada6b5d0c35bcbac52d0012892df5475605887babe1d940a18efa9ebfbe96"}},{"ruleId":"D1","level":"warning","message":{"text":"AccessibilityTreeReader.snapshot::walk (cyclomatic 39): AccessibilityTreeReader.snapshot::walk has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/AccessibilityTreeReader.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23d16055019d048105410e9f1ea77e4aaac850b4f43d3eb37b62b612c10be25"}},{"ruleId":"D1","level":"warning","message":{"text":"Condenser.submitLine (cyclomatic 36): Condenser.submitLine 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift holds 5 of the 82 methods over the threshold \u2014 including the worst \u2014 and 235 of the 885 points over it (27%), 3.9\u00D7 the next-largest file (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift at 60). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc84cec28dcbc6e58f40a8c9cfa9374715cca36eee2b860d4ab426b6e723df7"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiDirectProvider.geminiTranscribeRequest (cyclomatic 34): GeminiDirectProvider.geminiTranscribeRequest 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f28ece3ab707bee4bf714a9e1cf46fe747fbe7d22dcdb2fa88e43f8566cac0"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatChartSpec.parse (cyclomatic 34): ChatChartSpec.parse 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":"Dayflow/Dayflow/Views/UI/ChatCharts.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b06fa0f030ff91026db13b23a6c24821484f57a4f5ce39c93d2a2476756f667"}},{"ruleId":"D1","level":"warning","message":{"text":"DebugLogFormatter.makeLog (cyclomatic 33): DebugLogFormatter.makeLog 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":"Dayflow/Dayflow/Utilities/DebugLogFormatter.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d2b7a07ea37ada298009cb3b7750842a835b3f4e9587147a6b642a860c738d"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatCLIProcessRunner.run (cyclomatic 31): ChatCLIProcessRunner.run 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":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14d6c72b30ab4c932c105d5c07ecd8e4e69c2eb1f404a4927eae67d10ca6344"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiDirectProvider.geminiCardsRequest (cyclomatic 31): GeminiDirectProvider.geminiCardsRequest 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"1188a748d861be2b38d65ce8b517cfd4283c54f7a63281f297ec66a59cb23220"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsProvidersTabView.routingRow (cyclomatic 30): SettingsProvidersTabView.routingRow 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":"Dayflow/Dayflow/Views/UI/Settings/SettingsProvidersTabView.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"abfa3061c92c42baa3d165d76ef78d04bc14912e8a221891113a7ebd7b428597"}},{"ruleId":"D1","level":"warning","message":{"text":"FlowSessionTimeline.apply (cyclomatic 29): FlowSessionTimeline.apply 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":"Dayflow/Dayflow/Core/Flow/FlowSessionTimeline.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7b14234fac44ca4c2070e16cb5764e3a1f4a63f5577366d412f8f2d4ccc4b3"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoPlayerModal.body (cyclomatic 29): VideoPlayerModal.body has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e3409c8a24309e8e1279d1f5984dd631827848f16592d69805321620295ce95"}},{"ruleId":"D1","level":"warning","message":{"text":"DailyBriefGenerator.cleaned (cyclomatic 28): DailyBriefGenerator.cleaned has cyclomatic complexity 28 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93925154c56a1a8e750cdf0a54af845973f2fa3c8a8288f0330c3651eaad797"}},{"ruleId":"D1","level":"warning","message":{"text":"Condenser.handle (cyclomatic 28): Condenser.handle 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift holds 5 of the 82 methods over the threshold \u2014 including the worst \u2014 and 235 of the 885 points over it (27%), 3.9\u00D7 the next-largest file (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift at 60). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift"},"region":{"startLine":1501}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4ca2988ff7bc603fbbf81b183c9daf973c55eea397a3b687e1fe07a6d6a8fb"}},{"ruleId":"D1","level":"warning","message":{"text":"DocketDeckView.handleWheel (cyclomatic 28): DocketDeckView.handleWheel 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":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketDeckView.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"70bb360b009b7bc7989d1f634f39b211bca329a214495095cc0502402a43d4ba"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeProvider.validateClaudeCardPolicy (cyclomatic 27): ClaudeProvider.validateClaudeCardPolicy 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":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BActivityCards.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"f50522dde453cb7bf7e0b556518afbe720980f4fb7fc11d9d980e8fce709ea5e"}},{"ruleId":"D1","level":"warning","message":{"text":"PIIMaskRules.unmaskPlainGuesses (cyclomatic 27): PIIMaskRules.unmaskPlainGuesses has cyclomatic complexity 27 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/PrivacyShield/PIIMaskRules.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8deff9b278ae075f31eab3c252752d4208426627b5efdadf7cf9fd80ace7f3e"}},{"ruleId":"D1","level":"warning","message":{"text":"WeeklyInteractionGraphLayoutBuilder.guidePoint (cyclomatic 27): WeeklyInteractionGraphLayoutBuilder.guidePoint 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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphLayout.swift"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"43a7886bfa59b59cc6686cde84498c2da59515b0f09b246f1482f28f48311ec3"}},{"ruleId":"D1","level":"warning","message":{"text":"TimelineActivityLoader.resolveDisplaySegments (cyclomatic 26): TimelineActivityLoader.resolveDisplaySegments 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":"Dayflow/Dayflow/Views/UI/MainView/TimelineActivityLoader.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"e151a4a0f4cde8951059b6efa29dc90f7b813c2333e337035240f29ecd59dd19"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentCLISupporting.parseCards (cyclomatic 25): AgentCLISupporting.parseCards has cyclomatic complexity 25 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e98611b42ccd4e283f1cd8fa93537f67296a0f4b1aa192d4faec0a527322a78"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexProvider.transcribeScreenshots (cyclomatic 25): CodexProvider.transcribeScreenshots 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":"Dayflow/Dayflow/Core/AI/CodexProvider\u002BTranscription.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"527c403f605c2d1131ec91c9124377bfc967a06c850e619e0ceed798427cb009"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiDirectProvider.validateTimeCoverage (cyclomatic 25): GeminiDirectProvider.validateTimeCoverage 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"75fb7a4a49ef23ecfb0ee950511b0a573d542affd334bda4e205ab6ba97c283e"}},{"ruleId":"D1","level":"warning","message":{"text":"TimelineOutputSupporting.validateTimeCoverage (cyclomatic 25): TimelineOutputSupporting.validateTimeCoverage 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":"Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"627f9f7de9b2492468739cdac149332e63e2335b2cc21f67364be6590e7b396b"}},{"ruleId":"D1","level":"warning","message":{"text":"FlowDistractionAgent.tick (cyclomatic 25): FlowDistractionAgent.tick 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":"Dayflow/Dayflow/Core/Flow/FlowDistractionAgent.swift"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ce20dae107bc9d8d446ba161553ca7d1e411726f0a55b68c39eeacf92dabb0"}},{"ruleId":"D1","level":"warning","message":{"text":"DayflowButton.body (cyclomatic 25): DayflowButton.body 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":"Dayflow/Dayflow/Views/Components/DayflowButton.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec144e6f297ddd15013adb19f132362d24faa6d6f187133cf786ed5fd408219c"}},{"ruleId":"D1","level":"warning","message":{"text":"LLMProviderSetupView.currentStepContent (cyclomatic 25): LLMProviderSetupView.currentStepContent 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":"Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9782a8b7dfb50817ac9a8ab52c0be2780fdbbf227ae752fefdc61724f8cd297"}},{"ruleId":"D1","level":"warning","message":{"text":"DailyBriefDebugStats.lines (cyclomatic 25): DailyBriefDebugStats.lines 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":"Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8242d7b7c0ba4251ab92049e03ed3be572033359147aedc51f4e3db4b29462"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeOutputValidator.validateActivityCards (cyclomatic 23): ClaudeOutputValidator.validateActivityCards 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":"Dayflow/Dayflow/Core/AI/ClaudeOutputValidator.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"2276514170b7a2b2eb37259399146f435df53401b32443c4512ab2af77abe75f"}},{"ruleId":"D1","level":"warning","message":{"text":"FlowDistractionAgent.handle (cyclomatic 23): FlowDistractionAgent.handle 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":"Dayflow/Dayflow/Core/Flow/FlowDistractionAgent.swift"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"2420260f1dca3fb80f36088b86adb464535c9784d0a009da70f8eb107381a55d"}},{"ruleId":"D1","level":"warning","message":{"text":"ColorOrganizerRoot.contentCard (cyclomatic 23): ColorOrganizerRoot.contentCard 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":"Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"31287e0930f03aa355c9d23e8d0cd839697719d2b377838f5887f83bac2151f2"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatCLITestView.runTest (cyclomatic 23): ChatCLITestView.runTest 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":"Dayflow/Dayflow/Views/Onboarding/ChatCLITestView.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f0a49ab5b46c503f1fd6ef07184108f7fbf1e04859bd676ac349ff50f279342"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentCLISupporting.parseSegments (cyclomatic 22): AgentCLISupporting.parseSegments 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":"Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BTranscription.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"168c0d1c069f7e90016492785db5019e669f75b6adc10e00b4eb7b1124ebfae1"}},{"ruleId":"D1","level":"warning","message":{"text":"DailyBriefGenerator.writeTranscript (cyclomatic 22): DailyBriefGenerator.writeTranscript 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":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"866625b20a28bbb604143d8bd5a1f3db93dc61f75f9420727dd4283628d272e8"}},{"ruleId":"D1","level":"warning","message":{"text":"DailyView.regenerateStandupFromTimeline (cyclomatic 22): DailyView.regenerateStandupFromTimeline 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":"Dayflow/Dayflow/Views/UI/DailyView\u002BStandup.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"d191d0ba8d56d177e43d7c62219b7a886f2a03b13bac8ef1a7a901e241d29223"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiDirectProvider.generateText (cyclomatic 21): GeminiDirectProvider.generateText 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BText.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"24cccea9fa12c21daa56acfffce88405aae7086662b3d8bd9c5bb635919fe1d7"}},{"ruleId":"D1","level":"warning","message":{"text":"PIIMaskRules.maskLabeledPasswords (cyclomatic 21): PIIMaskRules.maskLabeledPasswords 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":"Dayflow/Dayflow/Core/PrivacyShield/PIIMaskRules.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"d430a59a9709e98e21c5a62dd8372d7b1d1847dadea2301ac962e1ffae09e471"}},{"ruleId":"D1","level":"warning","message":{"text":"ScreenRecorder.registerForSleepAndLock (cyclomatic 21): ScreenRecorder.registerForSleepAndLock 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":"Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98e8f63b3b0dac0cdd389ddc3b3155e87aa0c2c6056121dc89c35a5c9b354d4"}},{"ruleId":"D1","level":"warning","message":{"text":"DocketDeckView.card (cyclomatic 21): DocketDeckView.card 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":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketDeckView.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb9f61c0bb135c0447f4a77c2ca5483e21151584e90c967f518fadad68cc234"}},{"ruleId":"D1","level":"warning","message":{"text":"DocketHandoffDirector.paste (cyclomatic 21): DocketHandoffDirector.paste has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketHandoffTransition.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"797a5847b16e9ebcfc470c787ea1ace6b3b528173882211ad1e282ea856b8ccd"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentCLISupporting.stripOSCEscapes (cyclomatic 20): AgentCLISupporting.stripOSCEscapes 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":"Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf211e81c0f33726911d47e4fc7de1af970098d4be7a7d39e12ef757e4908d1"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatCLIProcessRunner.parseCodexEvent (cyclomatic 20): ChatCLIProcessRunner.parseCodexEvent 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":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2aae1c224067f2d9aa8b3bfc1e843754e3a057b5cd4c159eafc45c29f8101e2"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserWindowInspector.collect (cyclomatic 20): BrowserWindowInspector.collect 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":"Dayflow/Dayflow/Core/Recording/BrowserWindowInspector.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec87e6492994e9d4f7464616f5d361e5f3b9eb847f25fde990f527230a70a5f6"}},{"ruleId":"D1","level":"warning","message":{"text":"OnboardingFlow.body (cyclomatic 20): OnboardingFlow.body 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":"Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"6454db0b5a10c0aa4b3766c8adef1a72ebd8c24044c7de11166495b76c957c46"}},{"ruleId":"D1","level":"warning","message":{"text":"CanvasActivityCard.body (cyclomatic 20): CanvasActivityCard.body 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":"Dayflow/Dayflow/Views/UI/CanvasActivityCard.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"482d97ab3d42f2848987bf0161d36c25d3963f66266d0aa15a95beea93d8199a"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeTranscriptionInputBuilder.selectedOCRText (cyclomatic 19): ClaudeTranscriptionInputBuilder.selectedOCRText 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":"Dayflow/Dayflow/Core/AI/ClaudeTranscriptionInputBuilder.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d412838746dc19fe06b6c5381ba482f9e4344ca3f83d271f2cb1bf9b167f5fc"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexProvider.generateActivityCards (cyclomatic 19): CodexProvider.generateActivityCards 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":"Dayflow/Dayflow/Core/AI/CodexProvider\u002BActivityCards.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2257a5341e10946ffaf4a36e98deecd74507b0abc0ea2cf27afdfec647e3f12"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiDirectProvider.generateActivityCards (cyclomatic 19): GeminiDirectProvider.generateActivityCards 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"08cf237a13cb54d4931b6628cad3acf27d4b3e0bb8b9298ea88f5c72c7377a44"}},{"ruleId":"D1","level":"warning","message":{"text":"LLMService.makeBatchProvider (cyclomatic 19): LLMService.makeBatchProvider 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":"Dayflow/Dayflow/Core/AI/LLMService.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"96cc472a54a11587ae20bcf62f62856a6f146484ac2ad88b2ceafcbf7841cf89"}},{"ruleId":"D1","level":"warning","message":{"text":"OllamaProvider.callChatAPI (cyclomatic 19): OllamaProvider.callChatAPI 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":"Dayflow/Dayflow/Core/AI/OllamaProvider\u002BNetworking.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"146799f01508da49fcdfc1a4fb29401dae020f4b84252c0396f964a4b3fad8aa"}},{"ruleId":"D1","level":"warning","message":{"text":"AccessibilityRecorder.handle (cyclomatic 19): AccessibilityRecorder.handle 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":"Dayflow/Dayflow/Core/Recording/AccessibilityRecorder.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"510e8cf9452b44a31176c433edb468c676f4a3171b180a1b98eedd4db38e019b"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoProcessingService.generateVideoFromScreenshots (cyclomatic 19): VideoProcessingService.generateVideoFromScreenshots 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":"Dayflow/Dayflow/Core/Recording/VideoProcessingService.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"575e48b3848e8a6dfbf8de890258f2ecc953612110169ddafd80b268d21d592b"}},{"ruleId":"D1","level":"warning","message":{"text":"PausePillView.pill (cyclomatic 19): PausePillView.pill 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":"Dayflow/Dayflow/Views/UI/PausePillView.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5a82fdc8084e5b39ef54fb4de597c4be1c94bff0a1c49ead6132f914325cf9"}},{"ruleId":"D1","level":"warning","message":{"text":"Coordinator.startMonitoring (cyclomatic 19): Coordinator.startMonitoring 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":"Dayflow/Dayflow/Views/UI/TimelineReviewChrome.swift"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"7682fa3bdb28bca803224f5dfe626b812f3dd945daaa5d7daf3a8ac5bc5c3543"}},{"ruleId":"D1","level":"warning","message":{"text":"ActivityCard.activityDetails (cyclomatic 19): ActivityCard.activityDetails 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":"Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ce9acb48606a13a245467055b234ee63417b2a5be74c8695a933c7eacafe6a"}},{"ruleId":"D1","level":"warning","message":{"text":"WeekTimelineActivityCard.cardCanvas (cyclomatic 19): WeekTimelineActivityCard.cardCanvas 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":"Dayflow/Dayflow/Views/UI/MainView/WeekTimelineActivityCard.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"87273a53a9d305ff1b0cf760ed99e7520e9c7a24b992210409f7021e2d4ca738"}},{"ruleId":"D1","level":"warning","message":{"text":"FlowDistractionAgent.start (cyclomatic 18): FlowDistractionAgent.start has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Flow/FlowDistractionAgent.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c718f4fe9295d54cdf4446eb58e293b5d8ccdc37ac43c117fb8dc94cf8c7ac2"}},{"ruleId":"D1","level":"warning","message":{"text":"Condenser.newText (cyclomatic 18): Condenser.newText 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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift holds 5 of the 82 methods over the threshold \u2014 including the worst \u2014 and 235 of the 885 points over it (27%), 3.9\u00D7 the next-largest file (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift at 60). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64cd58ae077fe4a688db0e5420e42260c644195ca3c529ce1c787aa0749e37b"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.applicationDidFinishLaunching (cyclomatic 17): AppDelegate.applicationDidFinishLaunching 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":"Dayflow/Dayflow/App/AppDelegate.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"432230b15867d4280ceea388a04dab7512cd9a4b969679088fefd7b32662e985"}},{"ruleId":"D1","level":"warning","message":{"text":"DayflowApp.body (cyclomatic 17): DayflowApp.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":"Dayflow/Dayflow/App/DayflowApp.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a2f47b05824e13c8b4fc221d03830c2da0c80a8b9fa44bcf8b6b308eb8b628"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatCLIProcessRunner.parseClaudeEvent (cyclomatic 17): ChatCLIProcessRunner.parseClaudeEvent 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":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"669864c5d594406290afd5a62964b6161901675ba8a0e3cdec6d02833288d70a"}},{"ruleId":"D1","level":"warning","message":{"text":"DailyRecapScheduler.runCheck (cyclomatic 17): DailyRecapScheduler.runCheck 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":"Dayflow/Dayflow/Core/AI/DailyRecapScheduler.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"113362ec620a1e665b512cafff3b89ae6fe25a7027c706b644987b325ac99465"}},{"ruleId":"D1","level":"warning","message":{"text":"TimelineFailureClassifier.providerName (cyclomatic 17): TimelineFailureClassifier.providerName 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. This is NOT this file\u0027s highest cyclomatic complexity: TimelineFailureClassification.cardMessage (cyclomatic 18) 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":"Dayflow/Dayflow/Core/AI/TimelineFailureClassifier.swift"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"5209868ea297c99c6476cf5d2ceddd14ffa900313a54eaa5f8725dc22376a9b3"}},{"ruleId":"D1","level":"warning","message":{"text":"DailyBriefGenerator.generate (cyclomatic 17): DailyBriefGenerator.generate has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"0375cdaf3db29913ebd0b54e0f3b763963ad38792fb88c17a3c375a37de5f003"}},{"ruleId":"D1","level":"warning","message":{"text":"ColorAssignmentCard.body (cyclomatic 17): ColorAssignmentCard.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":"Dayflow/Dayflow/Views/Components/CategorySetupCards.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7cff288b9501d3eb420bea058e8eed49a61f9b327bc0cb697f1af53205e77e6"}},{"ruleId":"D1","level":"warning","message":{"text":"DayflowSurfaceButton.body (cyclomatic 17): DayflowSurfaceButton.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":"Dayflow/Dayflow/Views/Components/DayflowSurfaceButton.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda9d14fb268dc2e4b2953bbadfbe68b1229888fe91741be371148632ba13f6d"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatView.betaLockScreen (cyclomatic 17): ChatView.betaLockScreen 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":"Dayflow/Dayflow/Views/UI/ChatView\u002BContent.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"da11c1a9b7434b132efbec46b70f87428535a260182b8aaaa74efc3cb7a60d93"}},{"ruleId":"D1","level":"warning","message":{"text":"FilmstripGenerator.generate (cyclomatic 17): FilmstripGenerator.generate 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":"Dayflow/Dayflow/Views/UI/ScrubberView.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bb9c95609276ad04804e784fc5d6152a8ea71981474c8c89be62caaf5d1ed6"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeTranscriptionInputBuilder.makeFeatures (cyclomatic 16): ClaudeTranscriptionInputBuilder.makeFeatures 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":"Dayflow/Dayflow/Core/AI/ClaudeTranscriptionInputBuilder.swift"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec437f95306361efce27fe11ce6b6a183f835d613a733a4b21a30a0379c4983"}},{"ruleId":"D1","level":"warning","message":{"text":"DayflowBackendProvider.generateTimeline (cyclomatic 16): DayflowBackendProvider.generateTimeline 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":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"7792acc903e8caff49ea9c8756f6ca6fcebf4148ce154ebe27c7494cb4d66c3a"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiDirectProvider.decodeDashboardSSEChunkObjects (cyclomatic 16): GeminiDirectProvider.decodeDashboardSSEChunkObjects 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardStreaming.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb11f23d2685cce6496a65216edbd779ba120a8d7fc25d421d915ed8ce3f2f4"}},{"ruleId":"D1","level":"warning","message":{"text":"OneStepTimelineObservations.make (cyclomatic 16): OneStepTimelineObservations.make has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/OneStepTimelineSupport.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ca5e812bd067d3ff98d36110206b42e970cba8b0d6f4b541376516a32da75c"}},{"ruleId":"D1","level":"warning","message":{"text":"TimelineOutputSupporting.validateSegments (cyclomatic 16): TimelineOutputSupporting.validateSegments 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":"Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"53076e851e8fc4b9ad115deec5af5b3d86830f3b4ecfd6ca5012d627d8a26146"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalysisManager.queueLLMRequest (cyclomatic 16): AnalysisManager.queueLLMRequest 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":"Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf7dda6067533d02bfe9472fc3252e073855fda3f027f766e9b91b4f12893a3"}},{"ruleId":"D1","level":"warning","message":{"text":"FlowDistractionAgent.finishTick (cyclomatic 16): FlowDistractionAgent.finishTick 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":"Dayflow/Dayflow/Core/Flow/FlowDistractionAgent.swift"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e8bee10fa6c3976a8c1703e1b1a8c613bc8ed505ff7302b65b0edf38ca9509"}},{"ruleId":"D1","level":"warning","message":{"text":"ScreenRecorder.setupCapture (cyclomatic 16): ScreenRecorder.setupCapture 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":"Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8f6f76dacf542e3f45f83c1f6231d7d8d2bab3c7b949a844df1d88297b011e"}},{"ruleId":"D1","level":"warning","message":{"text":"WhatsNewView.body (cyclomatic 16): WhatsNewView.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":"Dayflow/Dayflow/Views/UI/WhatsNewView.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b3ff665c6fc7ea2c68ec5b15ba706cde47c2f4ce7b2ca2d9f6b094cc6d0377"}},{"ruleId":"D1","level":"warning","message":{"text":"WeeklySankeyModelFactory.build (cyclomatic 16): WeeklySankeyModelFactory.build 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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4cc7c1ba07d7d7c932a2213fbed61c0a6f089b8f8272caa28e1f6ed1fe9d4b5"}},{"ruleId":"D1","level":"warning","message":{"text":"AccessibilityLogCondenser.swift.mergingShortRuns::closeRun (cyclomatic 16): AccessibilityLogCondenser.swift.mergingShortRuns::closeRun has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift holds 5 of the 82 methods over the threshold \u2014 including the worst \u2014 and 235 of the 885 points over it (27%), 3.9\u00D7 the next-largest file (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift at 60). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcabb6a96c1f2d8516f5d0646eb647e16f96d2d91bedf33cf9e566f4044a57fc"}},{"ruleId":"D2","level":"warning","message":{"text":"Condenser.renderItems (cognitive 356): Condenser.renderItems has cognitive complexity 356 (threshold 15). Drivers by points: if/else 96 (221 pts), boolean chains 111, ternaries 7 (23 pts), loops 1 (nesting depth added 141). Of this number, 345 points are the body\u0027s own statements and 11 belong to one function item inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28df1c0bf54c63403b6e98035e98dd6b3c1eceaf38c4f8e87a17f7280219732"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyWorkflowComputation.swift.computeDailyWorkflow (cognitive 112): DailyWorkflowComputation.swift.computeDailyWorkflow has cognitive complexity 112 (threshold 15). Drivers by points: if/else 33 (84 pts), loops 10 (17 pts), boolean chains 8, ternaries 2 (3 pts) (nesting depth added 59). 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":"Dayflow/Dayflow/Views/UI/DailyWorkflowComputation.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69942da139a3a65480605e83279fa7c6679e1e6662a00ac27f4da6f8a09a0d0"}},{"ruleId":"D2","level":"warning","message":{"text":"LLMService.processBatch (cognitive 80): LLMService.processBatch has cognitive complexity 80 (threshold 15). Drivers by points: if/else 20 (49 pts), boolean chains 12, error handling 5 (11 pts), loops 2 (4 pts), ternaries 2 (4 pts) (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/LLMService.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c982f2969fcc4ff6a56beb18487fcca68fce9d6015f07667caee9f28a8b0489"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProvider.transcribeScreenshots (cognitive 73): CodexProvider.transcribeScreenshots has cognitive complexity 73 (threshold 15). Drivers by points: if/else 17 (54 pts), error handling 3 (6 pts), loops 2 (5 pts), ternaries 1 (5 pts), boolean chains 3 (nesting depth added 47). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/CodexProvider\u002BTranscription.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"542be4b03eb54f25f98ce5b7c14db016934c962c3d7ada6e2e8eb1bb21d2e32c"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatService.processConversation (cognitive 71): ChatService.processConversation has cognitive complexity 71 (threshold 15). Drivers by points: if/else 26 (49 pts), boolean chains 16, match/switch 1 (3 pts), loops 1 (2 pts), error handling 1 (nesting depth added 26). Of this number, 58 points are the body\u0027s own statements and 13 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ChatService.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f47e82910a079d833965719d650f13e4231a34951055d648be66d67a275120"}},{"ruleId":"D2","level":"warning","message":{"text":"DebugLogFormatter.makeLog (cognitive 70): DebugLogFormatter.makeLog has cognitive complexity 70 (threshold 15). Drivers by points: if/else 23 (55 pts), boolean chains 9, loops 3 (6 pts) (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Utilities/DebugLogFormatter.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d119fdc3e010b0762172aa5ba1df59d1c8a45fb0987e8fd69f7d2cc284a7a8c1"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCLIProcessRunner.executeStreaming (cognitive 65): ChatCLIProcessRunner.executeStreaming has cognitive complexity 65 (threshold 15). Drivers by points: if/else 36 (63 pts), boolean chains 9, loops 5 (8 pts), ternaries 3 (7 pts), match/switch 1 (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. This shape REPEATS in the file: one other method here (ChatCLIProcessRunner.executeStreaming::drainBufferedLines) 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":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"375a0a48b119a03bc5328b6557f3d0d219e5cb2e8f9b711b3dbb8b073d23904e"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiDirectProvider.geminiTranscribeRequest (cognitive 64): GeminiDirectProvider.geminiTranscribeRequest has cognitive complexity 64 (threshold 15). Drivers by points: if/else 22 (54 pts), boolean chains 6, match/switch 1 (3 pts), error handling 1 (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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"0811a58db75df651e45b964f5539e4ed35c87e60d196f92890f4771a6f3b8622"}},{"ruleId":"D2","level":"warning","message":{"text":"TimelineActivityLoader.resolveDisplaySegments (cognitive 58): TimelineActivityLoader.resolveDisplaySegments has cognitive complexity 58 (threshold 15). Drivers by points: if/else 13 (33 pts), ternaries 2 (10 pts), boolean chains 8, loops 4 (7 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/TimelineActivityLoader.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f4d92ad675223057146734ae5fe0c6aee17eb3c538ecb0511076fd1b4fd1fb"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiDirectProvider.geminiCardsRequest (cognitive 57): GeminiDirectProvider.geminiCardsRequest has cognitive complexity 57 (threshold 15). Drivers by points: if/else 18 (46 pts), boolean chains 7, match/switch 1 (3 pts), error handling 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"98579ccf4370288a5817390a9fa987ab91cd3f07390f671cbccca7540d81ed16"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiDirectProvider.validateTimeCoverage (cognitive 55): GeminiDirectProvider.validateTimeCoverage has cognitive complexity 55 (threshold 15). Drivers by points: if/else 13 (32 pts), loops 9 (20 pts), boolean chains 3 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7ac67bd37e4559b91f69d67d9c429467fcb031da5c1689262edfcedf921c7d"}},{"ruleId":"D2","level":"warning","message":{"text":"TimelineOutputSupporting.validateTimeCoverage (cognitive 55): TimelineOutputSupporting.validateTimeCoverage has cognitive complexity 55 (threshold 15). Drivers by points: if/else 13 (32 pts), loops 9 (20 pts), boolean chains 3 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"1edc85677e774fb3cb01442ada8720f7a8e05c5f2ad6e00f45a262fdc0219de2"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCLITestView.runTest (cognitive 52): ChatCLITestView.runTest has cognitive complexity 52 (threshold 15). Drivers by points: if/else 21 (42 pts), ternaries 3 (8 pts), error handling 1, match/switch 1 (nesting depth added 26). 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":"Dayflow/Dayflow/Views/Onboarding/ChatCLITestView.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53410c6422114f7e15b029ccd9a08771ddae3509cc44fea97c49cf97b132406"}},{"ruleId":"D2","level":"warning","message":{"text":"WeeklyInteractionGraphLayoutBuilder.guidePoint (cognitive 51): WeeklyInteractionGraphLayoutBuilder.guidePoint has cognitive complexity 51 (threshold 15). Drivers by points: ternaries 15 (42 pts), match/switch 3 (5 pts), if/else 2 (4 pts) (nesting depth added 31). 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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphLayout.swift"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9b245e6c9b3395d472b17d30bc9cbc6bc354be85f8fd75b7d5a931abf3e848"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatChartSpec.parse (cognitive 50): ChatChartSpec.parse has cognitive complexity 50 (threshold 15). Drivers by points: if/else 21 (40 pts), boolean chains 7, loops 1 (2 pts), match/switch 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/ChatCharts.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdab8bcc252ed8f5adc4545000f16e3c026b9f70fbde0ecc5be600ac00da3821"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaProvider.callChatAPI (cognitive 47): OllamaProvider.callChatAPI has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (37 pts), error handling 2 (5 pts), boolean chains 4, loops 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":"Dayflow/Dayflow/Core/AI/OllamaProvider\u002BNetworking.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5355ae29b0a45ff7a891fbe84fceae7d3f9a8c736729cd9ad26a6cafed6f37"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentCLISupporting.stripOSCEscapes (cognitive 46): AgentCLISupporting.stripOSCEscapes has cognitive complexity 46 (threshold 15). Drivers by points: if/else 7 (26 pts), boolean chains 10, loops 3 (10 pts) (nesting depth added 26). 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":"Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d462ff708b1edccdac0f53a8a887080c30af01f3dab430f78f9a9f112811a9eb"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyBriefGenerator.writeTranscript (cognitive 46): DailyBriefGenerator.writeTranscript has cognitive complexity 46 (threshold 15). Drivers by points: if/else 12 (29 pts), loops 3 (7 pts), match/switch 2 (6 pts), ternaries 1 (4 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"07bcf65496f353db63da7ec4662f656060d4f7ae87a45295c8d30e5ba4a06dac"}},{"ruleId":"D2","level":"warning","message":{"text":"AccessibilityTreeReader.snapshot::walk (cognitive 46): AccessibilityTreeReader.snapshot::walk has cognitive complexity 46 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 17, ternaries 3 (5 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":"Dayflow/Dayflow/Core/Recording/AccessibilityTreeReader.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"39775f11819d933217d539b7e94b2c7b016d0ec1d10059dc2cfe44ba3ed1bd65"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentCLISupporting.parseCards (cognitive 44): AgentCLISupporting.parseCards has cognitive complexity 44 (threshold 15). Drivers by points: if/else 19 (39 pts), boolean chains 4, loops 1 (nesting depth added 20). Of this number, 35 points are the body\u0027s own statements and 9 belong to one function item inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc38348887bac3a76ea2054bb56b0a76fad1bb99dca2445fcdbb4af8d0f99466"}},{"ruleId":"D2","level":"warning","message":{"text":"Condenser.submitLine (cognitive 44): Condenser.submitLine has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 15, ternaries 4 (6 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":"Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2fa5aa139e7462349b3cd4e708fc19da92200a2e3e9e87e2e27e279e2646be"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCLIProcessRunner.run (cognitive 42): ChatCLIProcessRunner.run has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (19 pts), loops 4 (9 pts), boolean chains 8, ternaries 3 (5 pts), match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce9495addecc9a71143a42d88b0716471574c6a76ca08b0edbc8f0f98895bfbe"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowSessionTimeline.apply (cognitive 39): FlowSessionTimeline.apply has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 5 (10 pts), boolean chains 9, loops 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":"Dayflow/Dayflow/Core/Flow/FlowSessionTimeline.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acbf0224dc5bff63250b45ffa1021fac21659f7dfe5bca8fc9246a691eeb3b7"}},{"ruleId":"D2","level":"warning","message":{"text":"Coordinator.handle (cognitive 39): Coordinator.handle has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 10, match/switch 2 (3 pts), ternaries 1 (3 pts), loops 1 (2 pts) (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Flow/FlowWebView.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dbbf2e8915ff8ea72183a6b56b63e5c23b00fdac2b2885d12e8673682694fff"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsProvidersTabView.routingRow (cognitive 38): SettingsProvidersTabView.routingRow has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 14, 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":"Dayflow/Dayflow/Views/UI/Settings/SettingsProvidersTabView.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"3955ff3c93bc27867035329ac7c6c88736470f2e134a7d1c7a931ee5ddc320dc"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoPlayerModal.body (cognitive 37): VideoPlayerModal.body has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (25 pts), boolean chains 8, ternaries 4 (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":"Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa6924c19e6da7dbe9c60e68432e8b61d0492314ae62258b8513c24fb600199"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiDirectProvider.generateText (cognitive 36): GeminiDirectProvider.generateText has cognitive complexity 36 (threshold 15). Drivers by points: if/else 7 (22 pts), boolean chains 11, error handling 1 (2 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BText.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd171c3a70633beeb52db70d10000543e456778a3d5b7b7bd377ccce1202b21"}},{"ruleId":"D2","level":"warning","message":{"text":"PIIMaskRules.unmaskPlainGuesses (cognitive 36): PIIMaskRules.unmaskPlainGuesses has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 14, if/else 7 (12 pts), loops 6 (10 pts) (nesting depth added 9). Of this number, 27 points are the body\u0027s own statements and 9 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/PrivacyShield/PIIMaskRules.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe3f324725ad69fe0e3483f11f5d0d884835d779c591e7a2d28dcf4a0fdfcc2"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeProvider.validateClaudeCardPolicy (cognitive 35): ClaudeProvider.validateClaudeCardPolicy has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 12, loops 1, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BActivityCards.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"f302655ec612543f66e3c20e6dd336aefe8158838fb2f8a1bafe480ff7b0cf48"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiDirectProvider.generateActivityCards (cognitive 35): GeminiDirectProvider.generateActivityCards has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (25 pts), boolean chains 7, error handling 1 (2 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b9d4d163dd69a96564f9883c8ef7553c144d1891cb5c1353d8c04b8c51213e"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProvider.generateActivityCards (cognitive 34): CodexProvider.generateActivityCards has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (25 pts), boolean chains 5, error handling 1 (2 pts), loops 1, match/switch 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":"Dayflow/Dayflow/Core/AI/CodexProvider\u002BActivityCards.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd0b2a1d46c93d4d59092b276c557f018beb07d927a05a1219c17f460f9df40"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowDistractionAgent.tick (cognitive 34): FlowDistractionAgent.tick has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 7, ternaries 1 (4 pts), match/switch 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":"Dayflow/Dayflow/Core/Flow/FlowDistractionAgent.swift"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc418c374985bc126ec1b4bd6516bae5b47664ce1619cdf485fd1b98fe811dc9"}},{"ruleId":"D2","level":"warning","message":{"text":"DocketDeckView.handleWheel (cognitive 34): DocketDeckView.handleWheel has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 10 (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":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketDeckView.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"9332daabbf7490406b53101dd3dda7b019d922eac1c1d12c8b0f0b3dfe05e9e9"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiDirectProvider.uploadAndAwait (cognitive 33): GeminiDirectProvider.uploadAndAwait has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (21 pts), error handling 2 (6 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BUpload.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa534b312ab3b854f7c6fa20e39a8a5149e813f43718d5ac4b794bb46256839c"}},{"ruleId":"D2","level":"warning","message":{"text":"Condenser.handle (cognitive 33): Condenser.handle has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 9, 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":"Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift"},"region":{"startLine":1501}}}],"partialFingerprints":{"codehealthFindingId/v1":"135d591b336c19ad912fb1d33b1e0d32af78513d0402f309fcbf2d2acef73194"}},{"ruleId":"D2","level":"warning","message":{"text":"PIIMaskRules.maskLabeledPasswords (cognitive 32): PIIMaskRules.maskLabeledPasswords has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (18 pts), boolean chains 11, loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/PrivacyShield/PIIMaskRules.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dcc106c16a0e279b52975778b9e8ca5ce0f319938cd30195211b5202be88a5b"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyView.regenerateStandupFromTimeline (cognitive 32): DailyView.regenerateStandupFromTimeline has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (24 pts), ternaries 7, 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":"Dayflow/Dayflow/Views/UI/DailyView\u002BStandup.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"edbca5ae2f52df66d7e4d3660345e8f7fe9d712b316297ea1d3d95a2390a65e9"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeOutputValidator.validateActivityCards (cognitive 31): ClaudeOutputValidator.validateActivityCards has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 8, loops 4 (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":"Dayflow/Dayflow/Core/AI/ClaudeOutputValidator.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3dc6de9eef5db321e494fc92a6e4b8d6c0c0e37466d72651001fe46b8ca78e"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyBriefGenerator.cleaned (cognitive 31): DailyBriefGenerator.cleaned has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 6, ternaries 5, loops 3, error handling 1 (2 pts) (nesting depth added 4). Of this number, 25 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d2b76641bd055e3dc1da43f5dc3b882a33a156b0debf1a880a56334abb53e7"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenRecorder.setupCapture (cognitive 31): ScreenRecorder.setupCapture has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (30 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":"Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"887a863a631054a8723df05d6e14ba57ad95b35be8cf0671985feacc5930987e"}},{"ruleId":"D2","level":"warning","message":{"text":"LLMProviderSetupView.currentStepContent (cognitive 31): LLMProviderSetupView.currentStepContent has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (26 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b49b9c1d722c4652a999772ca888773783285bbc9e00147f902fe7da482457"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentCLISupporting.parseSegments (cognitive 30): AgentCLISupporting.parseSegments has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 10, error handling 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":"Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BTranscription.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"762baaed87c1e0a73ce8d762478503240c1684846dd03aba37efe0391df883f1"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaProvider.generateActivityCards (cognitive 30): OllamaProvider.generateActivityCards has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (28 pts), boolean chains 2 (nesting depth added 15). 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":"Dayflow/Dayflow/Core/AI/OllamaProvider.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"88229a2fcd631ecc79ac56614423c31b911aac84e899311b18d08aea67c0c8d2"}},{"ruleId":"D2","level":"warning","message":{"text":"CanvasActivityCard.body (cognitive 30): CanvasActivityCard.body has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 10 (13 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/CanvasActivityCard.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a7b5268350ee5c64b0d2d5a19e424a3c2f0f23de3e238f1f7599da90c60038"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowDistractionAgent.handle (cognitive 29): FlowDistractionAgent.handle has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 7, 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":"Dayflow/Dayflow/Core/Flow/FlowDistractionAgent.swift"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd290b9a8217fdb97be40a2b2225c100e47466ccfdc11436ea2d9bd6cb77928"}},{"ruleId":"D2","level":"warning","message":{"text":"Condenser.newText (cognitive 29): Condenser.newText has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 3, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"8469d4aabf849cbca5ed27cf968aadbef1d141ae396434e663514eb0b175ee42"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeTranscriptionInputBuilder.selectedOCRText (cognitive 28): ClaudeTranscriptionInputBuilder.selectedOCRText has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 4, ternaries 2 (3 pts), loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeTranscriptionInputBuilder.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d15f84cccf8db10c88e2d2174dea4a5193c520bc23987602970c3311701ba41"}},{"ruleId":"D2","level":"warning","message":{"text":"AccessibilityRecorder.handle (cognitive 28): AccessibilityRecorder.handle has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (19 pts), ternaries 2 (5 pts), boolean chains 3, 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":"Dayflow/Dayflow/Core/Recording/AccessibilityRecorder.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3bf4ccf5dc7fa647a2fafc0328249cead663cdda87ffce1787debc03edf0121"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiDirectProvider.extractJSONObjectStrings (cognitive 27): GeminiDirectProvider.extractJSONObjectStrings has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (22 pts), match/switch 1 (3 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardStreaming.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5067c9d15c120731fbadb86a7c50ebc108c2edc9ad3ba607bf0c43511804ab3"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiDirectProvider.transcribeVideoData (cognitive 27): GeminiDirectProvider.transcribeVideoData has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (19 pts), boolean chains 5, error handling 1 (2 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2c5da46df18ef8e748b4ba7207e4861eaa3ac66e10adb3af210ad7cdbb7a71"}},{"ruleId":"D2","level":"warning","message":{"text":"DayflowButton.body (cognitive 27): DayflowButton.body has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 20, if/else 6 (7 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":"Dayflow/Dayflow/Views/Components/DayflowButton.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b8ccc2c44a1075ad8779cebae874be95559bcc42c5c7cf96bd77bd95e9670d"}},{"ruleId":"D2","level":"warning","message":{"text":"ColorOrganizerRoot.contentCard (cognitive 27): ColorOrganizerRoot.contentCard has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 17 (20 pts), if/else 6 (7 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":"Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d5524e6143b4327962fcff46f85d10318ef10646d8e5c4fec7ac7ebd5f3fb3"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyBriefDebugStats.lines (cognitive 27): DailyBriefDebugStats.lines has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (18 pts), ternaries 4 (6 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":"Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"4636c355d6fe9db5e399624f366e95144475ea4f64bfb162f506f1f761530d15"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageManager.performPurgeIfNeeded (cognitive 26): StorageManager.performPurgeIfNeeded has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 2 (7 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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"68bb19cc292cfd2d30c0d2a675deb3d9507fd62af48bb3d9d9f87e1c685ade67"}},{"ruleId":"D2","level":"warning","message":{"text":"PausePillView.pill (cognitive 26): PausePillView.pill has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 9 (13 pts), if/else 9 (11 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":"Dayflow/Dayflow/Views/UI/PausePillView.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5fd406aa91025af66fe35428aa20c67e6ce9c2ae19e853db630460205a393b"}},{"ruleId":"D2","level":"warning","message":{"text":"TimelineActivityLoader.recordingProjectionWindow (cognitive 26): TimelineActivityLoader.recordingProjectionWindow has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/TimelineActivityLoader.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"722e48f927d93eb8fa83c31a7b6c9395ad9c10b7190e0f28d662f5eb0308b678"}},{"ruleId":"D2","level":"warning","message":{"text":"SquarifiedTreemapLayout.squarify (cognitive 26): SquarifiedTreemapLayout.squarify has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5, loops 3 (5 pts), ternaries 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyTreemapLayout.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dbd98dd9bee1273bb457ebf50b8782046eb568b7eeef912b8ffe6a297fba84f"}},{"ruleId":"D2","level":"warning","message":{"text":"LLMService.makeBatchProvider (cognitive 25): LLMService.makeBatchProvider has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (18 pts), error handling 2 (4 pts), boolean chains 2, match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/LLMService.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54a00d0c6400415452edea04efdc580072f26fb07eeee0224b7d341edcc570b"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProvider.generateTimeline (cognitive 24): CodexProvider.generateTimeline has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (13 pts), error handling 3 (8 pts), loops 1 (2 pts), boolean chains 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":"Dayflow/Dayflow/Core/AI/CodexProvider\u002BTimeline.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"252fb1defc4952bbd11d0305a7578f5ee2a919ebb31b5a4a130888ed4755f4b9"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyRecapGenerator.extractFirstJSONObject (cognitive 24): DailyRecapGenerator.extractFirstJSONObject has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1ab82a643a0679034312ebc650b1a572baee6106d783dc6db037d2010878f9"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiDirectProvider.decodeDashboardSSEChunkObjects (cognitive 24): GeminiDirectProvider.decodeDashboardSSEChunkObjects has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 2, 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardStreaming.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"524f935cbfc600ad839d37509f8f6d44372dc571213edcf32668a6f4f55d2043"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoProcessingService.generateVideoFromScreenshots (cognitive 24): VideoProcessingService.generateVideoFromScreenshots has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (19 pts), loops 2 (3 pts), ternaries 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/VideoProcessingService.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"60623c912fede187884fec65b992b681118e529d8ccf58a6ab1fa6035346f960"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityCard.activityDetails (cognitive 24): ActivityCard.activityDetails has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 9 (12 pts), if/else 9 (10 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"b668fa06726ce7c442b5bf63deef5c0bac3a741be05943c32b676c6fa3711afa"}},{"ruleId":"D2","level":"warning","message":{"text":"WeeklySankeyModelFactory.placeLabels (cognitive 24): WeeklySankeyModelFactory.placeLabels has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (10 pts), boolean chains 1 (nesting depth added 15). 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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c78cd637ac143631a7828bf66d4cc21f7554d589229f85b40bd0359dd946d35"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCLIProcessRunner.executeStreaming::drainBufferedLines (cognitive 23): ChatCLIProcessRunner.executeStreaming::drainBufferedLines has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (21 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. This shape REPEATS in the file: one other method here (ChatCLIProcessRunner.executeStreaming) 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":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"437f69281b331a64ad2216b67a24181dfe65bdf293c5402c160a25af6ad5b297"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowDistractionAgent.start (cognitive 23): FlowDistractionAgent.start has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (14 pts), error handling 2 (3 pts), match/switch 1 (3 pts), loops 1 (2 pts), ternaries 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Flow/FlowDistractionAgent.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d46df52808579726d2597bb8b9c15ddc67192b53c0e2fa78a11c85dc7c2de97"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserWindowInspector.collect (cognitive 23): BrowserWindowInspector.collect has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 4, loops 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/BrowserWindowInspector.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b31660198848124f3d4a50df599e9ab4e1bfbc148370f718a77a16f0a001a3"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCLIProcessRunner.parseCodexEvent (cognitive 22): ChatCLIProcessRunner.parseCodexEvent has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 7, 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":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"6818647f2145d078b79e788e1738c8f9ddc96d392bd50c0140ba2799c2729a2a"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatToolExecutor.formatTimelineCardsForLLM (cognitive 22): ChatToolExecutor.formatTimelineCardsForLLM has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 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":"Dayflow/Dayflow/Core/AI/ChatToolExecutor.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f480cd9528e33261331ae68ee2df32c08eee792ee1a70dc74172995e40b6d2"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeProvider.transcribeScreenshots (cognitive 22): ClaudeProvider.transcribeScreenshots has cognitive complexity 22 (threshold 15). Drivers by points: if/else 3 (9 pts), ternaries 2 (6 pts), error handling 3 (5 pts), loops 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTranscription.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e050dccf2484065cba6e0e4453e4a114a14b807000b412d44c1f109fadae27"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisManager.queueLLMRequest (cognitive 22): AnalysisManager.queueLLMRequest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 2 (5 pts), boolean chains 3, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb7bc18aab1909fb3e54db25f2f277f338f3dd0853e500b032365010b41f838"}},{"ruleId":"D2","level":"warning","message":{"text":"PIIModelRunner.scores (cognitive 22): PIIModelRunner.scores has cognitive complexity 22 (threshold 15). Drivers by points: loops 5 (11 pts), if/else 3 (10 pts), boolean chains 1 (nesting depth added 13). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/PrivacyShield/PIIModelRunner.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d445e3783d23f1305bf3d2079205ed3795d136833224329ab49f3189ab3b2700"}},{"ruleId":"D2","level":"warning","message":{"text":"Condenser.resolveSubmits (cognitive 22): Condenser.resolveSubmits has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 8, 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":"Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f64acb469df8b37d7016b45a007dbeb35529778cca5587411f83d4a26e6ecec"}},{"ruleId":"D2","level":"warning","message":{"text":"Condenser.sentBubble (cognitive 22): Condenser.sentBubble has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"674241e552eacb83a160b358011336b3986b4afe82578dc9c094c56df7327cf1"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.applicationDidFinishLaunching (cognitive 21): AppDelegate.applicationDidFinishLaunching has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (18 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, 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":"Dayflow/Dayflow/App/AppDelegate.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"3391460297f5a3b5e665debf12aac0de31074ef0b6911089affb7d2496bd17ad"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCLIProcessRunner.parseClaudeEvent (cognitive 21): ChatCLIProcessRunner.parseClaudeEvent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 9 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"565ae813399e5e46ea6c1c04daa97b5df3fc14314e5d6c719fe53b426dbcbf81"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeOutputValidator.validateTranscriptionSegments (cognitive 21): ClaudeOutputValidator.validateTranscriptionSegments has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeOutputValidator.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"3215aecbd9de8e7d49e2855ea54187132b9babf9eecf10852bf28fab8a22c4fb"}},{"ruleId":"D2","level":"warning","message":{"text":"OneStepTimelineObservations.make (cognitive 21): OneStepTimelineObservations.make has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 7, loops 3 (5 pts), ternaries 1 (nesting depth added 6). Of this number, 17 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":"Dayflow/Dayflow/Core/AI/OneStepTimelineSupport.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf675c87f20904567783e1952975cd7e015f9e84395fecf8ff820ab045d2616a"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowDistractionAgent.jsonObjects (cognitive 21): FlowDistractionAgent.jsonObjects has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Flow/FlowDistractionAgent.swift"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"423f0c8dca8f6412660e4610e72f50bec8b4255443458a086fd66bf0487c5b43"}},{"ruleId":"D2","level":"warning","message":{"text":"FaviconContrast.pixelSamples (cognitive 21): FaviconContrast.pixelSamples has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Net/FaviconService.swift"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2cc5c325579e3737c9325f8a43c982ab277f2cdd1dea773de43518ae07bcba"}},{"ruleId":"D2","level":"warning","message":{"text":"AccessibilityLogStore.prune (cognitive 21): AccessibilityLogStore.prune has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/AccessibilityLogStore.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd69a44f43b5904f9d4c21ef2c075392808c36702749f00f50317cca4aa271f"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCLITestView.body (cognitive 21): ChatCLITestView.body has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 5 (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":"Dayflow/Dayflow/Views/Onboarding/ChatCLITestView.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb99dc29d851abae0f383f6d8140209ba04597f5db82268f466ab5526352b374"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatContentParser.blocks (cognitive 21): ChatContentParser.blocks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (18 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":"Dayflow/Dayflow/Views/UI/ChatCharts.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ee5a6d1d5a09379b6416a883eb7f8383c2d96c8967baaff8ba2ddd76f954c4"}},{"ruleId":"D2","level":"warning","message":{"text":"DocketHandoffDirector.typeIn (cognitive 21): DocketHandoffDirector.typeIn has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 2 (4 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":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketHandoffTransition.swift"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"85103d7ee0fc8dbb1261f7108db7a8a00d3f7c29d3155b00f72191b663a94dd9"}},{"ruleId":"D2","level":"warning","message":{"text":"TelemetryErrorSanitizer.balancedJSONEnd (cognitive 20): TelemetryErrorSanitizer.balancedJSONEnd has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (18 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":"Dayflow/Dayflow/System/AnalyticsService.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"515e13d6cd18518b6ce09ef51b3c97a496eff22f3f7ec2c95ea0cb1b77a10433"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCLIProcessRunner.balancedJSONEnd (cognitive 20): ChatCLIProcessRunner.balancedJSONEnd has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (18 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":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e7998a76cab8b3907e7d0fe95e7d79970bbc78b5b91e78328a9cf2b6d4c0b7"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatService.parseAssistantMetadata (cognitive 20): ChatService.parseAssistantMetadata has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ChatService.swift"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"078f3ddd7e6babfd9a5c97bedd17bf9ab644bdb205e453dc9ca9df234c15953e"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeProvider.balancedJSONEnd (cognitive 20): ClaudeProvider.balancedJSONEnd has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (18 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":"Dayflow/Dayflow/Core/AI/ClaudeStrictJSONParser.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c49604b0c2e0a0555c64fa4b053caff212000c2936ed90501fc569327584e5f"}},{"ruleId":"D2","level":"warning","message":{"text":"DayflowBackendProvider.generateTimeline (cognitive 20): DayflowBackendProvider.generateTimeline has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, error handling 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":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"2440fda4bf3769e24f56743eb4694fbd1d7dd7f485936644166d1c4bc8cb5d51"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiDirectProvider.extractFirstJSONObject (cognitive 20): GeminiDirectProvider.extractFirstJSONObject has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BLogging.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a94a8ce78516ea3047df2f4e849ac90f6ac7419cd714279d66cf4975ba9496e"}},{"ruleId":"D2","level":"warning","message":{"text":"TimelineOutputSupporting.validateSegments (cognitive 20): TimelineOutputSupporting.validateSegments 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":"Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"2715f134575f7e33b0cfcb01c01508b4cf38bf9d6f00284f83e23c44f7d398f2"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyBriefGenerator.runStats (cognitive 20): DailyBriefGenerator.runStats has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (5 pts), ternaries 3 (4 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4090b81600a4cae4e1ad43c22ba215f4875f5483f377d51eb29011456e9c1e"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyBriefStore.finishRun (cognitive 20): DailyBriefStore.finishRun has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 3 (6 pts), boolean chains 5, 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":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefStore.swift"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae037012644a354f97394e90b6f97c58d5e4a86827a69e558ccfe8517a4ba60d"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowDistractionAgent.finishTick (cognitive 20): FlowDistractionAgent.finishTick has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Flow/FlowDistractionAgent.swift"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b155739f4e5bfaecd046cdb631b5b9bbadb8c332e5bc9f35cf72778c86fd20e"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenRecorder.captureScreenshot (cognitive 20): ScreenRecorder.captureScreenshot has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 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":"Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c07a23aa0ff7d2f6b1f0303deb10527576cb73e3b64e0c7589a298f4f49509"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenRecorder.registerForSleepAndLock (cognitive 20): ScreenRecorder.registerForSleepAndLock has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3d0f1a363329078efdc58b7433404962515e47394282da33e60e90a4133ae4"}},{"ruleId":"D2","level":"warning","message":{"text":"WeeklyOverviewBuilder.longestFocusSummary (cognitive 20): WeeklyOverviewBuilder.longestFocusSummary has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe1f219722ebbbba2f010b1a96f993f958f5fe0847830b7c8eba45accc69120"}},{"ruleId":"D2","level":"warning","message":{"text":"Coordinator.startMonitoring (cognitive 20): Coordinator.startMonitoring has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 4, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/TimelineReviewChrome.swift"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4fb4dfcaacb537aab5d874cf7d06ca3c9efc9d5287a8d6370d4322fc9b1f20"}},{"ruleId":"D2","level":"warning","message":{"text":"DocketDeckView.card (cognitive 20): DocketDeckView.card has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 11, boolean chains 5, if/else 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":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketDeckView.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c38f3dea331f33fe0f2b7a23e819a82a4bb2638e8ae66953cb7664a865f9192"}},{"ruleId":"D2","level":"warning","message":{"text":"DayflowApp.body (cognitive 19): DayflowApp.body has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 3 (5 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/App/DayflowApp.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f14d2962a2f26f687d7cc66225535149d6cc1e5c75cd58f83908a60183081a2"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiDirectProvider.processDashboardSSEChunkObject (cognitive 19): GeminiDirectProvider.processDashboardSSEChunkObject has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardStreaming.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec75d242ad5e2aab644a095e2f918514ae07d15b8b6b8c51c361d1e357a04185"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalysisManager.reprocessDay (cognitive 19): AnalysisManager.reprocessDay has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 4 (6 pts), match/switch 1 (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":"Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"314ce889b6330af12a35608de23c9cf96d2df84b0c472f1bc5bc68a81ca3c25d"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyBriefGenerator.generate (cognitive 19): DailyBriefGenerator.generate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (8 pts), match/switch 2 (5 pts), loops 3, ternaries 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"818d7629679a24c0bcaa04016dbe2505d8a59216d2410bca98b23bb32094cd90"}},{"ruleId":"D2","level":"warning","message":{"text":"PrivacyShield.prepare (cognitive 19): PrivacyShield.prepare has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (8 pts), boolean chains 5, error handling 2 (4 pts), loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/PrivacyShield/PrivacyShield.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"844c11a54246fa2ae4d59617b0c057d704bf04b0f665548dbbb113042b56d231"}},{"ruleId":"D2","level":"warning","message":{"text":"OnboardingFlow.body (cognitive 19): OnboardingFlow.body has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 2 (3 pts), boolean chains 2, 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":"Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"f344daec1613201874b2d10ffb2fd0c5cc3268422940271813cecb0accd076f5"}},{"ruleId":"D2","level":"warning","message":{"text":"FilmstripGenerator.generate (cognitive 19): FilmstripGenerator.generate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 4, error handling 1, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/ScrubberView.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"20435d6a83ea2ded4545a26921899ae0305a08e74190141d820c531bd937d1f4"}},{"ruleId":"D2","level":"warning","message":{"text":"SpinnerNSView.precomputeAnimations (cognitive 19): SpinnerNSView.precomputeAnimations has cognitive complexity 19 (threshold 15). Drivers by points: loops 8 (11 pts), if/else 5 (6 pts), ternaries 1 (2 pts) (nesting depth added 5). Of this number, 13 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/TimelineThinkingSpinner.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7ec8eae88d49d4c0b6bd8e59da6a9207f312b24b206aeb1e663ab50628f968"}},{"ruleId":"D2","level":"warning","message":{"text":"TimelineCalendarPopover.daysToDisplay (cognitive 19): TimelineCalendarPopover.daysToDisplay has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/TimelineCalendarPopover.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f890cd2ba3b227f89dc66e268e286cda560358e982e638c9b67266eb8dcda6"}},{"ruleId":"D2","level":"warning","message":{"text":"WeekTimelineActivityCard.cardCanvas (cognitive 19): WeekTimelineActivityCard.cardCanvas has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 14 (15 pts), if/else 3, 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":"Dayflow/Dayflow/Views/UI/MainView/WeekTimelineActivityCard.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"782baf88ac9e5351a0e7a823dfb9788156d88f0122be7ab729f74b5e1028be9e"}},{"ruleId":"D2","level":"warning","message":{"text":"WeeklyInteractionGraphLayoutBuilder.layout (cognitive 19): WeeklyInteractionGraphLayoutBuilder.layout has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 4, loops 3 (4 pts), ternaries 1 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphLayout.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"6742e7f63d11ed6b306ab173c5365aed49ad9e8841edd35893703083d2caf1f8"}},{"ruleId":"D2","level":"warning","message":{"text":"WeeklySankeyModelFactory.build (cognitive 19): WeeklySankeyModelFactory.build has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 4 (6 pts), boolean chains 3, ternaries 2 (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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0b559c0b787fcf7ce3146370efec654dac6369d751148390392f8b7e7dc26b"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCLIProcessRunner.stripANSIEscapes (cognitive 18): ChatCLIProcessRunner.stripANSIEscapes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 2 (5 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":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13fefa4c6b025b4e35f33badd26940796b7e99fdd167351a7b5773386f73cd0"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyRecapScheduler.runCheck (cognitive 18): DailyRecapScheduler.runCheck has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 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":"Dayflow/Dayflow/Core/AI/DailyRecapScheduler.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4069dc8a7622caa6d0da7bc24609861b0840106c9368ee8e16f6ecea7d46e83"}},{"ruleId":"D2","level":"warning","message":{"text":"GemmaBackupProvider.appendCard (cognitive 18): GemmaBackupProvider.appendCard has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 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":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"615072870b865c0bb5e530d8be6853a164613fc56106dc8e90c92550d0233c04"}},{"ruleId":"D2","level":"warning","message":{"text":"PIIMaskRules.trimMaskedEdges (cognitive 18): PIIMaskRules.trimMaskedEdges has cognitive complexity 18 (threshold 15). Drivers by points: loops 6 (11 pts), if/else 2 (4 pts), boolean chains 3 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/PrivacyShield/PIIMaskRules.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b40518059f1198cfca9917daad7542ca806b2720c7f48cba85a123504fdc335"}},{"ruleId":"D2","level":"warning","message":{"text":"PIIMaskRules.maskSeedPhrases (cognitive 18): PIIMaskRules.maskSeedPhrases has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 6, if/else 5 (6 pts), loops 3 (6 pts) (nesting depth added 4). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to one function item inside it that branches (finish). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/PrivacyShield/PIIMaskRules.swift"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fcf28ebc3180a21432790d19d863e365a8ec1926c1206688e1e46c42d3b6358"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageManager.cleanupRecordingStragglers (cognitive 18): StorageManager.cleanupRecordingStragglers has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae408d2a9b73020830869e2fdcb4602cd323c519e2bb304913bbeeb7ed9b192"}},{"ruleId":"D2","level":"warning","message":{"text":"DayflowSurfaceButton.body (cognitive 18): DayflowSurfaceButton.body has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 13 (14 pts), if/else 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":"Dayflow/Dayflow/Views/Components/DayflowSurfaceButton.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c242f29fb35bdda7269002b9f6d2c2d78b8ab31a0662ad5ddc78c06a96a2e9"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalLLMTestView.runTest (cognitive 18): LocalLLMTestView.runTest has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/LocalLLMTestView.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"8746ac63891a7064abc81a5d105ffde2bd2b94cdb70dea3ec826aec197ac7a28"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowOverlayView.updateCreature (cognitive 18): FlowOverlayView.updateCreature has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 2 (3 pts), boolean chains 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":"Dayflow/Dayflow/Views/UI/Flow/FlowOverlayView.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"021bfaac0ae01e30d4828290fa3a15038038b70be644aebaf56cea158c6cb397"}},{"ruleId":"D2","level":"warning","message":{"text":"DocketHandoffDirector.paste (cognitive 18): DocketHandoffDirector.paste 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":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketHandoffTransition.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"86cd71f4b1b76cf68155fa00649d9e7c3fdcb3ec66a950ccb127b435d0844d57"}},{"ruleId":"D2","level":"warning","message":{"text":"AccessibilityLogCondenser.swift.mergingShortRuns::closeRun (cognitive 18): AccessibilityLogCondenser.swift.mergingShortRuns::closeRun has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 12, if/else 3 (4 pts), ternaries 1 (2 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bec03a9689cc5acb2e6d6c96838c5c5e58fab2c449711f02099fd974c03522a"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeProvider.generateTimeline (cognitive 17): ClaudeProvider.generateTimeline has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 2 (6 pts), if/else 2 (5 pts), error handling 2 (4 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0dec9f3f1125c73c08c827bfcbfc1abbbc84473812f7058b79396529fc84f84"}},{"ruleId":"D2","level":"warning","message":{"text":"DayflowBackendProvider.transcribeScreenshots (cognitive 17): DayflowBackendProvider.transcribeScreenshots has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, error handling 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28838e60a988f981eaaaa32fd7d35f5d31b959805b4d364eda62979444d2dbe"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiDirectProvider.validateTimeline (cognitive 17): GeminiDirectProvider.validateTimeline has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2ac4aea01353d2e44d1333546afb45fc77917fe17a31a7968b15d7271cf27f"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiDirectProvider.logGeminiFailure (cognitive 17): GeminiDirectProvider.logGeminiFailure has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (17 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BLogging.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a41d99693f16e5f519ef6ecf1a3645886f5f523d947b7807c3de6c0226be70"}},{"ruleId":"D2","level":"warning","message":{"text":"TimelineOutputSupporting.validateTimeline (cognitive 17): TimelineOutputSupporting.validateTimeline has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c60eba9230d0c8e836e8429376bb13acc30cdaf774f50601af814052b49920"}},{"ruleId":"D2","level":"warning","message":{"text":"PIIMaskRules.unmaskOrphanDomains (cognitive 17): PIIMaskRules.unmaskOrphanDomains has cognitive complexity 17 (threshold 15). Drivers by points: if/else 2 (6 pts), loops 3 (6 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":"Dayflow/Dayflow/Core/PrivacyShield/PIIMaskRules.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a7aae7a89e35bcc91bd058c040290cdb8ab883d58abf9a0ea60fa098e77d81"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageManager.replaceTimelineCardsInRange (cognitive 17): StorageManager.replaceTimelineCardsInRange has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, 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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b2f0c678d615f2d13b9cdacc927b6e55ea45fdfa3816c27bdaa882163901df"}},{"ruleId":"D2","level":"warning","message":{"text":"ColorAssignmentCard.body (cognitive 17): ColorAssignmentCard.body has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 9 (10 pts), if/else 6, 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":"Dayflow/Dayflow/Views/Components/CategorySetupCards.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"935b79992915fbb3e5274a51728433def7c58b7978cce178cf9391f6f0a9056d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatView.betaLockScreen (cognitive 17): ChatView.betaLockScreen has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, ternaries 5, if/else 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":"Dayflow/Dayflow/Views/UI/ChatView\u002BContent.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"804a70d363347edfd3188c6369459f89b0264d5ffc123a5f5fcb0f64ab9663f4"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyView.refreshStandupDraftIfNeeded (cognitive 17): DailyView.refreshStandupDraftIfNeeded 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":"Dayflow/Dayflow/Views/UI/DailyView\u002BStandup.swift"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd013d3df97cebad4e22beb19543a5726e2b7ff983d87d77d56162dfdc8924c9"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentPlaybackHost.receive (cognitive 17): AgentPlaybackHost.receive has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 6, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Agents/AgentPlaybackView.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"93df962e79fbde74f38076f73a76a2742d98932c312e4c9116df3fef8213efac"}},{"ruleId":"D2","level":"warning","message":{"text":"DocketFeedbackRow.source (cognitive 17): DocketFeedbackRow.source has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 3 (4 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketCardContent.swift"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"215e83859f0d9d30a00e5ea690c2a871a34d1b3718028092cc9e5cd43a9a861d"}},{"ruleId":"D2","level":"warning","message":{"text":"DocketTransitionView.body (cognitive 17): DocketTransitionView.body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (12 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketHandoffTransition.swift"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd12391d9d2f41e757749ca0e720c0961deddcd618c9db1e2f18cb8fce82099"}},{"ruleId":"D2","level":"warning","message":{"text":"StoragePathMigrator.relocateDirectoryContents (cognitive 16): StoragePathMigrator.relocateDirectoryContents 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":"Dayflow/Dayflow/Utilities/StoragePathMigrator.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"be49df71cbed3badd8a2174e09607f30a62cc0d403ecd6140a1077f59684790e"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCLIProcessRunner.parseCodexJSONOutput (cognitive 16): ChatCLIProcessRunner.parseCodexJSONOutput has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 6, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"26334e714524f5d5064c62ebdf977445c313d9c0b7aa3118ada9ae619f6c2dad"}},{"ruleId":"D2","level":"warning","message":{"text":"DayflowBackendProvider.generateDaily (cognitive 16): DayflowBackendProvider.generateDaily has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 3, error handling 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0932357198f4217b4c410b2cc35561b243653ea9b5f4c11bdf42327440b5c0c"}},{"ruleId":"D2","level":"warning","message":{"text":"TimelineFailureClassifier.providerName (cognitive 16): TimelineFailureClassifier.providerName 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":"Dayflow/Dayflow/Core/AI/TimelineFailureClassifier.swift"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5f807eefa29e14e7b3d87ac1c5c5b8c774b55acc0196c64ccc955488d4cbbc"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyBriefGenerator.runStructuredClaude (cognitive 16): DailyBriefGenerator.runStructuredClaude has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 6, error handling 2 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e40b6d46926dedaae0afacfff7a4a8e077b9e9ae53fe714ac59029bb2e113f"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenRecorder.refreshDisplay (cognitive 16): ScreenRecorder.refreshDisplay has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, 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":"Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d06c0eb3fc4a73cac9732e14ba9003ec5a89d03d7aab3a12316f2d36fc0972"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageManager.saveTimelineCardShell (cognitive 16): StorageManager.saveTimelineCardShell 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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0aab510d218ab1837de5064194ab56001a9ef68ee04f6b9a018a7a5e972758c"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityCard.titleView (cognitive 16): ActivityCard.titleView has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (6 pts), ternaries 3 (6 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf54a589a684a4d38cdb687265e95dfed75625885705e8ec676a72fa54c0a3d9"}},{"ruleId":"D2","level":"warning","message":{"text":"TimelineActivityLoader.buildActivities (cognitive 16): TimelineActivityLoader.buildActivities has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/TimelineActivityLoader.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"03841b1f82aeb7e6a31e501418e09d58ae3b3a5dd872d8572c8ce29f1041d0fd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StorageManager: TooManyMethods \u2014 115 methods, declared across 13 files: Recording/StorageManager\u002BTimelineCards.swift (28), Recording/StorageManager\u002BMaintenance.swift (18), Recording/StorageManager\u002BChunks.swift (13), Recording/StorageManager\u002BScreenshots.swift (11), \u002B9 more file(s). The bar is 30 methods; this is 85 over it, 3.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":"Dayflow/Dayflow/Core/Recording/StorageManager.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"0836d1e84572ba3661c4269df067a8f3124b61057798ff11ddf9c9c0411d174d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LLMProviderSetupView.currentStepContent: MethodTooLong \u2014 currentStepContent runs 365 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 265 over it, 3.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"73cf03ea8fb87579ab180681a4b2ae88370fca0fc65c327805c56169f75463a6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LLMService.processBatch: MethodTooLong \u2014 processBatch runs 349 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 249 over it, 3.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":"Dayflow/Dayflow/Core/AI/LLMService.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf37130f5af3711ef8887772c734eac7b8068940ee66fe09aa11bcff3bdb314"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Condenser.renderItems: MethodTooLong \u2014 renderItems 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":"Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ea3613f8d6e79ac21343a0a9d533336a22fdb900581f9282ebb5326a340f78"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DailyBriefStore: TooManyMethods \u2014 85 methods. The bar is 30 methods; this is 55 over it, 2.83\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefStore.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"79785719af23a1aeb2c508f4a366d6837c7107c7736e66a3533996c7f6ec224f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatCLIProcessRunner: ClassTooLong \u2014 1106 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 706 over it, 2.77\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f014fe9498cb492abaaaeb89665909ef6c110e90ff46bb1d17dd5363f5398ef"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: DailyWorkflowComputation.swift.computeDailyWorkflow: FunctionTooLong \u2014 computeDailyWorkflow runs 274 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 174 over it, 2.74\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyWorkflowComputation.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c840040cac3f62de00270d900c7d82f4bfa47d7a3d940efcc9b44ce9f1747b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AI/ChatCLIProcessRunner.swift: FileTooLong \u2014 1281 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: ChatCLIProcessRunner (242-1807). The bar is 500 significant lines; this is 781 over it, 2.56\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00e58364fff1e1bc5be3624d76508241e931a5103fd9bc69cc0ac7841c8b2ba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatCLIProcessRunner.executeStreaming: MethodTooLong \u2014 executeStreaming runs 249 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 149 over it, 2.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":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"afaadc0c64b0af85afefbff55d3da6c4e6efaa305a095dcfe3ff88146d8d6392"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GeminiDirectProvider: TooManyMethods \u2014 70 methods, declared across 11 files: AI/GeminiDirectProvider\u002BDashboardTools.swift (15), AI/GeminiDirectProvider\u002BDashboardStreaming.swift (12), AI/GeminiDirectProvider\u002BDashboardChat.swift (9), AI/GeminiDirectProvider\u002BActivityCards.swift (8), \u002B7 more file(s). The bar is 30 methods; this is 40 over it, 2.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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e13455d6cc266133c166dc9001ed025281b726ac3f95c1b170ba9175ed32dbb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GeminiDirectProvider.geminiTranscribeRequest: MethodTooLong \u2014 geminiTranscribeRequest runs 229 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 129 over it, 2.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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"69dac4a4fb7b7bbfb1c21f9862ce3c4aab5854287fa091aefd2ebfcea4f61dc1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StorageManager.migrate: MethodTooLong \u2014 migrate runs 223 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 123 over it, 2.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee26fa080d1e08df2c32e8ad37ca992fa21572eec6160c7135b4d403284e2c3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/WhatsNewView.swift: FileTooLong \u2014 1079 significant lines (blank, comment-only and punctuation-only lines excluded), about 68% of them inside a single declaration: WhatsNewView (181-1206). The bar is 500 significant lines; this is 579 over it, 2.16\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/WhatsNewView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a70360a6d24e7bba345d34a4794bb72e0442203c0067c2084b165a69ef200a8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatCLIProcessRunner.run: MethodTooLong \u2014 run runs 213 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 113 over it, 2.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"24121b1876cbc7cc9e046948d697af39d638ea1ce00c388738e7aaf136213fc5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Recording/AccessibilityLogCondenser.swift: FileTooLong \u2014 1040 significant lines (blank, comment-only and punctuation-only lines excluded), about 61% of them inside a single declaration: Condenser (684-1579). The bar is 500 significant lines; this is 540 over it, 2.08\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea751800cc497a77e87cce1fcc61d8f6bfbe04b6ce853ed1cbcd303ebc7e0fa"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DailyBriefStore: ClassTooLong \u2014 805 significant lines (blank, comment-only and punctuation-only lines excluded), 85 methods. The bar is 400 significant lines; this is 405 over it, 2.01\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefStore.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d29a7214441f6cbdca5559819acd4ffea50e08c08d216ac3d7b52e340538831"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LLMService: ClassTooLong \u2014 805 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 405 over it, 2.01\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/LLMService.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86c533d67efc0eaeedbcccc3fa03ec1c4a2400d17d1a3156a5d768957db9ffc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Flow/FlowDistractionAgent.swift: FileTooLong \u2014 1004 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 504 over it, 2.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Flow/FlowDistractionAgent.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1533bd8ae78dded40a4d764bc059fa752bdf00e7204a6b2126e25f3d428685"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MainView: TooManyMethods \u2014 59 methods, declared across 7 files: MainView/Layout.swift (17), MainView/Support.swift (11), MainView/Actions.swift (10), MainView/Lifecycle.swift (7), \u002B3 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":"Dayflow/Dayflow/Views/UI/MainView/MainView.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca560edda4dd39b2c0cf4b0ff5d05b7133f73b8e74c2ec72e899c5bfe03e32c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DailyView.regenerateStandupFromTimeline: MethodTooLong \u2014 regenerateStandupFromTimeline runs 193 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 93 over it, 1.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyView\u002BStandup.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"928ed473779e82a27e1cab5563067cc43c52df109ae8457b132de91082ebef47"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Docket/DocketHandoffTransition.swift: FileTooLong \u2014 964 significant lines (blank, comment-only and punctuation-only lines excluded), about 65% of them inside a single declaration: DocketHandoffDirector (118-1094). The bar is 500 significant lines; this is 464 over it, 1.93\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":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketHandoffTransition.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"997cb5f3951515c974b3eaa4ac94ef85d470cb563f86949525095b57acbb7da0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatService.processConversation: MethodTooLong \u2014 processConversation runs 191 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 91 over it, 1.91\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ChatService.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbafed5397e66d90a6b1567858b4fb54b961f00305ed23d533a0d47ab0255f48"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DailyView: TooManyMethods \u2014 56 methods, declared across 5 files: UI/DailyView\u002BStandup.swift (20), UI/DailyView\u002BWorkflow.swift (19), UI/DailyView\u002BAccess.swift (12), UI/DailyView\u002BProvider.swift (4), \u002B1 more file(s). 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":"Dayflow/Dayflow/Views/UI/DailyView.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"4284aacd40064b90f3f14643376fa12fe0a73ed60c00ceb2c23e531d1bf64264"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/SupportChatWebView.swift: FileTooLong \u2014 930 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 430 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":"Dayflow/Dayflow/Views/UI/SupportChatWebView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2219e3c5972a719215f701edcbf05b60fc2e021566bd4a232da69a9247b75fe1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/SettingsAccountSection.swift: FileTooLong \u2014 919 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 419 over it, 1.84\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":"Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0243dde7be1e62e4432ff2b6b45e18e106bc30f5d6c4901e940a11b339d8e5b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WhatsNewView: ClassTooLong \u2014 730 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 330 over it, 1.83\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/WhatsNewView.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"752144decec9f4d8619375280f3175e692bed99105422b62f89d468f501cb76c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DailyBrief/DailyBriefGenerator.swift: FileTooLong \u2014 903 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 403 over it, 1.81\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":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a721c5a4188638b5b220014d58ec5a257ef9ca706a71f6eeacad93a464196ffb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AI/LLMService.swift: FileTooLong \u2014 872 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: LLMService (97-1247). The bar is 500 significant lines; this is 372 over it, 1.74\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":"Dayflow/Dayflow/Core/AI/LLMService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0918a45fc3cc7bf78947f875be6cc4970a28bde7bdd1a6db867bfafe46b1cc05"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DailyRecapScheduler.runCheck: MethodTooLong \u2014 runCheck runs 172 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 72 over it, 1.72\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DailyRecapScheduler.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"1460733b7b127baf64d41800fdd4d7f044306bb02f1ec45484d3619e4bed8961"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProvidersSettingsViewModel: TooManyMethods \u2014 51 methods, declared across 2 files: Settings/ProvidersSettingsViewModel.swift (38), Settings/ProvidersSettingsViewModel\u002BPromptOverrides.swift (13). 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":"Dayflow/Dayflow/Views/UI/Settings/ProvidersSettingsViewModel.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"caeede0f6a1988d9f2c6a18d097946f03fdd35a81df5ee041bbd5331ed738147"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodexProvider.transcribeScreenshots: MethodTooLong \u2014 transcribeScreenshots runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/CodexProvider\u002BTranscription.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2fd22df23074ffc8177fd9a2149c0f173549ed17852467e8fff7b59b2ce947a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: System/DayflowAuthManager.swift: FileTooLong \u2014 846 significant lines (blank, comment-only and punctuation-only lines excluded), about 62% of them inside a single declaration: DayflowAuthManager (286-1062). The bar is 500 significant lines; this is 346 over it, 1.69\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/System/DayflowAuthManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae40d80970af6278aa408273d50bbd618e0e02d7f12180d6f1c616c0f913b250"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GeminiDirectProvider.transcribeVideoData: MethodTooLong \u2014 transcribeVideoData runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ba9cf94b566481c25e8dd9fe3d4c41b2871549da72cdf91492c6bf37ba0bce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DailyBrief/DailyBriefStore.swift: FileTooLong \u2014 816 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: DailyBriefStore (21-1324). The bar is 500 significant lines; this is 316 over it, 1.63\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed40abfa8047f71eb5818253434938c105a295539df8af74e1d2435bcc39713a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DayflowTheme.lightPalette: MethodTooLong \u2014 lightPalette runs 163 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Utilities/DayflowTheme.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c94a9fe46e92f883712da4763435adcc62662f9633d0cc77efe3644d331e1d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DaySummaryView: ClassTooLong \u2014 646 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 246 over it, 1.62\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/DaySummaryView.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ed0efacfa518ad1ca6f2b6e48d2a53519a580bf5e8ebd897c88c8cf607efac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Recording/StorageManager\u002BTimelineCards.swift: FileTooLong \u2014 799 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 299 over it, 1.60\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a6215f758ecfff1577e5522858bcc0b746b389f086dc25180f780e008ad625"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DayflowTheme.darkPalette: MethodTooLong \u2014 darkPalette runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Utilities/DayflowTheme.swift"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"73cef05f8e6d01fa55a899ee52f779875c362f8966cad934a91557b104fcb500"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Condenser: ClassTooLong \u2014 631 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 231 over it, 1.58\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"407cd77ada62b92124154e1a7e9585fb73acdcc7f2d420471e3e0e3e09eceb88"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DocketHandoffDirector: ClassTooLong \u2014 628 significant lines (blank, comment-only and punctuation-only lines excluded), 49 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":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketHandoffTransition.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f01f2a0441db5cd5defbfcc9534855808e5da180bcff433e6ff5d98bfacfde"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DailyWorkflowGrid.body: MethodTooLong \u2014 body runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyWorkflowGrid.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"321ec3dbeca997337375d429bf09aaf051a283eb99c76a570a3868d0106ef48c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ColorOrganizerRoot: ClassTooLong \u2014 621 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 221 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":"Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"559c6060c18fd6b77567279c0c85b84a25f65d2e222b33f9edf54a48ccfabc1a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ScreenRecorder: ClassTooLong \u2014 619 significant lines (blank, comment-only and punctuation-only lines excluded), 28 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":"Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"183bb2c712424701dc85138e4361cb77ecf135d59cdb72870edd131c716da63e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VideoPlayerModal.body: MethodTooLong \u2014 body 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":"Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e081a37eaf774891c5e53c9636573480d1acd6926ca0cd7c577deba9ce0aae"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LLMProviderSetupView: ClassTooLong \u2014 610 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 210 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"42352ad4eddc82969c94dcc02a2acbf9297fd69199ce6b9d4ac531f8cbbf2227"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProvidersSettingsViewModel: ClassTooLong \u2014 607 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 400 significant lines; this is 207 over it, 1.52\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Settings/ProvidersSettingsViewModel.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c680cb6edea55cb41067cb67578e15ffa6d46d554cae75a2fb9d1ff8e23802"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Weekly/WeeklyView.swift: FileTooLong \u2014 749 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 249 over it, 1.50\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Weekly/WeeklyView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53c7bc682609ece210597f680845a0498689bb4efeede411e1a8f90c0292758"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AnalysisManager: ClassTooLong \u2014 596 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 196 over it, 1.49\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ddf29a59cf4bbabb7c99df7f5e9dd9b2c3b8478d22b5840c99b2ef93ac503b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WeeklySankeyModelFactory.build: MethodTooLong \u2014 build runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd87775c017bb2fe1cdaca1b68d560c6d065c9064b9573f93fa829a2c34d1c7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DayflowBackendProvider.generateTimeline: MethodTooLong \u2014 generateTimeline 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":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4a378658a3a666b2d58af74cd38850dd3426d2a2dd2b65bf4a08467b6bdc1c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WeeklyInteractionGraphLayoutBuilder: ClassTooLong \u2014 580 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 180 over it, 1.45\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphLayout.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf2ea3e33a1dbae45a319fb7cf96b17a8ef9027904c2baf1c728dd68024693f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Coordinator.handle: MethodTooLong \u2014 handle runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Flow/FlowWebView.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"033c7ae5d180f87ce95535bf741de438bf86ced68279eeb547123b6d61cdc311"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Components/DayGoalHeader.swift: FileTooLong \u2014 710 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 210 over it, 1.42\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/DayGoalHeader.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46cfcf54de3db6dcc5ea911f6a5dccaeff1dda34d3db9dd1a1e0c3b196688bad"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OnboardingFlow.body: MethodTooLong \u2014 body runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"658a55e9679e4aca8f1a8d0e02d9bffc40a97ce986365dd1e472529e87147e8f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StorageManager: ClassTooLong \u2014 560 significant lines (blank, comment-only and punctuation-only lines excluded), 115 methods. The bar is 400 significant lines; this is 160 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5ecbee10f5f0caba33ee131b6ba60aeae5fe0366484042a79fbd9d4facd0ce"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DayflowAuthManager: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/System/DayflowAuthManager.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb420fe412db4fc682975c0a5930fb58433ee21c60a3a8e55ef94ad68407b20e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OllamaProvider.callChatAPI: MethodTooLong \u2014 callChatAPI 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":"Dayflow/Dayflow/Core/AI/OllamaProvider\u002BNetworking.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f647514c760f0f8c9a03a4a1ec4efabbfe27ab293abc55321c65f3319ebe109"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WeeklyInteractionGraphLayoutBuilder.layout: MethodTooLong \u2014 layout 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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphLayout.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2aee5e65a75c6f6d376300db2acaa0f7c722f4fced284d91f290ece93401a6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WeeklySankeyModelFactory: ClassTooLong \u2014 547 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 147 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"32128002d9ac258daacdc3721f2708de2c3029f6f21f7b078f583e1cf7dfddd8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClaudeProvider: TooManyMethods \u2014 41 methods, declared across 7 files: AI/ClaudeStrictJSONParser.swift (10), AI/ClaudeProvider.swift (7), AI/ClaudeProvider\u002BTimeline.swift (6), AI/ClaudeProvider\u002BActivityCards.swift (5), \u002B3 more file(s). The bar is 30 methods; this is 11 over it, 1.37\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9f328513936b1ca5056e23ecf3c4ea0f597c7eca7ced7b454dd639c4847a61"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CanvasTimelineDataView: ClassTooLong \u2014 546 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 146 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":"Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa18f7ef4cae7b1991f76ad9a599c8efe3f912ac89ab92d5845593eba15229e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Components/DaySummaryView.swift: FileTooLong \u2014 674 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: DaySummaryView (28-940). The bar is 500 significant lines; this is 174 over it, 1.35\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/DaySummaryView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1564ea5eb87b35b43ad87ae83e1df92c281cac3a78038238334e6d77ccb40a95"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WeekTimelineGridView: ClassTooLong \u2014 534 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 134 over it, 1.34\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/WeekTimelineGridView.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e5d8f52980a6a6f96b4ddbfe12e0ba15dc6a2401395f6e820ac74a60cc2564"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AI/DayflowBackendProvider.swift: FileTooLong \u2014 665 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: DayflowBackendProvider (191-912). The bar is 500 significant lines; this is 165 over it, 1.33\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc753758fce4e58b12b7186b674ffe1f9dadda2354987cb81dded11d5d70654"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Recording/ScreenRecorder.swift: FileTooLong \u2014 661 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: ScreenRecorder (87-1076). The bar is 500 significant lines; this is 161 over it, 1.32\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08471fd0159e48c61e38965c5e5869421372eb3ce400d93cbdd9fb8e4309988"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DayflowBackendProvider: ClassTooLong \u2014 528 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 128 over it, 1.32\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ee895a512699e67e32833314dd995005fc768b86581feace382aff5e38f122"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClaudeProvider.transcribeScreenshots: MethodTooLong \u2014 transcribeScreenshots 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":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTranscription.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cdd6f87f1453316fab4b200118811e29305721ab919b13020feae755187079f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DayflowAuthManager: ClassTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 127 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":"Dayflow/Dayflow/System/DayflowAuthManager.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"20850b1f3685dc4ef6e33c589e9c95f162684d50160c8676a7c2ed28200086e3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DayflowBackendProvider.transcribeScreenshots: MethodTooLong \u2014 transcribeScreenshots 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":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"74671e839399123464c00327dd8137e6ef7129d05a472551275bd32ee7644baa"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DailyRecapGenerator: ClassTooLong \u2014 522 significant lines (blank, comment-only and punctuation-only lines excluded), 33 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":"Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3d899868a833761d9a6e2616a76b413c8b6300251585915824d101492cd2a9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatCLIProcessRunner: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"74013e321560b0f2332133ffc32cf5bdf6380dfbb2207e25d0f1b3bce4ebeb89"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/SettingsProvidersTabView.swift: FileTooLong \u2014 650 significant lines (blank, comment-only and punctuation-only lines excluded), about 67% of them inside a single declaration: SettingsProvidersTabView (4-628). The bar is 500 significant lines; this is 150 over it, 1.30\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Settings/SettingsProvidersTabView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e182aafa4689950e918a68300f43e81702e9a0170486f2815a723aa96172427"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Docket/DocketDeckView.swift: FileTooLong \u2014 640 significant lines (blank, comment-only and punctuation-only lines excluded), about 63% of them inside a single declaration: DocketDeckView (17-614). 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":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketDeckView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86b212d24fd85e7769949b55ba049f45380c95727a5b7c6764123d022d4f00a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OnboardingCategoryPreset.categoryDefinitions: MethodTooLong \u2014 categoryDefinitions 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":"Dayflow/Dayflow/Models/TimelineCategory.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c25e34ccddfcb8b6e8cd494d9cdc9dd9bc187cf3360ca38bd5abae0a9f9b86d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/CanvasTimelineDataView.swift: FileTooLong \u2014 634 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: CanvasTimelineDataView (39-851). The bar is 500 significant lines; this is 134 over it, 1.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":"Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef4cdd95abe4e0b28552d69e07d5539b47c8e156a1f742e2bffa6dffb11210b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TimelineReviewOverlay: ClassTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 104 over it, 1.26\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/TimelineReviewOverlay.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d57065c48d69cea2d0234654fe43ab756e01a3961aab1ea9d13701f3a1406a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatCLITestView.runTest: MethodTooLong \u2014 runTest 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":"Dayflow/Dayflow/Views/Onboarding/ChatCLITestView.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"07fcee2ae6e366ad04114e948700095caefa6a363bd2b146c67a4c045bb75986"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Components/TimelineCardColorPicker.swift: FileTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ColorOrganizerRoot (6-893). The bar is 500 significant lines; this is 129 over it, 1.26\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ca3ab9b400ae8531763d7cbb20c3b1171801c86da1809996f71040105e132c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SupportChatPage: ClassTooLong \u2014 501 significant lines (blank, comment-only and punctuation-only lines excluded), 0 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":"Dayflow/Dayflow/Views/UI/SupportChatWebView.swift"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d92dd654fdf48807fb94b16006ffb95b5cba6cb318528ac0917f8c3a06dd0e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/ProvidersSettingsViewModel.swift: FileTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: ProvidersSettingsViewModel (5-842). 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":"Dayflow/Dayflow/Views/UI/Settings/ProvidersSettingsViewModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ecabc68af4a524f3cd3027532a655c4bcc82f3990ff3ca54a8d9917a395ba6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClaudeProvider.generateTimeline: MethodTooLong \u2014 generateTimeline 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":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"54683911006c97a193259a10a7631fb208c09c89c4c3096358d1ea3fcae3e5a4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ActivityCard: ClassTooLong \u2014 498 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 98 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":"Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"271f931c7bb7cfa1654c1b6d7a1cfdc2b6d28485dff41ed3e7e5094e88cd8716"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DailyBrief/DailyBriefSections.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":"Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefSections.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a39ddd4811cd99462674ac1b3c49c9243c4aa9551b1d7beed263d25175a97aaf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodexProvider.generateActivityCards: MethodTooLong \u2014 generateActivityCards 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":"Dayflow/Dayflow/Core/AI/CodexProvider\u002BActivityCards.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7deef3461aed32a548c0a2fd76141c2d4815edb6cbffcc15a864f4dd3fddf2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Onboarding/LLMProviderSetupView.swift: FileTooLong \u2014 613 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: LLMProviderSetupView (5-865). The bar is 500 significant lines; this is 113 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":"Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"640e9d9f3defd933c92f17f3921a1edf9fdd659b5b27a0e78b1f2c4edce516f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Analysis/AnalysisManager.swift: FileTooLong \u2014 612 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: AnalysisManager (29-978). The bar is 500 significant lines; this is 112 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":"Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04665808d830d5515bf86ee742a967a20e7019062b6c1d78f9b579cb6d200eb1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodexProvider.generateTimeline: MethodTooLong \u2014 generateTimeline 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":"Dayflow/Dayflow/Core/AI/CodexProvider\u002BTimeline.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"953bd6eafdfb475d6c2b21d9e9000e018f15caf68f6cdbbde1941be5a812b1af"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sections/WeeklySankeyModelFactory.swift: FileTooLong \u2014 607 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: WeeklySankeyModelFactory (3-704). The bar is 500 significant lines; this is 107 over it, 1.21\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a728eeaa4b0a471577f9e17125bf799d86fbed9ac1053428919f1a677c730ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DailyBrief/DailyBriefPageView.swift: FileTooLong \u2014 606 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 106 over it, 1.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3049769fc787bfa3e51ff3e010cbffb1e8fbb91ffc557a9a17277ce39a6e05e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sections/WeeklyInteractionGraphLayout.swift: FileTooLong \u2014 603 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: WeeklyInteractionGraphLayoutBuilder (3-794). The bar is 500 significant lines; this is 103 over it, 1.21\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphLayout.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f579351818e2dc9b876ddf0f890640ffab380d5bc73a8225b07af03f939d1c93"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DayflowProOnboardingSignInPanel: ClassTooLong \u2014 481 significant lines (blank, comment-only and punctuation-only lines excluded), 20 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":"Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"804a11607e1a2d9e0ebc48fd36d096d045b8491a78d834dd8facfcd0dec51f4b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatService: ClassTooLong \u2014 477 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 77 over it, 1.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ChatService.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"229c9ba2fa9bf823a4c56b65624cced47b94a42a53ef4851df71e84befbda4b1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VideoProcessingService.generateVideoFromScreenshots: MethodTooLong \u2014 generateVideoFromScreenshots 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":"Dayflow/Dayflow/Core/Recording/VideoProcessingService.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b857797129a465a613b9c63ff26ad9f7deac6d8437d55abfabe6c4dc2e52e5df"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatView.betaLockScreen: MethodTooLong \u2014 betaLockScreen 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":"Dayflow/Dayflow/Views/UI/ChatView\u002BContent.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"148f269841f23ce3fd2becb8b95075e44844b8466ce34c03787e6db12a0b292f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DayflowApp.body: MethodTooLong \u2014 body runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/App/DayflowApp.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db7ed720868a40f7a9db9e6a1e2b3a6e930c3d7f401a4c109620fd5dc284b0a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Onboarding/OnboardingFlow.swift: FileTooLong \u2014 587 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 87 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9aab55a6a2ffc45834a74772063c58c8d9df11a4cfdc1d68f830fed1fe6107e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/VideoPlayerModal.swift: FileTooLong \u2014 587 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 87 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf5dac9dbf76eeea29c48c9df4a026803e24819be06c50c5ec319dad87c077d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AI/DailyRecapGenerator.swift: FileTooLong \u2014 581 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: DailyRecapGenerator (70-824). The bar is 500 significant lines; this is 81 over it, 1.16\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e2f935c4eca33768d27c41b25e651cc673811899bdbd20a7770d27d31d79e1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TimelineFailureClassification.baseToastContent: MethodTooLong \u2014 baseToastContent 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":"Dayflow/Dayflow/Core/AI/TimelineFailureClassifier.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f68552ae9cd322b7a9b0f1f9f12bb5b21fd40e2c60cc4161d8f91c4d596461d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: MainView/WeekTimelineGridView.swift: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: WeekTimelineGridView (49-872). The bar is 500 significant lines; this is 69 over it, 1.14\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/WeekTimelineGridView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"597107daf9006acbeea6d47e9f3204b96b65fb44d7ee65a6051cf244e9f41609"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FlowDistractionAgent: 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":"Dayflow/Dayflow/Core/Flow/FlowDistractionAgent.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd691c5c421cf83bd779c0c71d4bc7a4834965c103c344ab0e337c7a7c8aed2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Recording/StorageManager.swift: FileTooLong \u2014 563 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: StorageManager (10-731). The bar is 500 significant lines; this is 63 over it, 1.13\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab438774f2fb123a43c3d35db879a2268157a89b0b0daf8ec66e04ab9ab4caef"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/DailyView\u002BStandup.swift: FileTooLong \u2014 561 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 61 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyView\u002BStandup.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb32134e77090963bf7777de3a0b50ce15c6f944b6bf3ef36039f97db973e54"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DayflowBackendProvider.generateActivityCards: MethodTooLong \u2014 generateActivityCards runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"664d65e5c1ad805a7acfb6aeda2584337a3df5af3d269b9aedec84b24abfc01f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StorageManager.replaceTimelineCardsInRange: MethodTooLong \u2014 replaceTimelineCardsInRange runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8bc9dd547543faff5802e87b19f1c3049656d86f51a3def52934acae23a2fe"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CanvasActivityCard.body: MethodTooLong \u2014 body runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/CanvasActivityCard.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe820398217e9877047957e6f9470879914bb842c8e00ddf248818d5cdad783"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: MainView/Layout.swift: FileTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 56 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":"Dayflow/Dayflow/Views/UI/MainView/Layout.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bceec25eb110973ebbcf4202f96dc70b8b650cb980d312b386fd527cdfbf6a91"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDelegate.applicationDidFinishLaunching: MethodTooLong \u2014 applicationDidFinishLaunching 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":"Dayflow/Dayflow/App/AppDelegate.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"5916d9546df20a95a160c109e2fbcece78f281b0c4aadc2244ae92835859cb5b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/ChatView\u002BContent.swift: FileTooLong \u2014 552 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 52 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/ChatView\u002BContent.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1afbe19a84487b31a4cb5f78e5b7a03222a8692cf99d4b326f644c95bfae15"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DailyRecapGenerator: 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":"Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"562353e291c4f79fc9311fa4a9cd4fc64c50dbb55165fe84e9c5aa895987c0be"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SettingsProvidersTabView: ClassTooLong \u2014 438 significant lines (blank, comment-only and punctuation-only lines excluded), 4 methods. The bar is 400 significant lines; this is 38 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":"Dayflow/Dayflow/Views/UI/Settings/SettingsProvidersTabView.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52dd4829fb546325976c1ab63d0b326fc129b7a1ac46a7ebfce00a7717c93c6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PIIMaskRules: ClassTooLong \u2014 433 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 33 over it, 1.08\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/PrivacyShield/PIIMaskRules.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"278532ed40d18d05a5ac1202ed46ff2a885cfcf3a3622fc86eac1adc1cbcc79c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentPlaybackHost.launch: MethodTooLong \u2014 launch 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":"Dayflow/Dayflow/Views/UI/Agents/AgentPlaybackView.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65b1b00b479e47d3352f645700258ce2b71903cbf6eafb9526f688160ea1e2e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ColorPickerView.body: MethodTooLong \u2014 body runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/ColorWheelPicker.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbbeb98edd90205d9de7201b901db5c621ea1342c6bb9f3222bd5fc276f9da94"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: MainView/ActivityCard.swift: FileTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: ActivityCard (7-719). The bar is 500 significant lines; this is 30 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":"Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e076883fb9b844a076348472c85a6e3a9ebb2cf77290a04c82401615c8a512d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CategoryPickerView.body: MethodTooLong \u2014 body runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/CategoryPickerView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"536c35bb3c8292d364e582ffb0bd1816a12e4cfabc1b6cd90251d2d90e6dd0a7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OllamaProvider.mergeFrameDescriptions: MethodTooLong \u2014 mergeFrameDescriptions 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":"Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4e50d74ade3edb7f43754ffd1a36f1913eee6caf678fe44f5e481d323cb92d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WeekTimelineGridView.loadActivities: MethodTooLong \u2014 loadActivities 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":"Dayflow/Dayflow/Views/UI/MainView/WeekTimelineGridView.swift"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"b007f0bac228e043a39c21bb89c72ff4f9f2c5b17d992d3cd736ec5a336c6a8b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Utilities/DayflowTheme.swift: FileTooLong \u2014 510 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 10 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Utilities/DayflowTheme.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"794d62ed7e1e4911571100aa174b1fe4279da0d5c962470d776eba5e0be7ecf9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Prototype/DayflowProOnboardingSignIn.swift: FileTooLong \u2014 510 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: DayflowProOnboardingSignInPanel (48-740). The bar is 500 significant lines; this is 10 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":"Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d2f61abdd53a309ee95ddf74482cbf446a87716b32d3d59b49e53714074fca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/TimelineReviewOverlay.swift: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: TimelineReviewOverlay (9-693). 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":"Dayflow/Dayflow/Views/UI/TimelineReviewOverlay.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a14e57567fe4bcaf7d364da7fc7acaceec3c9114160b36736c44d1e10a2e42"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DayGoalHeader: ClassTooLong \u2014 407 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 7 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":"Dayflow/Dayflow/Views/Components/DayGoalHeader.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee05e08e7ace7ce1e350ae6a3aefea5ec3bb5000a21d8959572fb843415b1450"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DocketDeckView: 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":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketDeckView.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf744c19c8844fbc2a241baf513e4863fffcc0c08271166a53fb66ca41b8a385"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FlowSessionTimeline: ClassTooLong \u2014 403 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 3 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":"Dayflow/Dayflow/Core/Flow/FlowSessionTimeline.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b579cedc4ab5855ae1773b6e9d439ed8472e64970c6a97b5afadc82cdb985e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 51 shared lines): Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:228-362 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:380-555 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:560-752 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:754-900 \u2014 These 4 members are variants of one another: a block of 51 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e367b72325679dac6395f1f7e88e78a4d0ee78e4b27ce31e0e655c1a3ec1fd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (222 shared lines): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:334-614 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift:259-568 \u2014 These two members are variants of one another: 222 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"3772e9d0528e00a42c6ae3024bbca9494d2ff1b73722a7b46096b18c96f7a798"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (72 shared lines): Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift:105-238 | Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift:240-369 \u2014 These two members are variants of one another: 72 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":"Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d402dfb6b2ce5b3d0cb90008a669a3c6338cb608f3696f28c0149c01a70fb43"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (64 shared lines): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift:17-172 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BTimeline.swift:17-167 \u2014 These two members are variants of one another: 64 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ccb41a2251071cb37d4de5f606192f4657f789c2b6574f79e0703f7ea668fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (57 shared lines): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BActivityCards.swift:39-155 | Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTranscription.swift:12-176 \u2014 These two members are variants of one another: 57 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":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BActivityCards.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7373daa460c9f5a0b97dedfe694419c4480e7c59885224111300d10c8b6a0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (177 corresponding lines): Dayflow/Dayflow/Core/AI/ChatPromptBuilder.swift:31-207 | Dayflow/Dayflow/Core/AI/ChatPromptBuilder.swift:209-385 \u2014 These two members are one piece of code written twice and then edited apart: 177 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ChatPromptBuilder.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"524543570eca198de1b34e20c34a267d99bd06f97168fc9fd69309851805c043"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:262-286 | Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:325-349 \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":"Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"dacaf00f1913603b747f2242bc6398c35295b69927e671491e3392710dfec7a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift:81-195 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift:197-258 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift:292-387 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift:389-506 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift:299-450 \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":"Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3209b321f7f7b7bc123e712d03fea537236d9f697a2ce8a1413f311ea4b6572"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:387-435 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:476-553 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:555-617 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:803-847 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:851-905 \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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"a467f6429c9025e0b2c2fc22b9dd0c889addcb59821669af695224d7e0a91601"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift:256-282 | Dayflow/Dayflow/Views/Components/DayCategorySelectionEditor.swift:111-137 | Dayflow/Dayflow/Views/Components/DayGoalSetupComponents.swift:359-382 | Dayflow/Dayflow/Views/UI/ChatStylesAndDebug.swift:132-154 | Dayflow/Dayflow/Views/UI/Settings/SettingsBrowserPrivacySection.swift:184-203 \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":"Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96845139bca7523d454890713112f22e145a07087c8b466b9e4837a23478ab5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift:562-637 | Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:162-219 | Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:220-275 | Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:613-839 | Dayflow/Dayflow/Views/UI/VideoThumbnailView.swift:83-137 \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":"Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9fac3424178075109b9fb4107b6a7c25fc393bbc0251fc58667eeeafa74f10"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BPrompting.swift:32-48 | Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift:233-251 | Dayflow/Dayflow/Core/AI/OllamaProvider.swift:212-230 | Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift:79-95 \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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BPrompting.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"421483f954db30c8d3296e7c73425cad61bf8bbadce7b8f475e32acb1cde7393"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift:620-627 | Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift:268-275 | Dayflow/Dayflow/Core/AI/OllamaProvider.swift:259-266 | Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift:32-39 \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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb8a893d9f4937c5f299a9a538f077952ffbb6d54be62a2ce0de1fccaa02e84"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Dayflow/Dayflow/Core/Flow/FlowEarlyBirdController.swift:140-164 | Dayflow/Dayflow/Core/Flow/FlowOverlayController.swift:110-133 | Dayflow/Dayflow/System/PermissionHelperPanel.swift:449-468 | Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefMenuBarNotice.swift:134-164 \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":"Dayflow/Dayflow/Core/Flow/FlowEarlyBirdController.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"eecb97a00a6eb6371928e0e84c5bf32f158de681c2791b36554f38a14b6a540c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Dayflow/Dayflow/Core/Weekly/WeeklyDashboardBuilder.swift:490-499 | Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift:165-176 | Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift:458-467 | Dayflow/Dayflow/Views/UI/DailyWorkflowComputation.swift:405-410 \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":"Dayflow/Dayflow/Core/Weekly/WeeklyDashboardBuilder.swift"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d188a5b0e4370c1ce6ee03c6af4821369af0afcd93eb1c604589f09a95b0512"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift:284-306 | Dayflow/Dayflow/Views/Components/DayCategorySelectionEditor.swift:139-161 | Dayflow/Dayflow/Views/Components/DayGoalSetupComponents.swift:384-406 | Dayflow/Dayflow/Views/UI/ChatStylesAndDebug.swift:156-173 \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":"Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3ff5e6af1f4fefa5f25884ba2b6574e0a8e690ab0409928e4cb2cb3bd7a6ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Dayflow/Dayflow/Views/Components/ReferralSurveyView.swift:180-202 | Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:756-792 | Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:74-158 | Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeRoleSelectionStep.swift:27-129 \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":"Dayflow/Dayflow/Views/Components/ReferralSurveyView.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1127b66fed7af900badcdc7f6aef31fcd6da8d80617206cf7433e76124de6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeChooseProviderStep.swift:317-325 | Dayflow/Dayflow/Views/UI/Agents/AgentsBriefingView.swift:72-86 | Dayflow/Dayflow/Views/UI/Agents/AgentsCardsView.swift:85-119 | Dayflow/Dayflow/Views/UI/Agents/AgentsCardsView.swift:121-137 \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":"Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeChooseProviderStep.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"92721421f83f0c53a897e49d605a47fa6bee767134f52d0fa98f4c8caa8cbd4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Dayflow/Dayflow/Views/UI/Agents/AgentsOverviewView.swift:291-311 | Dayflow/Dayflow/Views/UI/Settings/SettingsProvidersTabView.swift:640-715 | Dayflow/Dayflow/Views/UI/SettingsView.swift:206-228 | Dayflow/Dayflow/Views/UI/WhatsNewView.swift:937-992 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Agents/AgentsOverviewView.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd65cadfa59c13e687cad381726f7c73492cdb4fe29b3bc84a5356e9e3f0ad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:162-219 | Dayflow/Dayflow/Views/UI/TimelineReviewChrome.swift:13-25 | Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:220-275 | Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:613-839 \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":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"959f0c16b14133b460b7577cc3d98e85cacaa920f1a2e304fb962d693f2b7b27"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift:157-203 | Dayflow/Dayflow/Views/UI/Settings/SettingsBrowserPrivacySection.swift:34-47 | Dayflow/Dayflow/Views/UI/Settings/SettingsBrowserPrivacySection.swift:86-112 | Dayflow/Dayflow/Views/UI/Settings/SettingsBrowserPrivacySection.swift:114-162 \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":"Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ed4b34a7797d70937e41d53f0452d4288ca39ec07fdf32b289c209a7eed34c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Dayflow/Dayflow/Views/UI/WhatsNewView.swift:379-467 | Dayflow/Dayflow/Views/UI/WhatsNewView.swift:508-604 | Dayflow/Dayflow/Views/UI/WhatsNewView.swift:677-711 | Dayflow/Dayflow/Views/UI/WhatsNewView.swift:716-783 \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":"Dayflow/Dayflow/Views/UI/WhatsNewView.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b8003c691fda4402963ef92319248290efe74552ce954d04ebeab7b28109e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (199 corresponding lines): Dayflow/Dayflow/Utilities/DayflowTheme.swift:235-439 | Dayflow/Dayflow/Utilities/DayflowTheme.swift:450-648 \u2014 These two members are one piece of code written twice and then edited apart: 199 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Utilities/DayflowTheme.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f5bef5d2abad11e5f83cd89ac77e178de467d5510bc40f96aa74ff837fc004"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (111 corresponding lines): Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:510-620 | Dayflow/Dayflow/Views/UI/ScrubberView.swift:189-306 \u2014 These two members are one piece of code written twice and then edited apart: 111 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"3010f3fe4603067ac36b3d43c88a1cc7c84bca1693f11f5f054680d42f810494"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (91 corresponding lines): Dayflow/Dayflow/Core/Recording/StorageManager.swift:274-364 | Dayflow/Dayflow/Core/Recording/StorageManager.swift:366-456 \u2014 These two members are one piece of code written twice and then edited apart: 91 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acf864a0742951d4952e97c3e96b92e888558406f57264963b540f2e737779d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (99 corresponding lines): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:744-868 | Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift:147-245 \u2014 These two members are one piece of code written twice and then edited apart: 99 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbd730217d0d8a2b0867e9e33f29a9114fbb4fd543bbfce04d2dc2481a566d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (82 corresponding lines): Dayflow/Dayflow/Views/UI/MainView/TimelineActivityLoader.swift:95-183 | Dayflow/Dayflow/Views/UI/TimelineReviewTypes.swift:160-241 \u2014 These two members are one piece of code written twice and then edited apart: 82 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/TimelineActivityLoader.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"141125dd9119bbcdfc6772f2c45b66967efaf9ac4644be15e528de5dbf66220e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BText.swift:55-106 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BText.swift:55-106 \u2014 These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BText.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"457e7284a09aeb1129290777c3febc1fe0ef1a2a997c89d4a9d5963edddf8b5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (83 corresponding lines): Dayflow/Dayflow/Core/AI/GemmaBackupProvider.swift:174-256 | Dayflow/Dayflow/Core/AI/OllamaProvider.swift:100-210 \u2014 These two members are one piece of code written twice and then edited apart: 83 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3962189afc622c105cb1d696e3dcee467fd318689b6ada054ed02d1c441eccc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BFrames.swift:204-273 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift:161-238 \u2014 These two members are one piece of code written twice and then edited apart: 70 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BFrames.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"243cbdb6fa54ac2fa4b4cde42c322e1aafdba872e2a34096edbb9d208e948c82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.swift:146-188 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextShiftComparisonSection.swift:114-156 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18542a464b453a1ac14a2de800a8e0eb5e35c8a174a806cf16a65271380313d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift:176-223 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BTimeline.swift:190-252 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c9502eff7913a352195aac8b1d0595590349f30023e9caf6604d2ce5c324e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift:438-488 | Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift:534-596 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"096c399ea637f32f3c6ea5974fdfe81fc06dc6864c7c38fec54c199117625b13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BFrames.swift:275-328 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift:240-297 \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":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BFrames.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"09541373e7d2a3152ff48b7e2c515f5fd4380aa4f05ce4cf4aa0788c5492fa5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): Dayflow/Dayflow/Views/Components/CategoryDonutChart.swift:96-166 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyDonutSection.swift:128-189 \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":"Dayflow/Dayflow/Views/Components/CategoryDonutChart.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"10051402c4021cf2d6dbc09234d694f860e9ce45e1ceaa52790ce6e9a0ffa0cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BPrompts.swift:7-78 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BPrompts.swift:11-65 \u2014 These two members are one piece of code written twice and then edited apart: 55 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BPrompts.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"872b764fa3825cbfdffe64c76f8466f032c977bea90f80e437e8f2e2fcf472d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:870-916 | Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift:247-284 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"78788725c6abd6e0b8f707f7d605644b04ce5aeba9114d26494d262ccb7076cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift:640-685 | Dayflow/Dayflow/Views/Onboarding/SetupContinueButton.swift:28-76 \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":"Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aca05738a84319fb952141b28692794692a5bfe6e2c62bdf4436520f96f9387"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift:276-336 | Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift:338-403 \u2014 These two members are one piece of code written twice and then edited apart: 61 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"f893dbe43a39852d20541bbbb6859986a174bf18f1d0ac96db3995f050034363"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Dayflow/Dayflow/Core/Recording/StorageManager\u002BReprocessing.swift:6-57 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:7-44 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BReprocessing.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"84527f7438662d96472a6beaf03eed7689fadd90a85578831ffa016183f81f4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:719-752 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:763-800 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d89bf5fc3286d7905eb52ea8e599e58c1e1c435944dcf7d9359c53d5f771aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Dayflow/Dayflow/Views/UI/ProgressRingView.swift:298-326 | Dayflow/Dayflow/Views/UI/ProgressRingView.swift:330-364 \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":"Dayflow/Dayflow/Views/UI/ProgressRingView.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1f6c197140f552ea22308bba23ff111e0bd9b025e9391fbd0f43a0f0ed5c8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): Dayflow/Dayflow/Views/UI/ChatCharts.swift:476-516 | Dayflow/Dayflow/Views/UI/ChatCharts.swift:518-558 \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":"Dayflow/Dayflow/Views/UI/ChatCharts.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00eadc762d3ab8c03ec4f5c78db76f3ff0cba2ffe015883fcf4e79e63867cac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyFocusHeatmapSection.swift:183-209 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyWorkflowSection.swift:144-177 \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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyFocusHeatmapSection.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0aedb4c9e06e7220cd323236b3232d0919fb2266df353cac45a434a150cdb1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphGlyphs.swift:149-189 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphGlyphs.swift:212-242 \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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphGlyphs.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"892cd4874fbc02ed9d73e58db4b65e52546f6f7c52dc90566ed3bfdc2fccfed9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BPrompting.swift:4-30 | Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift:49-77 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BPrompting.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"f599afc141f0c148f0f6239946af57c2e0455aa3b9a9322e9e2d92796b68bc6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyComponents.swift:443-464 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyComponents.swift:466-492 \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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyComponents.swift"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"2659c50513ee4b2f64ab104ade6d4da0f34312def0cd120372d3db19947c85a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Dayflow/Dayflow/Core/AI/ChatToolExecutor.swift:130-164 | Dayflow/Dayflow/Core/AI/ChatToolExecutor.swift:168-207 \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":"Dayflow/Dayflow/Core/AI/ChatToolExecutor.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac24f7bbea172209c20383e4eebf8eb07c70cae2a6662159b8993752361a4e80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineReview.swift:210-240 | Dayflow/Dayflow/Views/UI/TimelineReviewOverlay.swift:642-668 \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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineReview.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc81d3b0e82d81dfe228e29f0051b38d4a0ff958157fc364b45645766bda024"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Dayflow/Dayflow/Views/Components/ReferralSurveyView.swift:136-169 | Dayflow/Dayflow/Views/UI/WhatsNewView.swift:469-506 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/ReferralSurveyView.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"127558d515fe858098cddf4a56f846a1b8f0881f587ebbce755d8ec1e5612022"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 36\u002B corresponding lines): Dayflow/Dayflow/Views/UI/DailyView\u002BWorkflow.swift:451-486 | Dayflow/Dayflow/Views/UI/MainView/Layout\u002BTimelineHeader.swift:62-97 | Dayflow/Dayflow/Views/UI/Weekly/WeeklyHeader.swift:44-79 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 36 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyView\u002BWorkflow.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"e916612c4b1ceaf3d0df180b6689d8f77d28bbacf4c75f089a9756177155cc23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift:339-378 | Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:1464-1492 \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":"Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"026969117de90fc60f308b82787b8204bfac9e5e28240a7f91c0e683d8699eb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Dayflow/Dayflow/Views/Components/DayGoalFlowView.swift:472-516 | Dayflow/Dayflow/Views/Components/DayGoalFlowView.swift:518-549 \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":"Dayflow/Dayflow/Views/Components/DayGoalFlowView.swift"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea33bc2f4ab10ab2c71e899ec6995fe540510b6bcd945042fd3997bec808972"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Dayflow/Dayflow/Core/Recording/StorageManager\u002BReprocessing.swift:59-97 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BReprocessing.swift:156-191 \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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BReprocessing.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"96954131bc2c948f99dd1184d4dfd24b431a6846f9055a4c48e4e554192a0da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.swift:71-103 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.swift:380-409 \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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfd0dddf1db4d20e381d6c772e92853f9783ab894bb4755f7dc6fa81fbea8c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift:289-319 | Dayflow/Dayflow/Views/UI/MainView/WeekTimelineGridView.swift:354-375 \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":"Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5c1d6a654dec696850366383bb3ff3849383a0381a0b732f768dfd6460e1b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Dayflow/Dayflow/Views/UI/Settings/SettingsReferralProgramCard.swift:286-309 | Dayflow/Dayflow/Views/UI/Settings/SettingsReferralProgramCard.swift:317-348 \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":"Dayflow/Dayflow/Views/UI/Settings/SettingsReferralProgramCard.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba3cbecd7bcdb260957e9201f9070c14e9e153c52dae17f15169051f8755584c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardStreaming.swift:336-381 | Dayflow/Dayflow/Core/Flow/FlowDistractionAgent.swift:1293-1326 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardStreaming.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"57da1fca38f6864080e3dfdc0e57145db7801efd662922d9894aa5be1ec2fcf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BUpload.swift:129-152 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BUpload.swift:249-269 \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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BUpload.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb6b73779389485f1e5063a1f125eb505bdf032ffd20682c4f127e622b8fac42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift:1027-1049 | Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift:1057-1079 \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":"Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"301e4eac2964ebd766a26c6e11c6e201471b5e0777c74ecb18f0f374c395b5cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Dayflow/Dayflow/System/DayflowAuthManager.swift:632-658 | Dayflow/Dayflow/System/DayflowAuthManager.swift:734-763 \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":"Dayflow/Dayflow/System/DayflowAuthManager.swift"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5cb5496f6b076d48ef94565916612601e76f330a3c838952e0c8e65413cae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Dayflow/Dayflow/Views/Components/DayDistractionSummarySection.swift:34-68 | Dayflow/Dayflow/Views/Components/DayFocusSummarySection.swift:33-64 \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":"Dayflow/Dayflow/Views/Components/DayDistractionSummarySection.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"4819620811df9f1027064e54f87ffd3108e53d9b7728a9a5dec04d42d24db4b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyDonutSection.swift:44-73 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyTreemapSection.swift:36-56 \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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyDonutSection.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7bd7f6989685450678b593a7696013844379c466c1c9106827068cb41cc339"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): Dayflow/Dayflow/Core/AI/ChatMetadataParser.swift:35-53 | Dayflow/Dayflow/Core/AI/ChatMetadataParser.swift:55-75 | Dayflow/Dayflow/Core/AI/ChatMetadataParser.swift:77-97 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"Dayflow/Dayflow/Core/AI/ChatMetadataParser.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0c327311a7614fb7806386e8205362956db186c2aa6c6379f66339ccdecb2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Dayflow/Dayflow/Core/Recording/StorageManager\u002BDailyStandup.swift:63-99 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BDailyStandup.swift:101-133 \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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BDailyStandup.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce3711363097fd88bc972c88542e23ff52e951dee3659301c11e70da84c5190"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Dayflow/Dayflow/Views/Components/DaySummaryView.swift:614-639 | Dayflow/Dayflow/Views/Components/DaySummaryView.swift:641-666 \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":"Dayflow/Dayflow/Views/Components/DaySummaryView.swift"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ebc25c1c7de492a3fc44b5eee7ea15270b4469cb6e8ab0120557098d5861bf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Dayflow/Dayflow/Core/AI/ClaudeStrictJSONParser.swift:83-109 | Dayflow/Dayflow/Core/AI/ClaudeStrictJSONParser.swift:112-136 \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":"Dayflow/Dayflow/Core/AI/ClaudeStrictJSONParser.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4978ac33065ed1479047b683438a99ece3fb33cae28d979b6771e732094c976"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineReview.swift:242-271 | Dayflow/Dayflow/Views/UI/TimelineReviewOverlay.swift:670-692 \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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineReview.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"872f06d1a58c044c326b6a2f27a7e7b7b0e55dd719911f50d923d9d4b72b6c4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift:130-157 | Dayflow/Dayflow/Core/AI/OllamaProvider.swift:232-257 \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":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"58ba4f744dd9d6b8d2b07e048fc744cdf9c483e75ed5bbba393b64f9143e5675"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Dayflow/Dayflow/Views/UI/Settings/SettingsComponents.swift:100-122 | Dayflow/Dayflow/Views/UI/Settings/SettingsComponents.swift:156-183 \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":"Dayflow/Dayflow/Views/UI/Settings/SettingsComponents.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ae8b664a50c5f160765f0280633567ac0adaa4ae33c450cf1a8fe2ba430219"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Dayflow/Dayflow/Core/AgentAccess/CodexMCPRegistration.swift:62-91 | Dayflow/Dayflow/Core/AgentAccess/CodexMCPRegistration.swift:93-119 \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":"Dayflow/Dayflow/Core/AgentAccess/CodexMCPRegistration.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36e9a64f7318bede9db977b401342c8fe1e101c4cf26576b1eced0621970db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:512-539 | Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:541-565 \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":"Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"2978ff0b121d7a235b74f4f91225035663d13404d5186e1ed153d7af4a71757a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Dayflow/Dayflow/Views/UI/Settings/SettingsAgentAccessTabView.swift:369-396 | Dayflow/Dayflow/Views/UI/Settings/SettingsAgentAccessTabView.swift:398-424 \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":"Dayflow/Dayflow/Views/UI/Settings/SettingsAgentAccessTabView.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"15aed97fb328708eee5f764d983e85ab5745fd61671a908708ed4ba159af029b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift:42-62 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift:260-290 \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":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c3028fc4d27c66e473f52b591ae1314aad3f8819748a21c736b4e5309b32ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Dayflow/Dayflow/Core/Recording/StorageManager\u002BObservations.swift:49-76 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BObservations.swift:129-151 \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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BObservations.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"077630e3dd7d39883fd5ed5aad16d539b645cf0fa4025fa875bd09e781d27eb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Dayflow/Dayflow/Views/UI/Agents/AgentThreadCardView.swift:415-432 | Dayflow/Dayflow/Views/UI/Agents/AgentsBriefingView.swift:88-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":"Dayflow/Dayflow/Views/UI/Agents/AgentThreadCardView.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eca537ea565ef7a50aeada856089077d565ddfcf4387de152b570e45e2d3a3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift:258-291 | Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTranscription.swift:178-204 \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":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f80b37713732988d57a984ea8c1a5f48efc828e77578fd9c9092604be910a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): Dayflow/Dayflow/Views/UI/Settings/SettingsBrowserPrivacySection.swift:232-252 | Dayflow/Dayflow/Views/UI/Settings/SettingsComponents.swift:213-239 | Dayflow/Dayflow/Views/UI/Settings/SettingsComponents.swift:248-270 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"Dayflow/Dayflow/Views/UI/Settings/SettingsBrowserPrivacySection.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5e857e7bc027056fe05501d0983af51ceca6b65cbf40355f22d09c53e16169"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:702-721 | Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift:115-130 \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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95deb8f5f9684f1920711adb90d352a10b73fb2da5c6faee347160aef24543a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Dayflow/Dayflow/Views/UI/Agents/AgentsModels.swift:44-52 | Dayflow/Dayflow/Views/UI/Agents/AgentsModels.swift:117-127 \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":"Dayflow/Dayflow/Views/UI/Agents/AgentsModels.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"4967c1ac57408332ac8476aaf087bf0d1c12f171e51ef4351fa2d10526c2b727"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Dayflow/Dayflow/Views/UI/SurveyPromptCard.swift:238-256 | Dayflow/Dayflow/Views/UI/SurveyPromptCard.swift:258-273 \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":"Dayflow/Dayflow/Views/UI/SurveyPromptCard.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"32998da8d40ce3c784f16141d91abd370f97569d12a16125e0f4e1229da13095"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.swift:190-208 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.swift:494-514 \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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f668a44b8623c23cc71116e4b839ea274d108959182f530b12294b32569612"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:723-742 | Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift:132-145 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5a575cf8bc0f6cabceb6fd6ffea596bcdd27dc0b1ba80671e8a76cc01ad2b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyApplicationInteractionsSection.swift:188-204 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyApplicationInteractionsSection.swift:235-251 \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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyApplicationInteractionsSection.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30810d5f4733e721ca168dd01829821bd2f078bd3b38406dc3156d362c3fc8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.swift:123-144 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextShiftComparisonSection.swift:91-112 \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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6cb4578885a29e70cae8961ca7603d19ce358b8423ca4417cb1f3b2cec7e95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Dayflow/Dayflow/Views/UI/Weekly/WeeklyView.swift:770-806 | Dayflow/Dayflow/Views/UI/Weekly/WeeklyView.swift:844-873 \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":"Dayflow/Dayflow/Views/UI/Weekly/WeeklyView.swift"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc37bab877a403909d3d1741c7e668d92fd330140fc5234834918fdf5c5a23f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift:440-450 | Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift:453-464 \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":"Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2f3b12fe17f61dc526dbe1b11a094d73cf379b2dbd6edcf9a08d526fada961"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyFocusHeatmapSection.swift:211-226 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyWorkflowSection.swift:242-256 \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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyFocusHeatmapSection.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b05fbd53320d055d4a1cd5e7209d32d28f1ffa690c2a83885884e4cac868793"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Dayflow/Dayflow/Views/Components/CategoryDonutChart.swift:171-185 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyDonutSection.swift:194-207 \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":"Dayflow/Dayflow/Views/Components/CategoryDonutChart.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f99546b9713de9e280917b3f19f623d761d961b5127d852791217dcbed3116"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Dayflow/Dayflow/Views/UI/BugReportView.swift:92-107 | Dayflow/Dayflow/Views/UI/Flow/FlowView.swift:100-121 \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":"Dayflow/Dayflow/Views/UI/BugReportView.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3568aef5cefb7f0568c1ab4b2c688392eb06d3ce585bf18135aed36df8db0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Dayflow/Dayflow/Views/UI/PausePillView.swift:363-397 | Dayflow/Dayflow/Views/UI/PausePillView.swift:464-503 \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":"Dayflow/Dayflow/Views/UI/PausePillView.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"512ce66579b1bbdcfd41ed4e010fb509e7017131b02988a9c5c771d8ae8c2333"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift:77-92 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BScreenshots.swift:119-140 \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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d42544a17a1fa3da3943ddd692ef8f7e5e1dcd83424419b84cb5d035290e1e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift:212-236 | Dayflow/Dayflow/Views/UI/MainView/TabFilterBar.swift:77-98 \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":"Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d52e3a0b90280b8ad6631a2e9625c42cea0436359aef2fcbee26bd2d1eed0fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Dayflow/Dayflow/Views/Components/CategoryDonutChart.swift:187-203 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyDonutSection.swift:216-233 \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":"Dayflow/Dayflow/Views/Components/CategoryDonutChart.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f148c4702ec65a699d25771c432083ca312deb04ac4525d4bb1020551752da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Dayflow/Dayflow/Views/UI/Agents/AgentsOverviewView.swift:138-164 | Dayflow/Dayflow/Views/UI/Agents/AgentsView.swift:234-254 \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":"Dayflow/Dayflow/Views/UI/Agents/AgentsOverviewView.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d49d0c8d0e43fe6fd3bc3a610d28216410cc3dcf83317358d1e85f219ad7e42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Dayflow/Dayflow/Core/AI/ChatToolExecutor.swift:266-282 | tools/dayflow-cli/Sources/dayflow/DayBoundary.swift:40-49 \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":"Dayflow/Dayflow/Core/AI/ChatToolExecutor.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"450d9336c926e34888a80475c6b748e6b8325c7e08ad4bd9d7989756d72f6989"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Dayflow/Dayflow/Core/AI/LLMService.swift:1162-1186 | Dayflow/Dayflow/Core/Analysis/IdleBatchClassifier.swift:110-135 \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":"Dayflow/Dayflow/Core/AI/LLMService.swift"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f723b094e715f159a2c7e722d10052ca840c3b8934b5b6604afc5cfe631c73c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Dayflow/Dayflow/Core/Surveys/SurveyEventReporter.swift:94-110 | Dayflow/Dayflow/Views/UI/WhatsNewView.swift:1231-1247 \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":"Dayflow/Dayflow/Core/Surveys/SurveyEventReporter.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"8111ee279a870e8046c760efb19395ab4679e21a72dc38e82108d0d3c49aad8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift:833-850 | Dayflow/Dayflow/Views/UI/MainView/WeekTimelineGridView.swift:855-871 \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":"Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb513ae618e80dd66b5c6bfb2522b5d75f73e5f39993814a68e3fa8c18b4414"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Dayflow/Dayflow/Views/UI/ProgressRingView.swift:408-422 | Dayflow/Dayflow/Views/UI/ProgressRingView.swift:446-461 \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":"Dayflow/Dayflow/Views/UI/ProgressRingView.swift"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a877f8ea97e01c7c3ee0f5f00623f6f04835ddef37ea6289af2aff037d95ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift:277-290 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift:68-89 | Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift:7-30 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"13044ed08c4489468892cc9b343bc01c21620a3007e39d0723f45838b5b1bb94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:628-640 | Dayflow/Dayflow/Views/UI/ScrubberView.swift:313-324 \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":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0521181da9c6a0a93779fc96c5c733f40ada7c3d360a05a06c84b864046677f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Dayflow/Dayflow/Core/Recording/StorageFileManagerExtensions.swift:4-29 | Dayflow/Dayflow/Views/UI/Settings/StorageSettingsViewModel.swift:239-260 \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":"Dayflow/Dayflow/Core/Recording/StorageFileManagerExtensions.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"28aac4da5291e1164fba8e64ecf6af459c6e698a202073ce65b4a8543f4b3397"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Dayflow/Dayflow/Views/UI/Weekly/WeeklyView.swift:717-741 | Dayflow/Dayflow/Views/UI/Weekly/WeeklyView.swift:822-842 \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":"Dayflow/Dayflow/Views/UI/Weekly/WeeklyView.swift"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"faac53e5fed80ccf86102ae7b0ae597b01130ac6b6140264c3535a0a49036d9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Dayflow/Dayflow/Core/AI/DailyRecapScheduler.swift:304-332 | Dayflow/Dayflow/Views/UI/DailyView\u002BWorkflow.swift:382-407 \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":"Dayflow/Dayflow/Core/AI/DailyRecapScheduler.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc2414f2f7e2f540c82b1a1f7d6da4cf3959a8bd2b120de0ce040944000c1ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 18\u002B corresponding lines): Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift:56-75 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift:144-161 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift:175-195 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BObservations.swift:25-47 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9920cd973f2af634ad433c875b652d5d726aa3291124ed9700cd4ba9fe127178"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Dayflow/Dayflow/System/DayflowAuthManager.swift:612-630 | Dayflow/Dayflow/System/DayflowAuthManager.swift:660-679 \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":"Dayflow/Dayflow/System/DayflowAuthManager.swift"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"292ea9344d4b57dfdc4a88b8c9d3a687028597e71880f54550aff675a1e46716"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Dayflow/Dayflow/Core/PrivacyShield/PIIText.swift:200-209 | Dayflow/Dayflow/Core/PrivacyShield/PIIText.swift:212-222 \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":"Dayflow/Dayflow/Core/PrivacyShield/PIIText.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e68e9d72f300c9bd5e06d7d2acfef09a585e953c64e2aa6f2697c5d76faebb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Dayflow/Dayflow/Core/PrivacyShield/PIIText.swift:275-284 | Dayflow/Dayflow/Core/PrivacyShield/PIIText.swift:287-297 \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":"Dayflow/Dayflow/Core/PrivacyShield/PIIText.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf7a265e66fffd0ca7fa39d49306334ab8a42a16c61a7d9b4263e2111daafe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift:803-817 | Dayflow/Dayflow/Views/UI/MainView/WeekTimelineGridView.swift:810-824 \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":"Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a84f4b8befcd372630d8f5af0281ad51d76c6811fca11af4433560714def43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift:401-424 | Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift:426-441 | Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift:488-507 \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":"Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9508aeef077d6dd3cacf87a184a296feab6d247cf1d23fb51bd87c24a11513"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Dayflow/Dayflow/Views/UI/TimelineReviewChrome.swift:133-145 | Dayflow/Dayflow/Views/UI/TimelineReviewChrome.swift:151-160 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/TimelineReviewChrome.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"605f640ef6722179477296fb30aa84e68bcf53ba2f460d8fe6285f0a1b0d37de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Dayflow/Dayflow/Core/AI/ChatService.swift:497-513 | Dayflow/Dayflow/Core/AI/ChatService.swift:515-531 \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":"Dayflow/Dayflow/Core/AI/ChatService.swift"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da925bfa31d3c877fc26c946ace42c887cf0145eed894df5e6dac0892b9ddb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Dayflow/Dayflow/Core/Thumbnails/ScreenshotThumbnailCache.swift:62-70 | Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:447-455 \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":"Dayflow/Dayflow/Core/Thumbnails/ScreenshotThumbnailCache.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f61ad77db7efbdc03a9449097552f803121739e63a3394fe473723ccf42d97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift:745-762 | Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift:832-851 \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":"Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"4baf8fe3b6284ff8a400c00cb1df7c2a426e50eb84c9b4e40d21633b88afe033"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyFocusHeatmapSection.swift:48-65 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyWorkflowSection.swift:18-33 \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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyFocusHeatmapSection.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb70a8787709e41308c6b7985c423f73355e3e336c2de2e6da5631da0a326167"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BPrompts.swift:119-156 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BPrompts.swift:83-127 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BPrompts.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"327ce45b24494c1cbc28afd7e0b855edf2ff1352a0ca2ecf031911a4016ecea5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Dayflow/Dayflow/Core/AI/ClaudePromptDefaults.swift:30-51 | Dayflow/Dayflow/Core/AI/CodexPromptPreferences.swift:38-55 \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":"Dayflow/Dayflow/Core/AI/ClaudePromptDefaults.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a837e20213fb43c80240b78f49a4891517fff7479624a5eb01d67d0eb5d16bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Dayflow/Dayflow/Core/PrivacyShield/PIIText.swift:84-94 | Dayflow/Dayflow/Core/PrivacyShield/PIIText.swift:98-106 | Dayflow/Dayflow/Core/PrivacyShield/PIIText.swift:109-117 \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":"Dayflow/Dayflow/Core/PrivacyShield/PIIText.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"a998946efafa08d6235d7e3601a13ad4bf1d87af9a72247399ef5ad171b675f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.swift:105-121 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextShiftComparisonSection.swift:75-89 \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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"9905080d1d47c6811204248bc05f09944c3f8cfd896687b86e9a88752fbea8f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Dayflow/Dayflow/Core/Net/FaviconService.swift:136-144 | Dayflow/Dayflow/Core/Net/FaviconService.swift:146-157 \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":"Dayflow/Dayflow/Core/Net/FaviconService.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fef6bf822dfb1fc9dbb72bb4d3f7f41c36afb4c8fc12233d25d1250ccd1d301"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Dayflow/Dayflow/Views/UI/GettingStarted/GettingStartedChecklistCard.swift:272-288 | Dayflow/Dayflow/Views/UI/GettingStarted/GettingStartedTourView.swift:252-269 | Dayflow/Dayflow/Views/UI/GettingStarted/GettingStartedTourView.swift:271-287 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"Dayflow/Dayflow/Views/UI/GettingStarted/GettingStartedChecklistCard.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f97306c4c9e1255de74d130e510c4c234a8018b775a8641863b3e27e7d7c6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Dayflow/Dayflow/Views/UI/Weekly/WeeklyView.swift:270-289 | Dayflow/Dayflow/Views/UI/Weekly/WeeklyView.swift:291-310 \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":"Dayflow/Dayflow/Views/UI/Weekly/WeeklyView.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"2221cd2eee392b1a5581aff553d04d14fc93168bd57ba5d1e41dd091b8b0a6fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Dayflow/Dayflow/Core/Weekly/WeeklyDashboardModels.swift:56-74 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyTreemapModels.swift:44-66 \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":"Dayflow/Dayflow/Core/Weekly/WeeklyDashboardModels.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d881fac4613d071659f6a9dcb692d1ec90c149fcb53cef28c4c4b51e023b23a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift:128-143 | Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefSavedView.swift:145-156 | Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefSections.swift:933-945 \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":"Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"409b22e701ab858bf528309f3b1575f28fbc9ab2bc2fbf3e0d0a4a3209392cc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift:332-354 | Dayflow/Dayflow/Core/AI/DailyRecapScheduler.swift:398-413 \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":"Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd82c196f7605531022945d13a261a1892a75f025e9ac6129a730c7b11af947"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:250-262 | Dayflow/Dayflow/Views/UI/TimelineReviewMediaViews.swift:90-98 \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":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d27889e136c31b7e42961cf38c7d89dfc4e1450b0ea678e7b2c7a512b3ed89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyApplicationInteractionsSection.swift:72-86 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.swift:482-492 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphGlyphs.swift:392-409 \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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyApplicationInteractionsSection.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ea5b68c307a62d2d9957043da516de55534db0b8ecc72b245e1057baec87fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Dayflow/Dayflow/Core/DailyBrief/DailyBriefStore.swift:1130-1139 | Dayflow/Dayflow/Core/DailyBrief/DailyBriefStore.swift:1226-1233 \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":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefStore.swift"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"344324bd5c8ab5f2171e1397eeb86d23367e92384b9a1121405ebf37a87e3f40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Dayflow/Dayflow/Views/Components/DaySummaryView.swift:792-807 | Dayflow/Dayflow/Views/Components/DaySummaryView.swift:809-823 \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":"Dayflow/Dayflow/Views/Components/DaySummaryView.swift"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41436e568002fd3529f358d8e6e9470ea0336da6a1c059d61c01c1e377291b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift:299-311 | Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift:313-325 \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":"Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"0305bc60d8cd5cfaa52c493c06e5b1936ff0547d2213ae5d0f3670c980571614"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Dayflow/Dayflow/Views/UI/TimelineReviewChrome.swift:176-189 | Dayflow/Dayflow/Views/UI/TimelineReviewChrome.swift:191-204 \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":"Dayflow/Dayflow/Views/UI/TimelineReviewChrome.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"aafa758b9cb396f1db7251f5e0188d0f6d60674402df2fff5928aaa836e8a69a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:342-352 | Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:841-849 \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":"Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2c99f09d2bde6ed892512ed62ca224560fd403d65dfd171aa8edae8a577901"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Dayflow/Dayflow/Views/UI/PausePillView.swift:205-219 | Dayflow/Dayflow/Views/UI/PausePillView.swift:229-243 \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":"Dayflow/Dayflow/Views/UI/PausePillView.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7833da4157e1684d6f8e6048902c547505e17b703e0735e2243be92999f4f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Dayflow/Dayflow/Core/AI/ClaudeStrictJSONParser.swift:46-59 | Dayflow/Dayflow/Core/AI/ClaudeStrictJSONParser.swift:61-76 \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":"Dayflow/Dayflow/Core/AI/ClaudeStrictJSONParser.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"899266181b1ccd349ed55f60110f2e0dc4fbe651f91bdc332814864d2bb79a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:277-297 | Dayflow/Dayflow/Core/AgentAccess/CodexMCPRegistration.swift:238-258 \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":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9085d9376fff4b82c6021b2e399169569b0498fdf9a171bb105a859eec64d67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardStreaming.swift:418-430 | Dayflow/Dayflow/Utilities/GeminiAPIHelper.swift:233-242 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardStreaming.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b790159b4983ddb992734519793a5fcaecac61cd4b5ebc9322ffda13268dd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): Dayflow/Dayflow/Views/UI/TimelineDataModels.swift:51-69 | Dayflow/Dayflow/Views/UI/TimelineDataModels.swift:71-89 | Dayflow/Dayflow/Views/UI/TimelineDataModels.swift:91-109 \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":"Dayflow/Dayflow/Views/UI/TimelineDataModels.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0325bc1d661cb446e52174377cbe855a33fe5aae3c841354da2976c4d892d327"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BLogging.swift:58-61 | Dayflow/Dayflow/Core/AI/OllamaProvider.swift:95-98 \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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BLogging.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"50023099bf13a4cbeff8be232128bd1527eff62af4e938a27ae41360359f89d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Dayflow/Dayflow/Views/UI/DailyStandupComponents.swift:382-397 | Dayflow/Dayflow/Views/UI/DailyStandupComponents.swift:413-426 \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":"Dayflow/Dayflow/Views/UI/DailyStandupComponents.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"879a30112a6678ad6773b4157a394ad7f99eb76f58ed873ec718d7e4f6e3cf62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyFocusHeatmapSection.swift:172-181 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyWorkflowSection.swift:133-142 \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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyFocusHeatmapSection.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ab9ce9e78b7e8eac19b2ba55285afaf673b3c05d226afc9baf19db3f10a59a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift:12-25 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift:27-39 \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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab6332ee686a02c08f24de53f01fe0dc24460dc7e04c255cf47320fcc4f7845"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Dayflow/Dayflow/Views/UI/MainView/Actions.swift:6-21 | Dayflow/Dayflow/Views/UI/MainView/Actions.swift:23-39 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/Actions.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d29cb2716d588c91977be4ecca21bcb8e4568d3c4ecd1ce5b038df17f20940d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift:415-428 | Dayflow/Dayflow/Core/Recording/TimelapseStorageManager.swift:31-44 \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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"4001e0f1639ede71845a51525791d40c98fcabfc58d645749ded9acd50979f3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Dayflow/Dayflow/Views/UI/DailyStandupComponents.swift:273-292 | Dayflow/Dayflow/Views/UI/DailyStandupComponents.swift:294-309 \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":"Dayflow/Dayflow/Views/UI/DailyStandupComponents.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"147b9725a3672d3cdfebb0a44f4a332e31ebb9cf556e1a488b9d82eb1d5040b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Dayflow/Dayflow/Core/AI/ClaudeTranscriptionInputBuilder.swift:173-187 | Dayflow/Dayflow/Utilities/GeminiAPIHelper.swift:42-55 \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":"Dayflow/Dayflow/Core/AI/ClaudeTranscriptionInputBuilder.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c867a60342119631335f53a0f3c0058ae7dc8d72ea6f518829af73470f3e19d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Dayflow/Dayflow/Core/Flow/FlowEarlyBirdController.swift:110-122 | Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefMenuBarNotice.swift:114-132 \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":"Dayflow/Dayflow/Core/Flow/FlowEarlyBirdController.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cba00e1e056512250c0f1e69b14aadfe6dd18768b842213caaa5f2263cb0794"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Dayflow/Dayflow/System/DayflowAuthManager.swift:551-558 | Dayflow/Dayflow/System/DayflowAuthManager.swift:562-569 \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":"Dayflow/Dayflow/System/DayflowAuthManager.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f0e17bbafb4319b11f595644fd8c03e41d5a7e827c04cfe5ba6a4d413499a6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 8\u002B corresponding lines): Dayflow/Dayflow/Views/Components/CategoryDonutChart.swift:46-58 | Dayflow/Dayflow/Views/Components/DayGoalReviewComponents.swift:160-171 | Dayflow/Dayflow/Views/Components/TimelineReviewSummaryCard.swift:269-281 | Dayflow/Dayflow/Views/UI/TimelineReviewChrome.swift:343-350 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyOverviewSection.swift:172-183 \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":"Dayflow/Dayflow/Views/Components/CategoryDonutChart.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6064ac0d0e4280192f4e39171113c2da092560dc521d89e0a29de1e2f3f304"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift:112-122 | Dayflow/Dayflow/Views/UI/MainView/WeekTimelineGridView.swift:694-710 \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":"Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa70a408a0f9723d5aa223534a01c08564d9a19d1d48c4217646dde2062a3fe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Dayflow/Dayflow/Views/UI/BugReportView.swift:181-190 | Dayflow/Dayflow/Views/UI/GettingStarted/GettingStartedChecklistCard.swift:260-270 | Dayflow/Dayflow/Views/UI/MainView/TimelineCalendarPopover.swift:123-136 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"Dayflow/Dayflow/Views/UI/BugReportView.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c951530ee5b9f362be7787e7f201a4b0c450968c3831c4107d3bc7252108dcb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:567-586 | Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:694-711 \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":"Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"090bc56e3d2039a5733fe9c06718e9f7578ffccc02b449f9f36858836341aabf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Dayflow/Dayflow/Views/UI/MainView/Support.swift:215-222 | Dayflow/Dayflow/Views/UI/MainView/Support.swift:224-231 \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":"Dayflow/Dayflow/Views/UI/MainView/Support.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"2665966e6a84c110adfaf67f08eede598b996e6bea71abc498ea75b75ea18f67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift:503-511 | Dayflow/Dayflow/Core/DailyBrief/DailyBriefLinkImages.swift:199-207 \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":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9ff1ba7047bec0ef7d152e125ae8b40ba82ce6e5fcf40e70d9960a452ff819"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): Dayflow/Dayflow/Core/Thumbnails/ScreenshotThumbnailCache.swift:72-82 | Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:436-445 | Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshowPlayback.swift:318-329 | Dayflow/Dayflow/Views/UI/ScrubberView.swift:145-154 \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":"Dayflow/Dayflow/Core/Thumbnails/ScreenshotThumbnailCache.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c4bed951ccaab0f05d9734257247638de72ee08537a74e3b930a79d278fdc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift:154-163 | Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift:428-437 \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":"Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5d33be066a20f4ca8079aa87fe515c8097cc84c39db64ab568765c1ceb04cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardTools.swift:4-9 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardTools.swift:11-15 \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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardTools.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe5f64d0376767f14ee2c14e6a6e37dc766d50842476dce250af3a8fb3591b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Dayflow/Dayflow/Views/UI/Agents/AgentPlaybackView.swift:530-539 | Dayflow/Dayflow/Views/UI/Agents/AgentPlaybackView.swift:541-549 \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":"Dayflow/Dayflow/Views/UI/Agents/AgentPlaybackView.swift"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8602eec43dea273cb7bc7004db2abd95104edf9266ac90a3246d2695746ed9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Dayflow/Dayflow/Core/Recording/StorageManager\u002BScreenshots.swift:103-117 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BScreenshots.swift:142-156 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BScreenshots.swift:158-171 \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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BScreenshots.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd33b2d5c3fee2bac54c6b4f951c95f534dd71d916be9cd4db5b635ebc6862fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift:145-152 | Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift:439-451 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ea5b023e6b47cf5eeb4f8d4130fa36fce05eecbc79f2df8edcd48346af96b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeFlow.swift:300-311 | Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeFlow.swift:313-324 | Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeFlow.swift:326-337 \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":"Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeFlow.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"127c1a0cf7693a7608156230b4c0b558ae93bf062e97b50753937458b9520689"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Dayflow/Dayflow/Core/Notifications/NotificationService.swift:386-395 | Dayflow/Dayflow/System/StatusBarController.swift:248-257 \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":"Dayflow/Dayflow/Core/Notifications/NotificationService.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a056bb7de2fd7b45697fa866621ed8183d16e78d6e4c7c09b281d509ca371d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Dayflow/Dayflow/Views/Components/DaySummaryStats.swift:181-190 | Dayflow/Dayflow/Views/Components/DaySummaryStats.swift:228-239 \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":"Dayflow/Dayflow/Views/Components/DaySummaryStats.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"6515eed0606e06dc2593d57a671eb29b1395f1be4f16c09cc30f5f9b1c9cd3d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Dayflow/Dayflow/Views/UI/Agents/AgentPlaybackView.swift:598-606 | Dayflow/Dayflow/Views/UI/Flow/FlowWebView.swift:462-474 \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":"Dayflow/Dayflow/Views/UI/Agents/AgentPlaybackView.swift"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"424ded7f247cd3e98459e6ae34fdc4d36a08fdc33ff9a9bf5de355fbaab14250"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Dayflow/Dayflow/Views/UI/SupportChatWebView.swift:600-615 | Dayflow/Dayflow/Views/UI/WhatsNewView.swift:1496-1509 \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":"Dayflow/Dayflow/Views/UI/SupportChatWebView.swift"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7de101410d0ae1e56739b7a1d7564e0106879e29d3b53a6c918585ca0a089b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift:869-876 | Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift:1070-1077 \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":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0af89d4658f75dcee566d0f19ddc69ade50f4c37072c75708f01d2e2e2b770c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Dayflow/Dayflow/Core/Recording/AccessibilityRecorder.swift:300-309 | Dayflow/Dayflow/Core/Recording/AccessibilityRecorder.swift:311-319 \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":"Dayflow/Dayflow/Core/Recording/AccessibilityRecorder.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c4de261e711db77ac8d9a43ba81a99836e9368cf2183316bc6bd1b4d00a759"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Dayflow/Dayflow/Core/Recording/BrowserPrivacyPreferences.swift:56-64 | Dayflow/Dayflow/Core/Recording/RecordingPrivacyPreferences.swift:239-245 \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":"Dayflow/Dayflow/Core/Recording/BrowserPrivacyPreferences.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"7231929c666f2daab5a8313973986bf7b0723ce581464bba6fbce9543a6f84fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Dayflow/Dayflow/Views/Components/DaySummaryView.swift:751-766 | Dayflow/Dayflow/Views/Components/DaySummaryView.swift:825-838 | Dayflow/Dayflow/Views/Components/DaySummaryView.swift:840-855 \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":"Dayflow/Dayflow/Views/Components/DaySummaryView.swift"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f143a8cb0fb9e0502f5b679498e1f51b26c7712593ad2ff974431a6009db9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeVideoIntroStep.swift:159-173 | Dayflow/Dayflow/Views/Onboarding/VideoLaunchView.swift:140-161 \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":"Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeVideoIntroStep.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"856b907223da41a2c963e53bb973e1c92e66784c26f706fc3a5d0beb91c7e4cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Dayflow/Dayflow/Core/AI/CodexPromptPreferences.swift:12-23 | Dayflow/Dayflow/Core/AI/ClaudePromptDefaults.swift:10-17 \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":"Dayflow/Dayflow/Core/AI/CodexPromptPreferences.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"95106f60874a6ba97300a775e7ee409434d252ad941c0080623684816d494b48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:210-220 | Dayflow/Dayflow/Views/UI/Agents/AgentThreadOpener.swift:210-215 \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":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df2031e443c41a53a60f9346cf9ae3d888cb6364e22e1e3600f72de20898c38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Dayflow/Dayflow/Core/Weekly/WeeklyDateRange.swift:14-18 | Dayflow/Dayflow/Core/Weekly/WeeklyDateRange.swift:20-24 | Dayflow/Dayflow/Views/UI/MainView/TimelineShellModels.swift:94-98 \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":"Dayflow/Dayflow/Core/Weekly/WeeklyDateRange.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5f2a371c6b91a90ec59be91fdc95786b00d1cc750ef904ccce3149124ffd4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift:32-40 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift:302-316 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f23ee7160582df0460f3444b8615e3216c065636f75650894463f4efbed1bb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BText.swift:4-15 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BText.swift:4-15 \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":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BText.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"5026bc481db669ce15f9e75e3d696a56840fe99052e5ef38698fbd520192a4b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Dayflow/Dayflow/Core/AI/LLMProviderRouting.swift:35-45 | Dayflow/Dayflow/Core/AI/LLMProviderRouting.swift:47-57 \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":"Dayflow/Dayflow/Core/AI/LLMProviderRouting.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa0ea32a4f781a27f452173e22b376c88998fdbe0e8221888662ef3a730d056"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Dayflow/Dayflow/Core/AI/LLMTypes.swift:107-117 | Dayflow/Dayflow/Views/UI/Settings/ProvidersSettingsViewModel.swift:829-838 | Dayflow/Dayflow/Views/UI/Settings/ProvidersSettingsViewModel.swift:848-857 \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":"Dayflow/Dayflow/Core/AI/LLMTypes.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea419a1183f89a12a3504411a3fb48933b7e5289a3cc7fea00d8103d2f68fbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeChooseProviderStep.swift:256-263 | Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeChooseProviderStep.swift:349-356 | Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeChooseProviderStep.swift:358-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 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":"Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeChooseProviderStep.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe2d4e275d808ea7bc993a635f77dd16de8acdfa878fde40f975af35add5003"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift:783-789 | Dayflow/Dayflow/Views/UI/MainView/WeekTimelineGridView.swift:779-785 \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":"Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"565b8aea9150a1baabd742bd28d5feb63b5d9e1ff0de9b6fac9c33916dd3ca70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketDaybreakHeader.swift:235-240 | Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketSummaryCard.swift:270-275 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketDaybreakHeader.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70b9963b74c0dc8d8fba46ef10e98affa43dd6b4820e675d4506fe8ca717c9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift:762-771 | tools/dayflow-cli/Sources/dayflow/MCPServer.swift:96-102 \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":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb08684e0ad3f31ebb5b85b17cea96ee00a546eb4091f6e89b7780c4bb5b864"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Dayflow/Dayflow/Core/Weekly/WeeklyDashboardBuilder\u002BHeatmapWorkflow.swift:523-531 | Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift:504-509 \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":"Dayflow/Dayflow/Core/Weekly/WeeklyDashboardBuilder\u002BHeatmapWorkflow.swift"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"872b59ce237f5bc97cf32bcc9afe411cc6cd1b6a250e92dffd2bcf7bd64c8917"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Dayflow/Dayflow/Menu/FlowMenuBarViews.swift:433-435 | Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketDaybreakHeader.swift:96-98 \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":"Dayflow/Dayflow/Menu/FlowMenuBarViews.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88ae7648fdef543070bba18bf6978370d0ee2e7891e31d5d69da177cf02ca88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Dayflow/Dayflow/Views/UI/SupportChatWebView.swift:617-629 | Dayflow/Dayflow/Views/UI/WhatsNewView.swift:1513-1523 \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":"Dayflow/Dayflow/Views/UI/SupportChatWebView.swift"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52008a51e83708e31af9ae411fc0d09db317125a7872ecd8e55e7e46d2b1c2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketStyle.swift:185-189 | Dayflow/Dayflow/Views/UI/Settings/SettingsComponents.swift:297-302 \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":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketStyle.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"e373d0936891626e927956bd1bcecd0c11d5dd4a3c443e96b1b3699b39fe3954"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Dayflow/Dayflow/Views/UI/TimelineReviewPlaybackModels.swift:80-86 | Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:552-559 \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":"Dayflow/Dayflow/Views/UI/TimelineReviewPlaybackModels.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"41744c90eb462cde1e93606f6e38fe682ed61d26fb929eb57cc83ebef2a58979"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Dayflow/Dayflow/Core/Weekly/WeeklyDashboardBuilder.swift:513-520 | Dayflow/Dayflow/Views/UI/Agents/AgentThreadOpener.swift:232-237 \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":"Dayflow/Dayflow/Core/Weekly/WeeklyDashboardBuilder.swift"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5fc79f2067adbc1731b565fd01fcb2a31b78158aa1f10d044fb829f5e8611e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Dayflow/Dayflow/Views/UI/ChatScrollSupport.swift:250-252 | Dayflow/Dayflow/Views/UI/MainView/WeekTimelineActivityCard.swift:6-8 \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":"Dayflow/Dayflow/Views/UI/ChatScrollSupport.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff98ce734aa295fcd1f7f8c7b48a10f3585be1fde8775819ce7bf625dd2d6afc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): Dayflow/Dayflow/Core/Recording/RecordingPrivacyPlaceholder.swift:100-103 | Dayflow/Dayflow/Core/Weekly/WeeklyDashboardBuilder.swift:429-432 | Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift:183-186 | Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift:453-456 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/RecordingPrivacyPlaceholder.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f33cfe5c11ed6e402c4ba4f025e602c391b9cf75645d2604e6b493d6a9985ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Dayflow/Dayflow/Views/Components/DayGoalHeader.swift:847-850 | Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:42-45 \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":"Dayflow/Dayflow/Views/Components/DayGoalHeader.swift"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ddd966b6daa6c806051549586ccd657b697ab4b8db6da604a0a1964d5a01c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshowPlayback.swift:331-336 | Dayflow/Dayflow/Views/UI/TimelineReviewFrameLoading.swift:170-173 \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":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshowPlayback.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d9db4fb7dfe5d47855dfddbd7e4252e0f53a181430ec269f4c37e668e33e51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Dayflow/Dayflow/Core/AI/ChatPromptBuilder.swift:550-559 | Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift:624-634 \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":"Dayflow/Dayflow/Core/AI/ChatPromptBuilder.swift"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f47324b754e221db9ea925966c2f9cefe6f47d6c01894ac5062d2042b99dce5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Dayflow/Dayflow/Core/AI/GeminiPromptPreferences.swift:31-34 | Dayflow/Dayflow/Core/AI/OllamaPromptPreferences.swift:29-32 \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":"Dayflow/Dayflow/Core/AI/GeminiPromptPreferences.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec4c831275cffa95c51e39947974f3237d6a11396f8bf04bd28f3b6cb9d4f0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift:634-638 | Dayflow/Dayflow/Views/Onboarding/SetupContinueButton.swift:19-26 \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":"Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"136bd5f2ccc7fecb5b8f415e41c7e73f9c65464f61d1448e8efbd4c2e73d36ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 4\u002B corresponding lines): Dayflow/Dayflow/Core/AI/ClaudePromptDefaults.swift:102-105 | Dayflow/Dayflow/Core/AI/CodexPromptPreferences.swift:121-124 | Dayflow/Dayflow/Core/AI/DayflowEndpointPreferences.swift:41-44 | Dayflow/Dayflow/Core/AI/GeminiPromptPreferences.swift:162-165 | Dayflow/Dayflow/Core/AI/LegacyLLMProviderMigration.swift:190-193 | Dayflow/Dayflow/Core/AI/OllamaPromptPreferences.swift:96-99 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudePromptDefaults.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"3741120807aaddcbe67ecdc2e6122d63b02b1cbdc1d0957ad648d426beb42be7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Dayflow/Dayflow/Models/DayGoalPlan.swift:47-52 | Dayflow/Dayflow/Views/Components/CategoryDonutChart.swift:26-31 \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":"Dayflow/Dayflow/Models/DayGoalPlan.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08017f9a731dff1a39d6ce68a707b9b894f328ade1a7e75bc9ea3ed9c7b996c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Dayflow/Dayflow/Core/AI/ClaudeOutputValidator.swift:532-534 | Dayflow/Dayflow/Core/AI/ClaudeTranscriptionInputBuilder.swift:494-501 \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":"Dayflow/Dayflow/Core/AI/ClaudeOutputValidator.swift"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"003be2d27c9ec1586862fff641b05aa1e6f39631dc2a4f6e075787dff6b79fc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Dayflow/Dayflow/Views/UI/Flow/FlowEnterView.swift:218-222 | Dayflow/Dayflow/Views/UI/Flow/FlowOverlayView.swift:328-332 \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":"Dayflow/Dayflow/Views/UI/Flow/FlowEnterView.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9b25556cfb88f4b8417afccdc902b9a3db46a54d5907e06c271c1257a35b2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Dayflow/Dayflow/Views/UI/Flow/FlowWebView.swift:502-509 | Dayflow/Dayflow/Views/UI/SupportChatWebView.swift:631-639 \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":"Dayflow/Dayflow/Views/UI/Flow/FlowWebView.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f265600c6478cfd7b106600650a6d68807371919689db967c4c426d263a09e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Dayflow/Dayflow/Views/UI/Flow/FlowWebView.swift:511-517 | Dayflow/Dayflow/Views/UI/SupportChatWebView.swift:641-648 \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":"Dayflow/Dayflow/Views/UI/Flow/FlowWebView.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d788789d79c577ba42ec4912bf75c94d06634c4910f44112d6d36f15ca35e75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Dayflow/Dayflow/Core/PrivacyShield/PIIText.swift:125-129 | Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.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":"Dayflow/Dayflow/Core/PrivacyShield/PIIText.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ed3431df7c90fad150f17c66a771a805e1ec218274a8c92d84aa38c4c36917"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Dayflow/Dayflow/Core/Recording/StorageManager\u002BDailyStandup.swift:50-61 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BScreenshots.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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BDailyStandup.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8073ad0423ebff18670d8f13735e4f386f9738f266fc2596d88d73b9d83b7a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Dayflow/Dayflow/Core/Recording/StorageManager\u002BDailyStandup.swift:135-146 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BScreenshots.swift:49-55 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:175-185 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BDailyStandup.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd6daf0f4778c700097e2db6baa692b7f17ebbac2bc74a4ea31ea37bb74658f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyFocusHeatmapSection.swift:36-46 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyWorkflowSection.swift:8-16 \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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyFocusHeatmapSection.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb15eb95a8cf6edfa92edfea0b49c2993bae7adfe763df40ac819c5663a0d8f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Dayflow/Dayflow/Views/Components/DayGoalFlowView.swift:312-316 | Dayflow/Dayflow/Views/Components/DaySummaryView.swift:598-604 \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":"Dayflow/Dayflow/Views/Components/DayGoalFlowView.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b70c1912c8ff9ce47e2881146fa881cce4c916373d7f4e9f7f43bf942c98fab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): Dayflow/Dayflow/Core/Weekly/WeeklyDashboardBuilder.swift:485-488 | Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift:178-181 | Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift:469-472 | Dayflow/Dayflow/Views/UI/DailyWorkflowComputation.swift:459-462 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Weekly/WeeklyDashboardBuilder.swift"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"875269cae2d7d0494c06636373ff59215024721beac8b075828a5d5246e036ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 8\u002B corresponding lines): Dayflow/Dayflow/Views/UI/CanvasActivityCard.swift:250-257 | Dayflow/Dayflow/Views/UI/DailyStandupComponents.swift:7-14 | Dayflow/Dayflow/Views/UI/MainView/Layout\u002BPanels.swift:550-557 | Dayflow/Dayflow/Views/UI/PausePillView.swift:649-656 | Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:402-410 \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":"Dayflow/Dayflow/Views/UI/CanvasActivityCard.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"26163c783365415492d50ee7d2486a4f71b17474c50a7e3d553fef21b4ee0337"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyFocusHeatmapSection.swift:75-80 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyWorkflowSection.swift:71-76 \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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyFocusHeatmapSection.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3662c18f6e0e9b7c11cd499215aea5a0637e3531f9f77b0a65e440a58429ccfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Dayflow/Dayflow/Core/AI/CodexProvider\u002BActivityCards.swift:158-162 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BTranscription.swift:6-10 \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":"Dayflow/Dayflow/Core/AI/CodexProvider\u002BActivityCards.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0dd7ef02c945d562c728a207f85f832474503377972121a839ff63d67a96ed3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): Dayflow/Dayflow/Core/AgentAccess/AgentClientRegistration.swift:63-66 | Dayflow/Dayflow/Core/AgentAccess/AgentUsageTelemetryQueue.swift:68-71 | Dayflow/Dayflow/Core/PrivacyShield/PrivacyShieldModelStore.swift:37-40 | tools/dayflow-cli/Sources/dayflow/AgentUsageTelemetry.swift:55-58 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AgentAccess/AgentClientRegistration.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77edce941f1d4187e2e1feefbeffff4423142f42aa3fbc017b553a10c18c988"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefIntroView.swift:102-106 | Dayflow/Dayflow/Views/UI/WhatsNewView.swift:1415-1419 \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":"Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefIntroView.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25589ae3b6962b1e0632ed34714c6e9e5bd6e5badd2c98f48aebdf86fdc49fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift:967-972 | Dayflow/Dayflow/Views/UI/Settings/SettingsComponents.swift:401-405 \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":"Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25d392c15515a1283a732a58f994bf7b6d6c7b1a34f5d4a53e53b7a66042f47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BActivityCards.swift:33-37 | Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift:7-9 | Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTranscription.swift:6-10 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BTimeline.swift:7-9 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BActivityCards.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8fc3e83ae8e6188eb5c6aa868793354128b445229761c8a1e3758dd482ed81a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Dayflow/Dayflow/Core/Recording/BrowserPrivacyPreferences.swift:49-54 | Dayflow/Dayflow/Core/Recording/RecordingPrivacyPreferences.swift:78-83 \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":"Dayflow/Dayflow/Core/Recording/BrowserPrivacyPreferences.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f9cd45985b24c2114f8fe20deb82e93da633e0e63f1c4dca6e10f23187b94f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:283-289 | Dayflow/Dayflow/Views/UI/TimelineReviewChrome.swift:33-39 \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":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"29dd59f819974e53549b2fafa488fedb1efaaff8178369eb680902d97738bfe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (77 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:538-614 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift:492-568 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 320 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 \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:538\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"e255b7481ec02e40fa32c769a6b533cb75a8709a6f1083bacc4259b9c7e8b399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63\u201373 lines \u00D7 2): Dayflow/Dayflow/Views/UI/MainView/TimelineActivityLoader.swift:111-183 | Dayflow/Dayflow/Views/UI/TimelineReviewTypes.swift:179-241 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/MainView/TimelineActivityLoader.swift:111\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":"Dayflow/Dayflow/Views/UI/MainView/TimelineActivityLoader.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d577fb0532e11507f7be92998072424bb1a799640c720e0b069f3919656d8f4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51\u201365 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:781-845 | Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift:170-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 \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:781\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dda6783f4c0b82b4d34f1ad49c7b90ae0f764c344c4c033b9d371bbd5308a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55\u201358 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:389-443 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift:292-349 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 320 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 \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:389\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"57449ffed40770dd70740f04f7d3607f6e17dc68bf4c14c53b8e792af985988b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ChatPromptBuilder.swift:32-94 | Dayflow/Dayflow/Core/AI/ChatPromptBuilder.swift:210-272 \u2014 both copies are in the same file, so extract the block 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":"Dayflow/Dayflow/Core/AI/ChatPromptBuilder.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a3fd3fac76f75cf72a2cd66f2819bc61dc22d1c795dad4858dcedd6aee0a0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48\u201350 lines \u00D7 2): Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:563-610 | Dayflow/Dayflow/Views/UI/ScrubberView.swift:245-294 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift\u0060 and \u0060Dayflow/Dayflow/Views/UI/ScrubberView.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 114 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 \u0060Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:563\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":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e6522c39a1594742a947b16a2701004e838047bebf7bd1494450c2c2c32205"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BText.swift:55-97 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BText.swift:55-97 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BText.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/CodexProvider\u002BText.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 86 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 \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BText.swift:55\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BText.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"aacc77666b6d3f7522a029c4d09c281cc626523731cb42e32ae63e639d4bf421"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36\u201339 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift:34-72 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BTimeline.swift:33-68 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/CodexProvider\u002BTimeline.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 110 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 \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift:34\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca5db026b4ab3b1f7debf3e4c2856e2b2b8d84e7f79517f5627fc6c8eec4824"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201338 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:497-534 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift:457-488 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 320 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 \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:497\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0755cde9f416de38fc7f9e3088245827a172b1007e7210db665b50f9e81349"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201338 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:870-907 | Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift:247-276 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:870\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa60aac2b346b481fc62957a14a830b8d6aebf316201cd13c195e5b884a86717"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44\u201347 lines \u00D7 2): Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:516-559 | Dayflow/Dayflow/Views/UI/ScrubberView.swift:195-241 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift\u0060 and \u0060Dayflow/Dayflow/Views/UI/ScrubberView.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 114 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 \u0060Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:516\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"636f62e6026b9dc20ed65a96ab14b2663e46e4f57238ce0eb9285fd8e7a554d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201335 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:704-729 | Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:1567-1601 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:704\u0060 it begins part-way through the construct above it, so those exact 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, \u0060Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:1603\u0060 calls \u0060shellEscape\u0060 and \u0060Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:730\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":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"c913eb7ebccc9c36be99b480925240d8e5c5864f45d9655bf1b854828ee6c427"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 2): Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift:182-215 | Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift:318-352 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift:182\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"22335fcd1a7e4b81feec89835cf4a7c5522ecd2fdb5680cb54316dec8c9ca35a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:269-301 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift:201-233 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 320 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 \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:269\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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"992f95ee62edfd0e8c955094f3df0a3885889d95483401612b8624254acbe036"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (78 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager.swift:287-364 | Dayflow/Dayflow/Core/Recording/StorageManager.swift:379-456 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/Recording/StorageManager.swift:287\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":"Dayflow/Dayflow/Core/Recording/StorageManager.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"426d742fd53997b80837ed7ea07e7e0f6e62c14628a0b3418834c60b90536e03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift:176-204 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BTimeline.swift:190-218 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/CodexProvider\u002BTimeline.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 110 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 \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift:176\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"4554c0149249306eafe60c4a622744777fb769d08e29c40dd6118beb48ba3b2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:458-486 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:816-844 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:458\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a5d09bc69fe5f5554d735f05709fe7b2a3ea6468a16b446676d1033b4309f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BText.swift:17-44 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BText.swift:17-44 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BText.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/CodexProvider\u002BText.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 86 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":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BText.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec547447d8bce5622c2342d77e8ff912c1c60b345ac4bcf1c916397c65eb5660"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift:659-685 | Dayflow/Dayflow/Views/Onboarding/SetupContinueButton.swift:51-76 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift:659\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd24c35424ec8a66cf732a455ac8a5455bdf06b798e9fbc5c6ff9192902c1d4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201326 lines \u00D7 3): Dayflow/Dayflow/Views/Onboarding/ProviderSetupState.swift:127-138 | Dayflow/Dayflow/Views/Onboarding/ProviderSetupState.swift:154-179 | Dayflow/Dayflow/Views/Onboarding/ProviderSetupState.swift:195-202 \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 \u0060Dayflow/Dayflow/Views/Onboarding/ProviderSetupState.swift:127\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":"Dayflow/Dayflow/Views/Onboarding/ProviderSetupState.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"c773cfb833e2c65ef8651a72389bb475608cd62884e830a1b11e0867304c2ad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BActivityCards.swift:130-155 | Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTranscription.swift:151-176 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BActivityCards.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTranscription.swift\u0060 as WHOLE FILES: this scan already matched 3 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. 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 \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BActivityCards.swift:130\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BActivityCards.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6ba09d54783b573cb89c9117ea5a636d79ceb238029d72d89fd12f44341589"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201326 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineReview.swift:246-271 | Dayflow/Dayflow/Views/UI/TimelineReviewOverlay.swift:672-692 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineReview.swift:246\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 \u0060segments\u0060 to \u0060[TimelineReviewRatingSegment]\u0060 in one and \u0060[CoverageSegment]\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineReview.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0d9f39112eb6181ae27d0356c51753108e08501d76c1ffd1b1d762aa9af510"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift:257-282 | Dayflow/Dayflow/Views/Components/DayCategorySelectionEditor.swift:112-137 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift\u0060 and \u0060Dayflow/Dayflow/Views/Components/DayCategorySelectionEditor.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 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":"Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"593c2a839b29bae2586cfa378e32515f71bccfb6e95d6286d6c4c1d6a1472484"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36\u201337 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:444-479 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift:371-407 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 320 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 \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:444\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4bcbeb0ea78a6b74dd73ef5191b472ccafb6288f59c2786f596193dc66089a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201324 lines \u00D7 5): Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift:179-195 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift:242-258 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift:368-387 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift:490-506 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift:427-450 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift:179\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":"Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7e6e44c291a826c67a145693368e326215e2618d5f4714daa32a9cec219e76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift:137-157 | Dayflow/Dayflow/Core/AI/OllamaProvider.swift:234-257 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift:137\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":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9bcedf79728eb1423b02e6d7134db3621809e06dcd4097b689564c4b2b105e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift:156-179 | Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift:293-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 \u0060Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift:156\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5c787a4e155a3eb0eb35e8a6054359529759a2ea494126c51a517307281271"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201324 lines \u00D7 2): Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeVideoIntroStep.swift:80-98 | Dayflow/Dayflow/Views/Onboarding/VideoLaunchView.swift:52-75 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeVideoIntroStep.swift:80\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeVideoIntroStep.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb55ad6c57650fe946607ca8215f964a073a0e39df6ed3a3f1f09e46aab6a81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201323 lines \u00D7 4): Dayflow/Dayflow/Views/Onboarding/ProviderSetupState.swift:124-136 | Dayflow/Dayflow/Views/Onboarding/ProviderSetupState.swift:150-172 | Dayflow/Dayflow/Views/Onboarding/ProviderSetupState.swift:192-200 | Dayflow/Dayflow/Views/Onboarding/ProviderSetupState.swift:226-239 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/Onboarding/ProviderSetupState.swift:124\u0060 it does not close everything it opens, so those exact 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, \u0060Dayflow/Dayflow/Views/Onboarding/ProviderSetupState.swift:173\u0060 calls \u0060String\u0060, \u0060information\u0060 and \u0060Dayflow/Dayflow/Views/Onboarding/ProviderSetupState.swift:239\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":"Dayflow/Dayflow/Views/Onboarding/ProviderSetupState.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"f766c2b7fa5cce18cf80bf6f5ecdfc8edb33b704c49f289b68e88cd8b1eeff5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:1430-1461 | Dayflow/Dayflow/Core/AI/ClaudeStrictJSONParser.swift:290-321 | Dayflow/Dayflow/System/AnalyticsService.swift:154-185 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d6ebd4763df5c1038cdfb345822d6a5c8977a272eeb5c7c25ad6877b3dd4bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201323 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:90-112 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:117-132 \u2014 both copies are in the same file, so extract the block 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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"123f10fa7b9bcff4843a2df7a59feed98f4ea2977e86357e5a8d03fe1f962c96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift:934-955 | Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift:975-996 | Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift:1016-1037 \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 \u0060Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift:934\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":"Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0cb73f38047a6a1a073e8abf01c587547d1f36aade5c6c932dec48759d12b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift:99-121 | Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift:154-175 \u2014 both copies are in the same file, so extract the block 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":"Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8deb32b77affaefe90d3e2f65888e166312eaa8a3eb790a3fd76181661848c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:498-519 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:694-714 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:498\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"38449374802f7cb879bf8747ab0b2132f286a8a2ccfadaa28a254443c973573c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201321 lines \u00D7 3): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:486-506 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift:411-428 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift:447-463 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 320 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 \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:486\u0060 it begins part-way through the construct above it, so those exact 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e75bd02d9d3cdfa0252ef66eadc40def6af3145dc67d3b1da7e23d99074dcce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:1407-1427 | Dayflow/Dayflow/Core/AI/ClaudeStrictJSONParser.swift:268-287 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":1407}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec8f15368b4a0430f084d0b1aa4c03fc1e1ba20b07aeba42041b5bf7c0c7aa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201321 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift:118-138 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BTimeline.swift:117-131 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/CodexProvider\u002BTimeline.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 110 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 \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift:118\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfdaa5aaa8fb037a31ad5f41729b3a32c65c25a54a6c8c7f98a438c91584e8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift:296-316 | Dayflow/Dayflow/Core/AI/DailyRecapScheduler.swift:363-382 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f29518c2c0c47472a418333c48c2b7671ab3b13161cb61e68843fcdda4e3dd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BFrames.swift:49-69 | Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BFrames.swift:82-102 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BFrames.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78ec69de2745b0fb761da5040632d32ff359ce5f7c4d67c2688cc79064ca88d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:732-752 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:780-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 \u0060Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:732\u0060 it begins part-way through the construct above it, so those exact 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, \u0060Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:776\u0060 calls \u0060IN\u0060 and \u0060Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:728\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2eb4a240ee4da61ba75c3cb4d589d1beeda05950b269379403c4a4dae173d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Settings/SettingsProvidersTabView.swift:296-315 | Dayflow/Dayflow/Views/UI/Settings/SettingsProvidersTabView.swift:327-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 \u0060Dayflow/Dayflow/Views/UI/Settings/SettingsProvidersTabView.swift:327\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060title\u0060 to \u0060String(localized: \u0022Upgrade account\u0022)\u0060 in one and \u0060String(localized: \u0022Edit configuration\u0022)\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Settings/SettingsProvidersTabView.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b44b3e8d201e31ecaee24ab8167d816efa5b82d0d04f075a96bb6956a098ff8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:536-555 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:733-752 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:881-900 \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 \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:536\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb5e8042f4f04e9c8afeed81d0a8b9e8a7e898a32d3092114fb2cc772334c58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift:293-310 | Dayflow/Dayflow/Core/AI/OllamaProvider.swift:269-288 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f875eb6f751c7d69b8733b94e626b44a857932702abe7e94850a3a2983a1d0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 2): Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:125-140 | Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:773-792 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:125\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5857bae98702a3776c744d6b07d9850841f802aec7000379c2fe54f42db9951"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BActivityCards.swift:107-125 | Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift:128-146 | Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTranscription.swift:114-132 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BActivityCards.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTranscription.swift\u0060 as WHOLE FILES: this scan already matched 3 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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060batchId\u0060 to \u0060Int64? ) async throws -\u003E (cards: [ActivityCardData]\u0060 in one and \u0060Int64? ) async throws -\u003E ( cards: [ActivityCardData]\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":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BActivityCards.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ee0e7515f4837a27614eaf03a27d296461a2059fe1bc11b6c99f44c2eb2012"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift:288-306 | Dayflow/Dayflow/Views/Components/DayCategorySelectionEditor.swift:143-161 | Dayflow/Dayflow/Views/Components/DayGoalSetupComponents.swift:388-406 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift\u0060 and \u0060Dayflow/Dayflow/Views/Components/DayCategorySelectionEditor.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 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 \u0060Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift:288\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":"Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"b003f725d3c1e705fd8781399c459063e7e0813d59a7d85390f5a9430e681220"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BActivityCards.swift:186-204 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BActivityCards.swift:72-90 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BActivityCards.swift:186\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BActivityCards.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f6e50d87141a9c8ed1317ee5dbb0efe050f64d3dc5584d3d668f90c5abda4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:199-217 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:219-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 \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:199\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"94920d60b161abbaa9b8e4a8901cd5784d96377f7934fa3ca66d7040a7233d2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201319 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BFrames.swift:279-291 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift:243-261 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BFrames.swift:279\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":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BFrames.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2eb8a1ac546862281415f4bf83ea10881c57d67826d63c50bf156b7222a1b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:401-417 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:516-534 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:401\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6179bfea27027cd8b12b3606e6da5d0b1dbd57b2e8a244023cf3ac50b7e8140"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:815-831 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:871-889 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:815\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da98a9734618c60731fd5f7b2f751b3dcd8b0929f786a88e6342cf0307ce948"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Dayflow/Dayflow/Core/Thumbnails/ScreenshotThumbnailCache.swift:35-53 | Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:395-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 \u0060Dayflow/Dayflow/Core/Thumbnails/ScreenshotThumbnailCache.swift:35\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Thumbnails/ScreenshotThumbnailCache.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"296c34adfd9d7a9add67173462f8d68940f3f31752639afee66cc4afe34dec29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:252-271 | Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:697-716 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:252\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":"Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"986f91b623b75ec9cb094659a36ab0d690b503e497bac3e53e0c7e49ee1b4171"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 3): Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:262-277 | Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:288-305 | Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:325-340 \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 \u0060Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:262\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u0060scaled(10)\u0060 in one and \u0060scaled(6)\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:322\u0060 calls \u0060frame\u0060 and \u0060Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:259\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":"Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"954d48478a7b7d9e3f7b98df1d2b4334a488b9355c4bd715587d0dde4695cfcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift:201-218 | Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BTranscription.swift:84-101 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift:201\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"79be0a714281f992a1fa8237a85c079c07ad4c95ddbd5cb825c5657f393bd028"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:804-821 | Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:908-924 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:804\u0060 it begins part-way through the construct above it, so those exact 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, \u0060Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:925\u0060 calls \u0060removeAll\u0060 and \u0060Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:822\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":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f05d9e5ec4ef40b27c15500e3a66a4fc3fe31b5ed047ceb9a3f05416157f1c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BPrompts.swift:7-24 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BPrompts.swift:11-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BPrompts.swift:7\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BPrompts.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"26dbf5dcc3b31c3cfd277fa526c428284531cb94a1203191bf9210718c3d62f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift:276-291 | Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTranscription.swift:187-204 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift:276\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \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":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef4b053fad327896011d7668bcdb8fb2f49378d88a2fb70c3a134286cfab0a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): Dayflow/Dayflow/Core/AI/DailyRecapScheduler.swift:170-187 | Dayflow/Dayflow/Views/UI/DailyView\u002BStandup.swift:357-372 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060Dayflow/Dayflow/Core/AI/DailyRecapScheduler.swift:170\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DailyRecapScheduler.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"437a6a60f9e7a8a654bdc49ddd69c3747dcfc024e819fb1cb032b16ef6fc0283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:315-332 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift:241-257 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 320 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 \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.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. 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"88974c2400a7bd17f29b30883185f3519664791aae89ba88d13ee05d8d28402c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GemmaBackupProvider.swift:239-252 | Dayflow/Dayflow/Core/AI/OllamaProvider.swift:175-192 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060Dayflow/Dayflow/Core/AI/GemmaBackupProvider.swift:239\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a39cd3321a90af5d0415061772a456018a7028777a76716803aeb27277d06b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketCardContent.swift:245-262 | Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketListView.swift:172-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 \u0060Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketCardContent.swift:245\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketCardContent.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cec0524a1811c30e0b44d25bcf2103709793285da9b3f99276cd9a13d929739"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.swift:169-186 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextShiftComparisonSection.swift:137-154 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a41ad478855779526d79cd93d0a33b4868f6e73c02c5a99308d60eecb7c714"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 4): Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:276-292 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:453-467 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:647-661 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:811-825 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:276\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a07dde894dad35f32cd167c0086d4b9badb8e9faefd2215285eec81cb38c80c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:261-277 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BText.swift:90-106 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift:193-209 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BText.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 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 \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:261\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a841b5b09cf8c6db2810c25aa2f5c0a1a774a0c689754fa78a3155928134087"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): Dayflow/Dayflow/Core/Thumbnails/ScreenshotThumbnailCache.swift:36-52 | Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:396-412 | Dayflow/Dayflow/Views/UI/ScrubberView.swift:47-63 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift\u0060 and \u0060Dayflow/Dayflow/Views/UI/ScrubberView.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 114 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 \u0060Dayflow/Dayflow/Core/Thumbnails/ScreenshotThumbnailCache.swift:36\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060completion\u0060 to \u0060@escaping (NSImage?) -\u003E Void\u0060 in one and \u0060@escaping (Int, [NSImage]) -\u003E Void\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":"Dayflow/Dayflow/Core/Thumbnails/ScreenshotThumbnailCache.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ebe827ff4bdc5033b294180828e2d08d18576020c595109923950df03a5ae1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): Dayflow/Dayflow/Core/AI/CodexProvider\u002BTimeline.swift:95-111 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BTranscription.swift:111-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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060batchId\u0060 to \u0060Int64? ) async throws -\u003E ( cards: [ActivityCardData]\u0060 in one and \u0060Int64? ) async throws -\u003E (observations: [Observation]\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":"Dayflow/Dayflow/Core/AI/CodexProvider\u002BTimeline.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c41d4caf32a552ce5ae5b51aee8ff0e440d844db5739aaaab6d3d789920ace8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:383-397 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:563-579 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:383\u0060 it does not close everything it opens, so those exact 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":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"822bb4c3718a112ee942a9c367518545e0a90499de163625f5350ff1da934c71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BPrompting.swift:50-66 | Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift:97-113 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BPrompting.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift\u0060 as WHOLE FILES: this scan already matched 4 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. 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BPrompting.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1efcdb784d0a03a241af6a69022605a2bbb3832a63f2eda21fa0533d521a36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201317 lines \u00D7 2): Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift:77-93 | Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift:117-124 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift\u0060 and \u0060Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 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. 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":"Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e4ae98049aa420eaada7f6b8579081f322c98f774f1bb2701e0e3e3014cbba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Dayflow/Dayflow/Views/Components/DayDistractionSummarySection.swift:52-68 | Dayflow/Dayflow/Views/Components/DayFocusSummarySection.swift:48-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/Components/DayDistractionSummarySection.swift:52\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/DayDistractionSummarySection.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d4c48a5104f822530618430c1e95c977698937f17a76cd3a9e10d4d5d23bf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 2): Dayflow/Dayflow/Views/Components/DayflowButton.swift:90-101 | Dayflow/Dayflow/Views/UI/MainView/WeekTimelineActivityCard.swift:198-214 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/Components/DayflowButton.swift:90\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/DayflowButton.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff23a8ba47a3a541ca33e4fb0036a52678f2cb46a7d88ab6816b46fedce67ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Dayflow/Dayflow/Views/UI/ChatCharts.swift:404-420 | Dayflow/Dayflow/Views/UI/ChatCharts.swift:439-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 \u0060Dayflow/Dayflow/Views/UI/ChatCharts.swift:404\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":"Dayflow/Dayflow/Views/UI/ChatCharts.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"fefc295e64f6654700e30e30a24c9888c69221344cb01b8f9db015f672d957ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:644-659 | Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:717-732 | Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeRoleSelectionStep.swift:104-119 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift\u0060 and \u0060Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeRoleSelectionStep.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 85 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 \u0060Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:644\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"02aa2ceb25b47b40395a465f584635aac917744ba6f538c1672b30887a0b82e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Dayflow/Dayflow/Views/UI/DailyView\u002BWorkflow.swift:471-486 | Dayflow/Dayflow/Views/UI/MainView/Layout\u002BTimelineHeader.swift:82-97 | Dayflow/Dayflow/Views/UI/Weekly/WeeklyHeader.swift:64-79 \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 \u0060Dayflow/Dayflow/Views/UI/DailyView\u002BWorkflow.swift:471\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyView\u002BWorkflow.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d4788688d890629850bf4715af226aa92c9ce664085cd277fe2251d4180c32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Dayflow/Dayflow/Core/AI/CodexProvider\u002BTranscription.swift:18-32 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift:463-478 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/CodexProvider\u002BTranscription.swift:18\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":"Dayflow/Dayflow/Core/AI/CodexProvider\u002BTranscription.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"4765764ef6808291189612259648efde1afeab90d240e97dc6ae37ef33e66d1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardStreaming.swift:344-359 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BLogging.swift:76-91 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardStreaming.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardStreaming.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd41bc48b56dfad93c6a15119bb1c00c20c8ec030ebbf1845a66b9da168cca1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift:107-120 | Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift:242-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 \u0060Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift:107\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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":"Dayflow/Dayflow/Core/Analysis/AnalysisManager.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"892bd40737c7f397f9d0826affda51321e2277400d61c800798f51899ca91e2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:611-626 | Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeRoleSelectionStep.swift:29-44 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift\u0060 and \u0060Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeRoleSelectionStep.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 85 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 \u0060Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:611\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d90989155bc03c973fb4ece56357196fa59f2c05037b12942fbd2bf8fe9a59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:424-438 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:541-555 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift:329-343 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift:495-509 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 320 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"75342be4a4e4a057d9bfa007f2ca23587346691c6c29bc5d38290dfa6048f1a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:417-431 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:607-621 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:417\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"744ee8bd65deb2d489ef273e1046814c2e79e1ab035b9d64c2596ec56aadff61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardStreaming.swift:164-175 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardStreaming.swift:248-262 \u2014 both copies are in the same file, so extract the block 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardStreaming.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d9f4608de241b66a7ccf488ff4fd19515e114f3ac153954d54b022e0e590da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Dayflow/Dayflow/Core/AI/LLMLogger.swift:39-53 | Dayflow/Dayflow/Core/AI/LLMLogger.swift:69-83 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/LLMLogger.swift:39\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060http\u0060 to \u0060LLMHTTPInfo\u0060 in one and \u0060LLMHTTPInfo?\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":"Dayflow/Dayflow/Core/AI/LLMLogger.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"3814b4904f552856c4018c55d42fcad9d02c0f4834ec85750cd0461753888078"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BReprocessing.swift:9-31 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:479-501 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BReprocessing.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"923da2f12a643f31ffa966a189d729d443e3ec0a17f14ae529d9bf0a95fa9c1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:512-540 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:575-603 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:512\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85002d2f63c82e2581417e445adad01867d89ee03f36be0046de30a292cd7d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:833-847 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:891-905 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:833\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad47c1427d2b61ef70b76f1372c92cc3e9711a1718d10e6ab9647bf319be3d2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupCLI.swift:30-44 | Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupCLI.swift:88-102 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupCLI.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fd64e6a298f0a90c9bb4a98f2229bcb662c242284a248d973e8431969cd3e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefSections.swift:312-326 | Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefSections.swift:603-617 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefSections.swift:312\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefSections.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"7247259d722f7386f3ff8344a0086dae2261ca6bfe0ad9f47a079ecfdfd1a65e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Dayflow/Dayflow/Views/UI/DailyView\u002BAccess.swift:162-176 | Dayflow/Dayflow/Views/UI/Weekly/WeeklyView.swift:407-420 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyView\u002BAccess.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"1154053f17f496fc5f8b5a096ea8c42df912946b6099683bd9b19bae17b64b6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:222-244 | Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:661-684 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:222\u0060 it does not close everything it opens, so those exact 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":"Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8222e499cd6c9bf2937fbaad6f76f9db8133f8793b9b8101b9e044ea3cd0939"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift:123-136 | Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift:242-255 | Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift:303-316 | Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift:358-371 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift:123\u0060 it does not close everything it opens, so those exact 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 \u0060batchId\u0060 to \u0060Int64? ) async throws -\u003E (SummaryResponse\u0060 in one and \u0060Int64?) async throws -\u003E ( TitleResponse\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":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2c8ee30f5029827f576fc5dfbf88951e22ed58fe9079ec7241afa9fac31cb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ChatMetadataParser.swift:62-75 | Dayflow/Dayflow/Core/AI/ChatMetadataParser.swift:84-97 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/ChatMetadataParser.swift:62\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":"Dayflow/Dayflow/Core/AI/ChatMetadataParser.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c547b78e858be7da784edef0eea17e90c8a918f7c263aa3aa70e8a3afc502a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ChatService.swift:500-513 | Dayflow/Dayflow/Core/AI/ChatService.swift:518-531 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/ChatService.swift:500\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":"Dayflow/Dayflow/Core/AI/ChatService.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcdf56cd01f8fc90520ecdf184caf92a715bba1a73f74cb5edc79189424cb2a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ClaudePromptDefaults.swift:30-43 | Dayflow/Dayflow/Core/AI/CodexPromptPreferences.swift:38-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/ClaudePromptDefaults.swift:30\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudePromptDefaults.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6351be054be4069579dd17d513157ea9facd0f237d54cacce0f5a25fdb5d70f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift:268-294 | Dayflow/Dayflow/Core/AI/DailyRecapScheduler.swift:335-360 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1640f60834394ad87668a88ae6d271d8f5734036d6cf28162d780c694794ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:322-335 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:851-864 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:322\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f7508748260d43f2d4d111035221593fb0832da547c9a324c728a5d856f622"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift:598-611 | Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift:277-288 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift:598\u0060 it does not close everything it opens, so those exact 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"f391758340b01dbeb48fe7f244cece502f42e2102f7c035073231d0eba93afa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift:238-251 | Dayflow/Dayflow/Core/AI/OllamaProvider.swift:217-230 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift:238\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":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"c013955a8b7988173445c8a2e183db66678a21a0df5184b3fab64db1f8b03af1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Dayflow/Dayflow/Core/AI/LLMService.swift:1024-1037 | Dayflow/Dayflow/Core/AI/LLMService.swift:1135-1148 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/LLMService.swift:1024\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/LLMService.swift"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c505bfe265a40fbb95edd7b881975e07cdb91a3fc8c84d5618dee8488e08e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:421-433 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:601-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:421\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a087d52d72c9a64273a20c1115a9822db6fbb93fc6a881f42a11b5ab0f2b1f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Dayflow/Dayflow/Views/Components/DayGoalHeader.swift:300-313 | Dayflow/Dayflow/Views/Components/DayGoalHeader.swift:318-331 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/Components/DayGoalHeader.swift:300\u0060 it begins part-way through the construct above it, so those exact 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, \u0060Dayflow/Dayflow/Views/Components/DayGoalHeader.swift:332\u0060 calls \u0060scaleEffect\u0060 and \u0060Dayflow/Dayflow/Views/Components/DayGoalHeader.swift:314\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":"Dayflow/Dayflow/Views/Components/DayGoalHeader.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a22a13aa340e5a5de6986184c00576d59243c662fcfa7fd8f96b1f5ee162bf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Dayflow/Dayflow/Views/Onboarding/ChatCLIDetectionViews.swift:158-171 | Dayflow/Dayflow/Views/Onboarding/ChatCLITestView.swift:41-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/Onboarding/ChatCLIDetectionViews.swift:158\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/ChatCLIDetectionViews.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d09837297421eb88146198d3a3a0cb1c88c27b25268bf895fd1fb99ee2276c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift:910-923 | Dayflow/Dayflow/Views/UI/MainView/Layout\u002BPanels.swift:193-205 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d76eadaa637d90a3875393a38dc6691eaed0668254735d1ef6656745e16046"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketDaybreakHeader.swift:107-120 | Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketDaybreakHeader.swift:148-160 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketDaybreakHeader.swift:107\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketDaybreakHeader.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"36413714295cb93915547d0c6d9b30d9034f49e60240c4e1e4b10e7623d3c242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 3): Dayflow/Dayflow/Views/UI/DailyView\u002BStandup.swift:333-345 | Dayflow/Dayflow/Views/UI/DailyView\u002BStandup.swift:418-431 | Dayflow/Dayflow/Views/UI/DailyView\u002BStandup.swift:501-510 \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 \u0060Dayflow/Dayflow/Views/UI/DailyView\u002BStandup.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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Dayflow/Dayflow/Views/UI/DailyView\u002BStandup.swift:349\u0060 calls \u0060scheduleStandupRegenerateReset\u0060 and \u0060Dayflow/Dayflow/Views/UI/DailyView\u002BStandup.swift:435\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":"Dayflow/Dayflow/Views/UI/DailyView\u002BStandup.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2ce2ace3a35875667cede4153d733ce2629c15a1594087338dbad13c0b9723"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Dayflow/Dayflow/Views/UI/DailyWorkflowComputation.swift:295-308 | Dayflow/Dayflow/Views/UI/DailyWorkflowComputation.swift:335-348 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/DailyWorkflowComputation.swift:295\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":"Dayflow/Dayflow/Views/UI/DailyWorkflowComputation.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9fce05976ef997437a601936dd368bddf22f9653edf89f0d4e6ec3778bd16b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Dayflow/Dayflow/Views/UI/MainView/DateNavigationControls.swift:27-39 | Dayflow/Dayflow/Views/UI/MainView/DateNavigationControls.swift:63-76 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/MainView/DateNavigationControls.swift:27\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":"Dayflow/Dayflow/Views/UI/MainView/DateNavigationControls.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"189ba4e91cce6fa70cafe62ca3e85a57413b143252f585676d1e4af2b22adb27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyApplicationInteractionsSection.swift:191-204 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyApplicationInteractionsSection.swift:238-251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyApplicationInteractionsSection.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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyApplicationInteractionsSection.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2735524c9f3d364542bf0d32a902c45734e92cf8944e1ee5501f3ae08b755b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): Dayflow/Dayflow/Views/UI/WhatsNewView.swift:440-452 | Dayflow/Dayflow/Views/UI/WhatsNewView.swift:576-588 | Dayflow/Dayflow/Views/UI/WhatsNewView.swift:696-707 | Dayflow/Dayflow/Views/UI/WhatsNewView.swift:753-765 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/WhatsNewView.swift:440\u0060 it begins part-way through the construct above it, so those exact 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, \u0060Dayflow/Dayflow/Views/UI/WhatsNewView.swift:589\u0060 calls \u0060disabled\u0060, \u0060opacity\u0060 and \u0060Dayflow/Dayflow/Views/UI/WhatsNewView.swift:708\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":"Dayflow/Dayflow/Views/UI/WhatsNewView.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaac0983be07755c9d464754dc3dee119a701df176cde137df8975a171f95705"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Dayflow/Dayflow/Core/AI/ChatMetadataParser.swift:36-49 | Dayflow/Dayflow/Core/AI/ChatMetadataParser.swift:58-71 | Dayflow/Dayflow/Core/AI/ChatMetadataParser.swift:80-93 \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 \u0060Dayflow/Dayflow/Core/AI/ChatMetadataParser.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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ChatMetadataParser.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78e92f428b2ff4c608444ecebb3cef82423c643f06ecf8e82e51ee10876f548"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 3): Dayflow/Dayflow/Views/UI/Settings/SettingsProvidersTabView.swift:396-408 | Dayflow/Dayflow/Views/UI/Settings/SettingsProvidersTabView.swift:432-441 | Dayflow/Dayflow/Views/UI/Settings/SettingsProvidersTabView.swift:478-489 \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 \u0060Dayflow/Dayflow/Views/UI/Settings/SettingsProvidersTabView.swift:396\u0060 it does not close everything it opens, so those exact 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":"Dayflow/Dayflow/Views/UI/Settings/SettingsProvidersTabView.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"68551be3221b4f950b77fce2926f1bbe5b0e0e583672f9e19d78a4791f710585"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift:17-29 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BTimeline.swift:17-29 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/CodexProvider\u002BTimeline.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 110 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 \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be872da41f33058a88a3101f0b94e0eebb8cfcdaafd197d43f08b12c5ea069b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift:318-330 | Dayflow/Dayflow/Core/AI/DailyRecapScheduler.swift:385-396 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift:318\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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":"Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa53bd7b121a163007550d7a25c4e74a73aa925022fb9fbecd084894cd9059f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:399-411 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:581-596 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:399\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":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79f10e5b717d05089edaa18b9e3d198c79fa8007025290d969a99b4841c7355"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift:254-266 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift:67-79 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. 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":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee556b3dd2f2d65f816c81e53ca03959dac63c30ef3e938166ae1c3ce3fb1bae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift:67-75 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift:149-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 \u0060Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift:67\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"1696b10dd90126cec66d9ed94687cd9274b6c0c33ec059eb002aa2aa5b114908"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Dayflow/Dayflow/Views/Components/DayGoalSetupComponents.swift:370-382 | Dayflow/Dayflow/Views/UI/ChatStylesAndDebug.swift:143-154 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/Components/DayGoalSetupComponents.swift:370\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":"Dayflow/Dayflow/Views/Components/DayGoalSetupComponents.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"f065fc005242e2ef4e4795f4406770bb877ba129fac6cea60f4659e4cfb879b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:282-294 | Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:671-683 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:282\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":"Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d8c937daa5bd10023d2fe343ccf4db8f10f7e819978560c5423272d2c45413"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:825-837 | Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeFlow.swift:247-259 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff15e94af2b0320f41b3f06387fa11f0d27bfaf5c715723c4e1815a4bdfc321f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Agents/AgentsBriefingView.swift:73-85 | Dayflow/Dayflow/Views/UI/Agents/AgentsCardsView.swift:100-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":"Dayflow/Dayflow/Views/UI/Agents/AgentsBriefingView.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de3d925895da1115e0f7c900c5103ce4a5aece817971a684d160916d81efc08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift:434-446 | Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift:450-462 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift:434\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a8816a4b8ddc5db0837e0a09474336b3a84343456a2fb24ec351655f8d314d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Dayflow/Dayflow/Views/UI/DailyAccessLockedViews.swift:219-231 | Dayflow/Dayflow/Views/UI/DailyAccessLockedViews.swift:403-415 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/DailyAccessLockedViews.swift:219\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyAccessLockedViews.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"24554d238e323ceb14a42cc7a3c7fcaa320bc7ff9e6bd3056d75e48cccd10bc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Flow/FlowSupportChatView.swift:67-79 | Dayflow/Dayflow/Views/UI/Flow/FlowWaitlistChatView.swift:37-49 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/Flow/FlowSupportChatView.swift:67\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, \u0060Dayflow/Dayflow/Views/UI/Flow/FlowSupportChatView.swift:81\u0060 calls \u0060frame\u0060 and \u0060Dayflow/Dayflow/Views/UI/Flow/FlowWaitlistChatView.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":"Dayflow/Dayflow/Views/UI/Flow/FlowSupportChatView.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44ff9ed95cf5a862d92bd93bb9783fe89e0f471200d7bc5575b462536d466ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Dayflow/Dayflow/Views/UI/MainView/DateNavigationControls.swift:86-97 | Dayflow/Dayflow/Views/UI/MainView/Support.swift:197-209 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/DateNavigationControls.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b17823e9d8e5d02c48f3406ebe97c8202378f5f3d50c5d0f1e6b284441070c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Settings/SettingsStorageTabView.swift:153-165 | Dayflow/Dayflow/Views/UI/Settings/SettingsStorageTabView.swift:252-264 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/Settings/SettingsStorageTabView.swift:153\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Settings/SettingsStorageTabView.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"01cb18e7bd3c3d1acbc793ba8b2f4eaa22c5999ed716fac275438ba5506ba6f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:206-218 | Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:634-646 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:206\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":"Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a717f70ea70046c5db38e99c37ad2a55bc43f2c813cb1e60c39cfbc8d369d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Dayflow/Dayflow/Views/UI/WhatsNewView.swift:491-503 | Dayflow/Dayflow/Views/UI/WhatsNewView.swift:622-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/WhatsNewView.swift:491\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/WhatsNewView.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ed499bb939b698c35945241337d9f8c187c89c8a6d5b3616b3f527af3affa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BFrames.swift:153-164 | Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift:125-136 | Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift:244-255 | Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift:305-316 | Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift:360-371 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BFrames.swift:153\u0060 it does not close everything it opens, so those exact 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 \u0060batchId\u0060 to \u0060Int64? ) async throws -\u003E (SummaryResponse\u0060 in one and \u0060Int64?) async throws -\u003E ( TitleResponse\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":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BFrames.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"874f36611ebc991406c770fdd167688d72a03dd25e03bcf1bc1adaf79431f8e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:342-353 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:536-547 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:733-744 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:881-892 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:342\u0060 it begins part-way through the construct above it, so those exact 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, \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:548\u0060 calls \u0060capture\u0060 and \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:354\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":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61591a91646fe7b48b6125b5dfe7b4111ce01ee47dc2c611a5271f874d77ffd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 4): Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:206-216 | Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:327-337 | Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:416-425 | Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:610-621 \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":"Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce1a968be05a9c0edb1bd59c26b2f0d975554ef1039db21d8d0c93c77943020"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BActivityCards.swift:68-79 | Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTranscription.swift:76-87 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BActivityCards.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTranscription.swift\u0060 as WHOLE FILES: this scan already matched 3 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. 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":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BActivityCards.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"8781bf31293a7055bdd417ac918b87ae0b2f2460bb49ab07e1525fe80b0bec68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Dayflow/Dayflow/Core/AI/CodexProvider\u002BTranscription.swift:98-108 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BTranscription.swift:202-213 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/CodexProvider\u002BTranscription.swift:98\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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":"Dayflow/Dayflow/Core/AI/CodexProvider\u002BTranscription.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"4071ea2d0fdd518bab829316870eeb75880307bf4fec70b2eb7da4bbaf8d1528"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift:792-803 | Dayflow/Dayflow/Core/AI/DailyRecapScheduler.swift:415-426 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f415f1f6b8757c55e8d6d942927a1da5d905a91755540c1ce680bba4c0bbb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BPrompting.swift:37-48 | Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift:84-95 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BPrompting.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift\u0060 as WHOLE FILES: this scan already matched 4 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. 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 \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BPrompting.swift:37\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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BPrompting.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab2a6fb697b51dcc9613caab2e7e210cfaaaec25da4483de82f9a8934cc86c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Dayflow/Dayflow/Core/AI/OllamaProvider\u002BNetworking.swift:131-142 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BNetworking.swift:175-186 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/OllamaProvider\u002BNetworking.swift:131\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/OllamaProvider\u002BNetworking.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b25f216e540d28efe85ec5e037413ca94034f7b9f7dea6a7b2765263de463a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift:69-78 | Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift:7-18 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift:69\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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":"Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e37ed040e5853b7da21995b0c035d63214260bccb1b73f2997166eb0a6b089"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Dayflow/Dayflow/Core/Flow/FlowEarlyBirdController.swift:144-155 | Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefMenuBarNotice.swift:138-149 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"Dayflow/Dayflow/Core/Flow/FlowEarlyBirdController.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f419b00c9829246d08cedabb37be2abfc7a3c0ed60be479beb7d58d46dc9f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BReprocessing.swift:115-126 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BReprocessing.swift:195-206 \u2014 both copies are in the same file, so extract the block 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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BReprocessing.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f27c3e8e2a2e8cd425d41c42c6e81a764e1c7903d6df81a1139348de003db0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): Dayflow/Dayflow/System/DayflowAuthManager.swift:515-526 | Dayflow/Dayflow/System/DayflowAuthManager.swift:613-621 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/System/DayflowAuthManager.swift:515\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/System/DayflowAuthManager.swift"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac11dc50f0809bdf1b371ab053cc6dcd069ac3667157ee8e62a5e22e608ff731"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Dayflow/Dayflow/System/DayflowAuthManager.swift:647-658 | Dayflow/Dayflow/System/DayflowAuthManager.swift:752-763 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/System/DayflowAuthManager.swift:647\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, \u0060Dayflow/Dayflow/System/DayflowAuthManager.swift:751\u0060 calls \u0060clearPendingReferralCode\u0060 and \u0060Dayflow/Dayflow/System/DayflowAuthManager.swift:646\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":"Dayflow/Dayflow/System/DayflowAuthManager.swift"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf7584ba0abddf2deda3d2a0b1a3c4b505a0a0402f9a70300f86f1c995bb677"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Dayflow/Dayflow/Views/Components/ToolCallBubble.swift:164-175 | Dayflow/Dayflow/Views/Components/ToolCallBubble.swift:177-188 \u2014 both copies are in the same file, so extract the block 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":"Dayflow/Dayflow/Views/Components/ToolCallBubble.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c78d06daa2c6d4774811238a4ba51d43af4b176e19106b7b21aafe1ecc1098"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Dayflow/Dayflow/Views/Onboarding/HowItWorksView.swift:86-95 | Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeFlow.swift:232-243 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060Dayflow/Dayflow/Views/Onboarding/HowItWorksView.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":"Dayflow/Dayflow/Views/Onboarding/HowItWorksView.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"468249784623eec1712ab8f1707a552c9ee0ecd3f7d62309370277df9d93faf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeFlow.swift:212-223 | Dayflow/Dayflow/Views/UI/Agents/AgentsView.swift:167-178 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeFlow.swift:212\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006010\u0060 in one and \u006014\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":"Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeFlow.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"f592a2c9aa2d8946dee908ebe4ec0a8ce502aee38bb6c60e13eb754d0d4dc792"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift:776-787 | Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift:874-885 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift:776\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da8818bc74334e5c5744b89d1df270b0a539309b955f6698854aed81cc3b4c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Dayflow/Dayflow/Views/UI/GitHubStarPromptCard.swift:173-185 | Dayflow/Dayflow/Views/UI/SurveyPromptCard.swift:261-273 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/GitHubStarPromptCard.swift:173\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/GitHubStarPromptCard.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6079628430189e0aa130cf12d8e7067e3103b84dddd0a2475a3ccbd94939cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift:568-578 | Dayflow/Dayflow/Views/UI/VideoThumbnailView.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift:568\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"8798b0f231d8f50a507370b3abf424333590c5b08099641ac4380a0d31ef9fff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshowPlayback.swift:264-274 | Dayflow/Dayflow/Views/UI/TimelineReviewFrameLoading.swift:92-103 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060Dayflow/Dayflow/Views/UI/TimelineReviewFrameLoading.swift:92\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshowPlayback.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"26cd121bfa2ea8b808c20ee88a6953bd67f48ab1d9514bf0bd20c62efdf1be07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshowPlayback.swift:305-316 | Dayflow/Dayflow/Views/UI/TimelineReviewFrameLoading.swift:147-158 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshowPlayback.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1a3133a7151105bf9eb829fe63a5c76abe00b77169a8a7bc54f596137c1821"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Settings/SettingsDataTabView.swift:337-348 | Dayflow/Dayflow/Views/UI/Settings/SettingsDataTabView.swift:352-363 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/Settings/SettingsDataTabView.swift:337\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Settings/SettingsDataTabView.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c56d85c8b22da9c0434ce0830addf714e40b73a0dc22f30652ce298f4066352"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 5): Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:206-215 | Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:312-319 | Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:327-336 | Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:416-424 | Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:610-620 \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 \u0060Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:206\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00608\u0060 in one and \u00604\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:623\u0060 calls \u0060VStack\u0060, \u0060HStack\u0060 and \u0060Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:320\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":"Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1251ee38ad1dbe399f07ad74db55bcf848db775ea9e0f1b47aa35207aafa97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:649-659 | Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:722-732 | Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:829-839 | Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeFlow.swift:251-261 | Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeRoleSelectionStep.swift:109-119 \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 \u0060Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:649\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"232eb7f995141a5336eaa36f9a6a488785c4b74271c985b99639ea809fbe4e4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 4): Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:158-166 | Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:645-655 | Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:718-728 | Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeRoleSelectionStep.swift:105-115 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift\u0060 and \u0060Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeRoleSelectionStep.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 85 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":"Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a769ee90496a2d3b74b599a662f202debe3f8b8936c61ef157a304f785b2d03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:420-430 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:610-620 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:778-788 \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 \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:420\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":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"43aeabfb283bf8939bb471dc757f77105171dbfbcd6735f66671c082f7a599c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BFrames.swift:310-320 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift:196-206 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift:279-289 \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 \u0060Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BFrames.swift:310\u0060 it does not close everything it opens, so those exact 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, \u0060Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift:192\u0060 calls \u0060max\u0060 and \u0060Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BFrames.swift:308\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":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BFrames.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0fea40fa5a8e3dbf3e87870847ea4e54f046416dadd01492230bbd0e686a50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Dayflow/Dayflow/Core/Flow/FlowEarlyBirdController.swift:146-156 | Dayflow/Dayflow/Core/Flow/FlowOverlayController.swift:113-123 | Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefMenuBarNotice.swift:140-150 \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 \u0060Dayflow/Dayflow/Core/Flow/FlowEarlyBirdController.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. 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":"Dayflow/Dayflow/Core/Flow/FlowEarlyBirdController.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f57c9efad4e737bad00bbdd7d9e17fc721ac30f94a6ac3201621b2bc0b072f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift:960-970 | Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift:1001-1011 | Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift:1042-1052 \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 \u0060Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift:960\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":"Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb1d1a2571f612b7698bfe56c259af98018cc22b50e48c6ca128a48cdf7c9b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:807-817 | Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeFlow.swift:212-222 | Dayflow/Dayflow/Views/UI/Agents/AgentsView.swift:167-177 \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 \u0060Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:807\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00608\u0060 in one and \u006010\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":"Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"e541b3fbe9703d642139945095b434c83c4e31a1a0910ad406b01c0a10597f66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift:157-167 | Dayflow/Dayflow/Views/UI/Settings/SettingsBrowserPrivacySection.swift:86-96 | Dayflow/Dayflow/Views/UI/Settings/SettingsBrowserPrivacySection.swift:114-124 \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 \u0060Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift:157\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060alignment\u0060 to \u0060.trailing\u0060 in one and \u0060.leading\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0397127b753296a61c6398a4007b6f65e8ea1dce2291fb64c84934e5c66cbe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ChatService.swift:673-683 | Dayflow/Dayflow/Core/AI/ChatService.swift:688-698 \u2014 both copies are in the same file, so extract the block 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":"Dayflow/Dayflow/Core/AI/ChatService.swift"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d5069ecc202f3dd45896a414ef7ac97d601fe8bc6483b4787f7418afc5a97a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Dayflow/Dayflow/Core/AI/CodexProvider\u002BActivityCards.swift:59-69 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BTranscription.swift:181-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 \u0060Dayflow/Dayflow/Core/AI/CodexProvider\u002BActivityCards.swift:59\u0060 it begins part-way through the construct above it, so those exact lines 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":"Dayflow/Dayflow/Core/AI/CodexProvider\u002BActivityCards.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f5d164bbc8ad7e27526f53de4619eb752e224715959c2471673e36d428bf9ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Dayflow/Dayflow/Core/AI/DailyRecapScheduler.swift:210-220 | Dayflow/Dayflow/Views/UI/DailyView\u002BStandup.swift:384-394 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060Dayflow/Dayflow/Core/AI/DailyRecapScheduler.swift:210\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DailyRecapScheduler.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"931c948adadc8747b2ed7e176b731cd74a5d1cdc5d5e7c8f3f53b4779b45c307"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GemmaBackupProvider.swift:194-204 | Dayflow/Dayflow/Core/AI/OllamaProvider.swift:131-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe4241cf84ab95939042bc527a64022c79515e89ad9f1e1f4645e8e46f72494"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineReview.swift:230-240 | Dayflow/Dayflow/Views/UI/TimelineReviewOverlay.swift:658-668 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineReview.swift:230\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineReview.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"123045c4454a79c394fe6a8c5d9eb8cbce1bc2fbec645982c879981ca0e524b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Dayflow/Dayflow/Core/Weekly/WeeklyDashboardBuilder.swift:406-416 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyWorkflowSection.swift:299-309 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"Dayflow/Dayflow/Core/Weekly/WeeklyDashboardBuilder.swift"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d88ac6b7f45e496b5e1af25e43b4dccaf7e9286a96e6e3e98a9d96c972c316e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Dayflow/Dayflow/Views/Components/DayFocusSummarySection.swift:68-78 | Dayflow/Dayflow/Views/Components/DayFocusSummarySection.swift:97-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/DayFocusSummarySection.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"297849e8fc0a9c6b4a26ea010afc87ed1bd542b5f32b15fde4251bb461364311"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift:249-259 | Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift:315-325 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift:249\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99f498d1ca3d694ce9234d2d676e04e0f3df51f57128720ba3d9218faee6feb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Dayflow/Dayflow/Views/Onboarding/HowItWorksView.swift:117-127 | Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:677-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/Onboarding/HowItWorksView.swift:117\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/HowItWorksView.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce1b2c54b627cb7740926a00bfcf534dc5a4d92ac0f67de4415f1f9a71cb646"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:782-792 | Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeRoleSelectionStep.swift:82-92 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift\u0060 and \u0060Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeRoleSelectionStep.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 85 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 \u0060Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:782\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff355ae4086328b67938e8582a7c333f9a481815db0aca75ed703ef7a415fd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Dayflow/Dayflow/Views/UI/ChatView\u002BContent.swift:31-41 | Dayflow/Dayflow/Views/UI/ChatWelcomeComponents.swift:84-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 \u0060Dayflow/Dayflow/Views/UI/ChatView\u002BContent.swift:31\u0060 it begins part-way through the construct above it, so those exact 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, \u0060Dayflow/Dayflow/Views/UI/ChatWelcomeComponents.swift:95\u0060 calls \u0060scaleEffect\u0060 and \u0060Dayflow/Dayflow/Views/UI/ChatView\u002BContent.swift:42\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":"Dayflow/Dayflow/Views/UI/ChatView\u002BContent.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84d1dc8d2de87c0b141fbcdfe9f33bb331821f2f42f6727a777a06c701eb3a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Dayflow/Dayflow/Views/UI/DailyAccessLockedViews.swift:205-215 | Dayflow/Dayflow/Views/UI/DailyAccessLockedViews.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 \u0060Dayflow/Dayflow/Views/UI/DailyAccessLockedViews.swift:205\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyAccessLockedViews.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1b047e76ed55b84b48f98a49d1dedd9a1cbc6b558ff72525479a2bb9b30887"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefCompletedView.swift:171-181 | Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefSavedView.swift:63-73 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefCompletedView.swift:171\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, \u0060Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefSavedView.swift:60\u0060 calls \u0060Image\u0060, \u0060font\u0060, \u0060system\u0060 and \u0060Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefCompletedView.swift:170\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":"Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefCompletedView.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2396cf0edf269f0b94dc7aea0b2111ae5e2d7e07181af893f569b970a5fdf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Flow/FlowOverlayView.swift:212-218 | Dayflow/Dayflow/Views/UI/Flow/FlowOverlayView.swift:251-261 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/Flow/FlowOverlayView.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":"Dayflow/Dayflow/Views/UI/Flow/FlowOverlayView.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9aa9dd7f3ccdbb350a563ffe2cfbc4dcf6c52099fb7b79e6f9788e93508170"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:49-59 | Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:627-637 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:49\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86938786206c536959b57e0bd4572f8c2e519799e5ec00b6bd6bce38035d843"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): Dayflow/Dayflow/Views/Onboarding/HowItWorksView.swift:116-125 | Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:160-169 | Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:184-193 | Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:287-296 | Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:676-685 | Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeChooseProviderStep.swift:384-393 \u2014 there are 6 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/Onboarding/HowItWorksView.swift:116\u0060 it begins part-way through the construct above it, so those exact 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, \u0060Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:194\u0060 calls \u0060disabled\u0060, \u0060opacity\u0060 and \u0060Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeChooseProviderStep.swift:394\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":"Dayflow/Dayflow/Views/Onboarding/HowItWorksView.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"003b5a7f5363eec87550fa4660fda6bcbbc10a946759237adb53a57b2bf6bf38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:235-244 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:417-428 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:607-618 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:775-786 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:235\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d2846ca166b4eea32d02f108602cd4bda2b2ef8b838433e8ccc182925531b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift:284-293 | Dayflow/Dayflow/Views/Components/DayCategorySelectionEditor.swift:139-148 | Dayflow/Dayflow/Views/Components/DayGoalSetupComponents.swift:384-393 | Dayflow/Dayflow/Views/UI/ChatStylesAndDebug.swift:156-165 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift\u0060 and \u0060Dayflow/Dayflow/Views/Components/DayCategorySelectionEditor.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 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 \u0060Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift:284\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ff94580ad4ef3ed0feeccade20c64abd1d724eff19d11560e238be7969648e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 4): Dayflow/Dayflow/Views/Components/ReferralSurveyView.swift:188-197 | Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:782-791 | Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:143-149 | Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeRoleSelectionStep.swift:82-91 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift\u0060 and \u0060Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeRoleSelectionStep.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 85 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 \u0060Dayflow/Dayflow/Views/Components/ReferralSurveyView.swift:188\u0060 it begins part-way through the construct above it, so those exact 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":"Dayflow/Dayflow/Views/Components/ReferralSurveyView.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f1e78f49bdb074ebfe9873cb1c9262117e3ff5e465bb4922ddf34178da54051"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 4): Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift:159-166 | Dayflow/Dayflow/Views/UI/Settings/SettingsBrowserPrivacySection.swift:35-44 | Dayflow/Dayflow/Views/UI/Settings/SettingsBrowserPrivacySection.swift:88-95 | Dayflow/Dayflow/Views/UI/Settings/SettingsBrowserPrivacySection.swift:116-123 \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 \u0060Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift:159\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00604\u0060 in one and \u00603\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift:158\u0060 calls \u0060VStack\u0060 and \u0060Dayflow/Dayflow/Views/UI/Settings/SettingsBrowserPrivacySection.swift:34\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":"Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65b0d184ec8b0e6e2b4d464a02c33f560f0e6b27036511473751c2d89f73142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:383-392 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:563-572 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:757-766 \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":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4f8b350cf4bfab527cbe4cfe28c6b7f284c18c201316ede8e73561910ae85b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:609-618 | Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:682-691 | Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeRoleSelectionStep.swift:27-36 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift\u0060 and \u0060Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeRoleSelectionStep.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 85 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 \u0060Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:609\u0060 it does not close everything it opens, so those exact 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, \u0060Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:619\u0060 calls \u0060lineSpacing\u0060 and \u0060Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:692\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":"Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aeb84529ee5bed87efb2fc3b2db761df4c863a3e6f6177fdd7cfe0f8c46dd08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift:850-859 | Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefSections.swift:315-324 | Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefSections.swift:606-615 \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 \u0060Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift:850\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"53cabaad6fb53cd46d5a74f1a66f9d85e54e5ff904915b339a6f49abc77df4af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Dayflow/Dayflow/Views/UI/Settings/SettingsReferralProgramCard.swift:267-276 | Dayflow/Dayflow/Views/UI/Settings/SettingsReferralProgramCard.swift:299-308 | Dayflow/Dayflow/Views/UI/Settings/SettingsReferralProgramCard.swift:338-347 \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 \u0060Dayflow/Dayflow/Views/UI/Settings/SettingsReferralProgramCard.swift:267\u0060 it begins part-way through the construct above it, so those exact 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, \u0060Dayflow/Dayflow/Views/UI/Settings/SettingsReferralProgramCard.swift:277\u0060 calls \u0060textSelection\u0060 and \u0060Dayflow/Dayflow/Views/UI/Settings/SettingsReferralProgramCard.swift:309\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":"Dayflow/Dayflow/Views/UI/Settings/SettingsReferralProgramCard.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9fa7370f8a4aad1f40c38ac9457014869b20de82d3deb9c7acbdf39e5e3ce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTranscription.swift:12-21 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BTranscription.swift:12-21 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTranscription.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTranscription.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65e1d49b548c1563941de6b90051f3233e6c56d828459ee92c6b0fdc4712a61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Dayflow/Dayflow/Core/AI/CodexProvider\u002BActivityCards.swift:112-121 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BTranscription.swift:193-202 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060Dayflow/Dayflow/Core/AI/CodexProvider\u002BActivityCards.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/CodexProvider\u002BActivityCards.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b20b2816faf14c106761283d88295d161235d84ce3d9aac2a6cb9cf14e1ecd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201310 lines \u00D7 4): Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:267-270 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:440-449 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:642-645 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:798-807 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:440\u0060 it begins part-way through the construct above it, so those exact 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, \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:449\u0060 calls \u0060setValue\u0060 and \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:645\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":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55daf5b5095206a554e73e26d4d3f5d0c5f3fe1512797c009b57de559a98a55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:918-927 | Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift:286-293 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6a621918711a1b87937fa088ccfed37793ca95e39a05f2dda708e8bf3a6e65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BText.swift:125-134 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift:228-237 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BText.swift:125\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BText.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"49509593ab7dd5b1d390b807c668ffa4d8a0cac28f1e96095516b3223bbc20c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift:159-168 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift:453-462 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift:159\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c5af2fdff0e34d6cf7bef9f42c892a2a907f7810a5e014c0008dfef51ff89e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Dayflow/Dayflow/Core/Flow/FlowOverlayController.swift:112-121 | Dayflow/Dayflow/System/PermissionHelperPanel.swift:451-460 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060Dayflow/Dayflow/Core/Flow/FlowOverlayController.swift:112\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":"Dayflow/Dayflow/Core/Flow/FlowOverlayController.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"df09c564834874070f78b79fa50de94a1fd2b75fa64216f43a500a4fdd74d4ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift:182-191 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift:280-289 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5e22aa568b40104127f43daaed80425234904a724c2835cfd2648bc3afef3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BObservations.swift:38-47 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BObservations.swift:67-76 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/Recording/StorageManager\u002BObservations.swift:38\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BObservations.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ba15f59abe100660d71a04d843def46c4c0c86ba23bc377117e22886f0b9bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BReprocessing.swift:62-71 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BReprocessing.swift:159-165 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/Recording/StorageManager\u002BReprocessing.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. 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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BReprocessing.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed4a7a31cc2a11af868d1ca4196510d635ca72f4f6adce5a4a56d28e270ac1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 2): Dayflow/Dayflow/Views/Components/DayGoalReviewComponents.swift:162-171 | Dayflow/Dayflow/Views/UI/TimelineReviewChrome.swift:345-350 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060Dayflow/Dayflow/Views/Components/DayGoalReviewComponents.swift:162\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":"Dayflow/Dayflow/Views/Components/DayGoalReviewComponents.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"47452e4d27677a1bdc1148f1a1cfe30b2b501ae978480d8854db959fb9d46a1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Dayflow/Dayflow/Views/Onboarding/APIKeyInputView.swift:27-36 | Dayflow/Dayflow/Views/Onboarding/TerminalCommandView.swift:17-26 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/Onboarding/APIKeyInputView.swift:27\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/APIKeyInputView.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1912071b55e7d032bf9a982252aca9d411f8b0d56d31d8c558d37c34ff51eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:643-652 | Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:654-663 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1501e508efbdfb41eb57d6a797920b5b007db6aa167b674605f8bd914e38d7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:230-239 | Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:354-361 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"837107a5056e56e3d60993cd64d8068fb34db3135b031e27d76f58e2806c5e6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:513-522 | Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:542-551 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:513\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":"Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"9adee153a0653ecbe0717139d8ad3b5e957949f0cd7564b5244bf6b6327678ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Dayflow/Dayflow/Views/UI/GitHubStarPromptCard.swift:159-168 | Dayflow/Dayflow/Views/UI/SurveyPromptCard.swift:244-253 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/GitHubStarPromptCard.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":"Dayflow/Dayflow/Views/UI/GitHubStarPromptCard.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"01aad12f583d52212ac5bc6924d08506c9295d7baff04f22862b5d823a35a7c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift:611-618 | Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift:697-706 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift:611\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006012\u0060 in one and \u00604\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift:696\u0060 calls \u0060HStack\u0060 and \u0060Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift:610\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":"Dayflow/Dayflow/Views/UI/Settings/SettingsAccountSection.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b07b54bcc8dc18e70b2f4fa8e1260264467d974ce8ecad2bee2d883f431133d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:154-163 | Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:651-660 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:154\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00600\u0060 in one and \u00604\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddde0609cdf7d3398ed54208d41c181a35332626f24f4a0d248a531b7b3536db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Dayflow/Dayflow/Views/UI/WhatsNewView.swift:595-604 | Dayflow/Dayflow/Views/UI/WhatsNewView.swift:773-782 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/WhatsNewView.swift:595\u0060 it begins part-way through the construct above it, so those exact 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, \u0060Dayflow/Dayflow/Views/UI/WhatsNewView.swift:772\u0060 calls \u0060frame\u0060 and \u0060Dayflow/Dayflow/Views/UI/WhatsNewView.swift:594\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":"Dayflow/Dayflow/Views/UI/WhatsNewView.swift"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ccc43bc554e51768a3a918c0a73f1e74c4dfb865a9d4a49d2e52e45d05008f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift:256-264 | Dayflow/Dayflow/Views/Components/DayCategorySelectionEditor.swift:111-119 | Dayflow/Dayflow/Views/Components/DayGoalSetupComponents.swift:359-367 | Dayflow/Dayflow/Views/UI/ChatStylesAndDebug.swift:132-140 | Dayflow/Dayflow/Views/UI/Settings/SettingsBrowserPrivacySection.swift:184-192 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift\u0060 and \u0060Dayflow/Dayflow/Views/Components/DayCategorySelectionEditor.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 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 \u0060Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift:256\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e256196d8a9f0cf1e59c02e7c941262d13e8ae7e0d18b2de18371011096313"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BPrompting.swift:33-41 | Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift:234-243 | Dayflow/Dayflow/Core/AI/OllamaProvider.swift:213-222 | Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift:80-88 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BPrompting.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift\u0060 as WHOLE FILES: this scan already matched 4 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. 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 \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BPrompting.swift:33\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BPrompting.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c7374d1fbced2d1d60d2a592e45d936ef6ad003d62d87a33fb24ac6edbf57d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift:973-981 | Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift:999-1007 | Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift:1014-1022 | Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift:1040-1048 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift:973\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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":"Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5fa82a12a9a0d07fd4aa96d062bff923613b2bb731094dd4d46f1917a6106f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift:599-607 | Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:186-194 | Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:673-681 | Dayflow/Dayflow/Views/UI/VideoThumbnailView.swift:112-120 \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":"Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00acb7ce607715a0eb77170bc4e6bf5c2e66a9c8511e78fd532185d62dc13ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BPrompts.swift:15-22 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BPrompts.swift:19-26 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:10-18 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BPrompts.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a17910f7a8d66b8c6968c0a3c85fa68fa53e49b006bdf63d3b220181346845"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Dayflow/Dayflow/Views/UI/GitHubStarPromptCard.swift:160-168 | Dayflow/Dayflow/Views/UI/MainView/Layout.swift:693-701 | Dayflow/Dayflow/Views/UI/SurveyPromptCard.swift:245-253 \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 \u0060Dayflow/Dayflow/Views/UI/GitHubStarPromptCard.swift:160\u0060 it begins part-way through the construct above it, so those exact 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, \u0060Dayflow/Dayflow/Views/UI/MainView/Layout.swift:692\u0060 calls \u0060lineLimit\u0060 and \u0060Dayflow/Dayflow/Views/UI/SurveyPromptCard.swift:244\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":"Dayflow/Dayflow/Views/UI/GitHubStarPromptCard.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d26e637e27bd4b70f594429e4dc3e1d03e6e7f0c67ac313ea46d148ffc93cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift:145-153 | Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.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 \u0060Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift:145\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d8e9e52f9dd8f42b734c42284061511916a7d6da3038832943156c4006f208"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift:805-813 | Dayflow/Dayflow/Core/AI/DailyRecapScheduler.swift:428-436 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae25e55bc20463248954620db7732de31d26934268d8b4fe404eed743ac09208"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift:815-823 | Dayflow/Dayflow/Core/AI/DailyRecapScheduler.swift:438-446 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DailyRecapGenerator.swift"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"e175a45c049a2f96386b61150887fc6ea29ca6c1cc018ce5010eafd57aa2fc75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift:295-303 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift:392-400 \u2014 both copies are in the same file, so extract the block 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":"Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"788ad818fe4ba55c26fb879d985c93f82d771bf6fe38fceea686b2b3c98da6fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Dayflow/Dayflow/Core/Flow/FlowSessionTimeline.swift:210-218 | Dayflow/Dayflow/Core/Flow/FlowSessionTimeline.swift:230-238 \u2014 both copies are in the same file, so extract the block 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":"Dayflow/Dayflow/Core/Flow/FlowSessionTimeline.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47eec7621259d7546f7a063322d9359c2fc779d5a419af8b057176e9f72947b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:144-152 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:1062-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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c71683b5fba5e0c00a2e0c6c2c09f9e04be4c3beceb816023c808f90707208d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Dayflow/Dayflow/Utilities/DayflowTheme.swift:317-325 | Dayflow/Dayflow/Utilities/DayflowTheme.swift:538-546 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Utilities/DayflowTheme.swift:317\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Utilities/DayflowTheme.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf2d012e86899d650884883c666ee64fb95bf3a0566b459f9755d71eb1b2b59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Dayflow/Dayflow/Views/Components/ColorWheelPicker.swift:264-274 | Dayflow/Dayflow/Views/Components/ColorWheelPicker.swift:291-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 \u0060Dayflow/Dayflow/Views/Components/ColorWheelPicker.swift:264\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/ColorWheelPicker.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"3979b15cf2e91dbad14744567f0a7e6aa23c583add3cc8efb446464025dfa7aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefMenuBarNotice.swift:342-350 | Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketMenus.swift:358-366 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefMenuBarNotice.swift:342\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefMenuBarNotice.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93f985329b9300cc7d8f8147b508c2a18f807ba2d0a0b2733c78d08f56a0318"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshowPlayback.swift:139-147 | Dayflow/Dayflow/Views/UI/TimelineReviewPlaybackModels.swift:389-397 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshowPlayback.swift:139\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshowPlayback.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"5195e826313ef9badf7d9a03b8c44e9915d848188dec2aee897cdbe7f85442d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphGlyphs.swift:159-167 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphGlyphs.swift:169-177 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphGlyphs.swift:159\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphGlyphs.swift:168\u0060 calls \u0060RoundedRectangle\u0060, \u0060fill\u0060, \u0060Color\u0060 and \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphGlyphs.swift:178\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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphGlyphs.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e6287e4a1b009776208b2b7c4c997b17430e43a75e216b3edba8846d484901"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Dayflow/Dayflow/Views/UI/WhatsNewView.swift:510-518 | Dayflow/Dayflow/Views/UI/WhatsNewView.swift:678-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 \u0060Dayflow/Dayflow/Views/UI/WhatsNewView.swift:510\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00606\u0060 in one and \u006010\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":"Dayflow/Dayflow/Views/UI/WhatsNewView.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e12e68a5b1524fbf34db7afc9146e2b913f3e0408edd5c2d8d1620a2fcf8fa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:328-335 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:512-519 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:707-714 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:857-864 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:328\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbe0ccaf310ab71be560d3df7114eea474de09efc45f77e0b87dcd9bd699f33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift:620-627 | Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift:268-275 | Dayflow/Dayflow/Core/AI/OllamaProvider.swift:259-266 | Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift:32-39 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift:265\u0060 calls \u0060AppSites\u0060 and \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift:616\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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6a22fde59443681c7e65ee7b89859dd12778f2134bf9bd53a6037a84729e95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:421-427 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:601-607 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:837-844 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:895-902 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1954d6c68d43916e0eeae88061731322484419a9b89234c16e7d35330721f0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:527-534 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:724-731 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:872-879 \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 \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:527\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ac3f2daf5c29bf55510e2a86a8955598d376aa5b763400752d230fe2c54457"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:240-247 | Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift:826-833 | Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeFlow.swift:248-255 \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 \u0060Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:240\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":"Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be97da7de91131c576f024fd4ef0c92a7c722b3820395cd731b2ba90b49141a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift:348-355 | Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:1465-1472 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift:348\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2e21bff0951187bb8f5a53744fc7b001dd83e80b409f468f11414a3673117c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift:208-215 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BTimeline.swift:236-243 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/CodexProvider\u002BTimeline.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BTimeline.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6567bee1290a037c5543da12f308f4595be5972b98ab3f97a13a2395ccfb4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:383-390 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BText.swift:12-19 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BText.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 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 \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6fc44a8fff4e16b517dca5396ab5e88bad407c9cf3badf66607b7470ba2e2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift:64-71 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift:82-88 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift:64\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d88164e91f98b6644a6cabf8d4301c14a2f739cb356bd3a6f12d692b7ed0299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift:240-247 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift:340-347 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift:240\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"804044eff5e0fd9befb4c310550c412f22ea9e179734d930e21e0c2fc17558df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GemmaBackupProvider.swift:25-32 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift:460-467 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05d7f1113f2bf8221875eac86a2ea6920d1dfb4990bfc28461b36aa94c1f76a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Core/AgentAccess/AgentBridgeServer.swift:69-76 | tools/dayflow-cli/Sources/dayflow/Bridge.swift:54-61 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AgentAccess/AgentBridgeServer.swift:69\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AgentAccess/AgentBridgeServer.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e039fe902fa0cb8841546d2dd07551cfb298bc9facf4fe07737aec230e2fbe8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Core/AgentAccess/AgentUsageTelemetryQueue.swift:173-180 | tools/dayflow-cli/Sources/dayflow/AgentUsageTelemetry.swift:205-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. The matched lines also transfer control out of the body holding them, 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":"Dayflow/Dayflow/Core/AgentAccess/AgentUsageTelemetryQueue.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea46c6825c3db05ba5b16c443717d3f19ae70e2c64f441b9bed9eb433d14bdc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift:13-21 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift:28-35 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift:13\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe7230692a78a083c20a73c547365059f5a4bf68063a3e9b01588234b34b8ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift:77-84 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift:102-108 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift:77\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fae0e9d09ba12fcd15c7cabcff847316ca6c0d4c61a87ec2859748e16878270"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift:217-224 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift:258-265 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift:217\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c72d3bb550b5ee463f4bfcbb7fd1df0c9be439cab3af9a16112f413681b81e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift:165-173 | Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift:458-465 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift\u0060 and \u0060Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 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 \u0060Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift:165\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"3585cd58610cb60713d15665201e258c5b9bb03a3375b9a43d76aabc8c588747"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Views/Components/ColorWheelPicker.swift:305-312 | Dayflow/Dayflow/Views/Components/ColorWheelPicker.swift:316-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 \u0060Dayflow/Dayflow/Views/Components/ColorWheelPicker.swift:305\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/ColorWheelPicker.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c5fb01e74e650f589ed027f1cb098f7045eee7cd2913edd13ac18d7ed5a72d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift:470-477 | Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift:575-582 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift:470\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a52e4cfa8ff31fc32452d41c46ff67d63f3881080386f5317a7127f84665c7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20138 lines \u00D7 3): Dayflow/Dayflow/Views/Onboarding/ChatCLIDetectionViews.swift:300-307 | Dayflow/Dayflow/Views/Onboarding/ChatCLIDetectionViews.swift:309-316 | Dayflow/Dayflow/Views/Onboarding/ChatCLIDetectionViews.swift:317-321 \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 \u0060Dayflow/Dayflow/Views/Onboarding/ChatCLIDetectionViews.swift:317\u0060 it begins part-way through the construct above it, so those exact 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, \u0060Dayflow/Dayflow/Views/Onboarding/ChatCLIDetectionViews.swift:300\u0060 calls \u0060Text\u0060 and \u0060Dayflow/Dayflow/Views/Onboarding/ChatCLIDetectionViews.swift:317\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":"Dayflow/Dayflow/Views/Onboarding/ChatCLIDetectionViews.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c86dcc5996cbcbdb688f26df3242eeffd830f382d4b6e48968caf13d5210ac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Views/UI/ChatHistoryPanel.swift:20-27 | Dayflow/Dayflow/Views/UI/ChatView\u002BContent.swift:253-261 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/ChatHistoryPanel.swift:20\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/ChatHistoryPanel.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"969260edf019644e611f18e28c4e908fb2bd385bf4d9c02e9e49dfcf88a2d9c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:203-210 | Dayflow/Dayflow/Views/UI/TimelineReviewChrome.swift:15-22 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f429b3b6b1fa88c79370b239c6b05aa022586cceb729bb7a20bb366fb0bf9de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Settings/ProvidersSettingsViewModel.swift:831-838 | Dayflow/Dayflow/Views/UI/Settings/ProvidersSettingsViewModel.swift:850-857 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/Settings/ProvidersSettingsViewModel.swift:831\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Settings/ProvidersSettingsViewModel.swift"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b9f0f26b75de03511f5a25c74f247563ed8deebb59e98600cc4f6d41200780"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.swift:108-115 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextShiftComparisonSection.swift:78-85 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.swift:116\u0060 calls \u0060lineLimit\u0060, \u0060minimumScaleFactor\u0060 and \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextShiftComparisonSection.swift:86\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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyContextChartsSection.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e7f94cfb49fcda68e2328a66fb5fb2b56ebe056c1838f1ef49f6825dc7dcd01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift:38-45 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift:135-142 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift:38\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"5402b5bf46e35a80db3a1b20bc266330058f107f64dafc20ea596e61808e5f30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Dayflow/Dayflow/Views/UI/Agents/AgentsOverviewView.swift:295-301 | Dayflow/Dayflow/Views/UI/Settings/SettingsProvidersTabView.swift:691-697 | Dayflow/Dayflow/Views/UI/SettingsView.swift:216-222 | Dayflow/Dayflow/Views/UI/WhatsNewView.swift:970-976 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00606\u0060 in one and \u00604\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Agents/AgentsOverviewView.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f97641ba1e2aee0c366c445e74650f362b50e0b5d4f70430a28222698535e8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:204-210 | Dayflow/Dayflow/Views/UI/TimelineReviewChrome.swift:16-22 | Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:254-260 | Dayflow/Dayflow/Views/UI/VideoPlayerModal.swift:699-705 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:204\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e19c4db52d217b946cb55e754e757b12ff94d89e354f409ff842b8accd62c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift:60-66 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift:216-222 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift:257-263 \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 \u0060Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BMaintenance.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3bfceeb9d152212f8176ee0986dd7c853e57c8ff3d2f3811df681cc1e7aee9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:399-405 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:512-520 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:575-583 \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 \u0060Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:399\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2782a0bc48c012e48f125115c63c64b2d0a4da897bb72d84d184b9bcecf882"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:419-425 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:536-542 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift:599-605 \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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3610ad2c18f17d81a1c4add5f52e67e3a2a40887636bc10ccf86fcbd3154042"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Dayflow/Dayflow/Core/Weekly/WeeklyDashboardBuilder.swift:490-497 | Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift:166-173 | Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift:459-465 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift\u0060 and \u0060Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 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 \u0060Dayflow/Dayflow/Core/Weekly/WeeklyDashboardBuilder.swift:490\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Weekly/WeeklyDashboardBuilder.swift"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"723b189b650f70b94c890aae63cb66d1764c86be8c570682ccd760a41c241290"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): Dayflow/Dayflow/App/DayflowApp.swift:361-367 | Dayflow/Dayflow/App/DayflowApp.swift:372-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/App/DayflowApp.swift:361\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/App/DayflowApp.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc5d95665ec1dad9ea81a8c2c147289bd639b91034d158c423a09e8c700d0146"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BPrompting.swift:11-17 | Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift:57-63 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BPrompting.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/TimelineOutputSupport.swift\u0060 as WHOLE FILES: this scan already matched 4 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. 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 \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BPrompting.swift:11\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BPrompting.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"516ebc34435b936ec51e8d13f6340fa10ebf1a0d93576c2ebe67b7689fec11b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift:74-81 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.swift:91-98 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift:74\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f6ceae9f932c06c694a114f63a2282be83c88ead79b2d96a0c8a1dc91bbf8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Dayflow/Dayflow/System/DayflowAuthManager.swift:552-558 | Dayflow/Dayflow/System/DayflowAuthManager.swift:563-569 \u2014 both copies are in the same file, so extract the block 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":"Dayflow/Dayflow/System/DayflowAuthManager.swift"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b5a3f90d422b36e82c2f823394bbc80377131e61d6c45e78b942d445282279"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Dayflow/Dayflow/Utilities/DayflowTheme.swift:243-249 | Dayflow/Dayflow/Utilities/DayflowTheme.swift:253-259 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Utilities/DayflowTheme.swift:243\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Utilities/DayflowTheme.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"170104d6c43bb91c1c8c80464543333ac776595b36d30d18d4fe6e4b22984af7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Dayflow/Dayflow/Views/Components/DaySummaryView.swift:265-271 | Dayflow/Dayflow/Views/Components/DaySummaryView.swift:914-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/Components/DaySummaryView.swift:265\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/DaySummaryView.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"392d6f6bef9b84c60aebc36af1fc6ae74d9529afdd9f596d8b527df0592f6354"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:160-166 | Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:227-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 \u0060Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift:160\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u0060scaled(4)\u0060 in one and \u0060scaled(10)\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/Prototype/DayflowProOnboardingSignIn.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"14da3e8682cefc4d205ec2c4e5eea2a179ede02435ab1efe7296f3ef79f8f245"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Dayflow/Dayflow/Views/UI/ChatView\u002BContent.swift:476-482 | Dayflow/Dayflow/Views/UI/DailyAccessLockedViews.swift:239-245 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060Dayflow/Dayflow/Views/UI/ChatView\u002BContent.swift:476\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/ChatView\u002BContent.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0924500f89113186a8d2d66d026f26d4fbc378eff05cbfa5adf8a094d4e8fb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Dayflow/Dayflow/Views/UI/DailyView\u002BStandup.swift:72-78 | Dayflow/Dayflow/Views/UI/DailyView\u002BStandup.swift:126-132 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/DailyView\u002BStandup.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":"Dayflow/Dayflow/Views/UI/DailyView\u002BStandup.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a65b0e9c5560649b3774ba65594bf09ad97fb4521ce4f49de7964be6c56a488d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift:372-378 | Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift:393-399 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift:372\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"c989c8ae8f299c686dee3f137f822939f132211a90875a4fde96a107a712a11c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphLayout.swift:231-237 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphLayout.swift:410-416 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphLayout.swift:231\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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphLayout.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ad7d03a9b3c63ec662a587db40ff8978609d9fa32b061afeefb8652acedc14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Dayflow/Dayflow/Views/Components/LongestFocusCard.swift:259-264 | Dayflow/Dayflow/Views/Components/LongestFocusCard.swift:266-271 | Dayflow/Dayflow/Views/Components/LongestFocusCard.swift:273-278 \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 \u0060Dayflow/Dayflow/Views/Components/LongestFocusCard.swift:259\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/LongestFocusCard.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48c83e046ccfa59b54e557730f3a3a139fe4432f7610db788e6aa86570927fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Dayflow/Dayflow/Views/UI/Agents/AgentsBriefingView.swift:77-82 | Dayflow/Dayflow/Views/UI/Agents/AgentsCardsView.swift:104-109 | Dayflow/Dayflow/Views/UI/Agents/AgentsCardsView.swift:128-133 \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 \u0060Dayflow/Dayflow/Views/UI/Agents/AgentsBriefingView.swift:77\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Agents/AgentsBriefingView.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbac7ca08bdeca260aa6880b85afd061d3c81e696d2bd87004e37b6a485ce58c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BText.swift:100-106 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BText.swift:100-106 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BText.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/CodexProvider\u002BText.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 86 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 \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BText.swift:100\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BText.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d14353f61c693b980373431d76461bb84160e654e4f5d0b48467d1f0dfd10c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:432-437 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:624-629 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:432\u0060 it begins part-way through the construct above it, so those exact 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 \u0060batchId\u0060 to \u0060Int64?) async throws -\u003E (observations: [Observation]\u0060 in one and \u0060Int64? ) async throws -\u003E (cards: [ActivityCardData]\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":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbdfb25b488f5b48bdf32afba5129c779bc204c058a33480181c51fac6a6bba9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 3): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:478-484 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardStreaming.swift:145-148 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BText.swift:60-65 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BText.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 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 \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:478\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"70946a776e70b3b8fb30479ec3602bb437fccac54612816059683cac1e697e9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift:132-137 | Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift:144-149 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift:132\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift:128\u0060 calls \u0060parseJSONResponse\u0060 and \u0060Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift:141\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":"Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd915902cf7acfb885f9f2f08292343f9e5d416344ad89d2950e2be8465478d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift:215-222 | Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift:481-488 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift\u0060 and \u0060Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 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":"Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"607aa052af71782f3a68257dc7755b1df78fff0100e676c719f36dc7e799acdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift:453-458 | Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift:550-555 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift:453\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":"Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa94260616c307c394214ce9587a7d506bc27c91a94bcb52204415cc0c7b39a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Dayflow/Dayflow/Views/Onboarding/ChatCLITestView.swift:154-161 | Dayflow/Dayflow/Views/Onboarding/ChatCLITestView.swift:254-260 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/Onboarding/ChatCLITestView.swift:254\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/ChatCLITestView.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b3cfea997100bec5cc0fface6d8b627f69ffa0526fe66029c9b3f4189a4ea2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift:131-136 | Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefSections.swift:936-941 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift:131\u0060 it begins part-way through the construct above it, so those exact 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, \u0060Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift:137\u0060 calls \u0060contentShape\u0060, \u0060Circle\u0060 and \u0060Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefSections.swift:942\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":"Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ddcb617046b0d42cd40f7eb96a404a393f0a9cf6d0f66fb3e58fd1d7961948"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketDaybreakHeader.swift:123-128 | Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketDaybreakHeader.swift:140-145 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketDaybreakHeader.swift:123\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketDaybreakHeader.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3511c44d3289e059e06b2bc1d82dc1275caed1002cbc0fc72b61a780a2efd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Flow/FlowOverlayView.swift:231-236 | Dayflow/Dayflow/Views/UI/Flow/FlowOverlayView.swift:348-354 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/Flow/FlowOverlayView.swift:231\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Flow/FlowOverlayView.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1017dd8ebfa50fceb47685fbf65681357d4b193e3c4dced77f7f1eff1a4dcca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Dayflow/Dayflow/Views/UI/GitHubStarPromptCard.swift:171-176 | Dayflow/Dayflow/Views/UI/MainView/Layout.swift:675-680 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060Dayflow/Dayflow/Views/UI/GitHubStarPromptCard.swift:171\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/GitHubStarPromptCard.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b123c0f98941ae3f60028b7c833d08ec6cad4a505673923bf7bf6c078758c21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 5): Dayflow/Dayflow/Utilities/DayflowTheme.swift:605-607 | Dayflow/Dayflow/Utilities/DayflowTheme.swift:626-628 | Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketCardContent.swift:196-198 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyComponents.swift:122-127 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyComponents.swift:148-153 \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 \u0060Dayflow/Dayflow/Utilities/DayflowTheme.swift:605\u0060 it does not close everything it opens, so those exact 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, \u0060Dayflow/Dayflow/Utilities/DayflowTheme.swift:609\u0060 calls \u0060init\u0060, \u0060Color\u0060, \u0060opacity\u0060 and \u0060Dayflow/Dayflow/Utilities/DayflowTheme.swift:630\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":"Dayflow/Dayflow/Utilities/DayflowTheme.swift"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e49817324c0877de8a0fe8406a7a79fae4103a8878f37aa05adee2d4d1f4c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift:47-53 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift:144-149 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift:47\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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d57bf574c0ae527d0dbbfc63d0f9bf4e5bd1513a50188cef54fcc1e94d1fd13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Dayflow/Dayflow/Core/Weekly/WeeklyDashboardBuilder.swift:491-499 | Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift:166-176 | Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift:459-467 | Dayflow/Dayflow/Views/UI/DailyWorkflowComputation.swift:406-410 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift\u0060 and \u0060Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 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 \u0060Dayflow/Dayflow/Core/Weekly/WeeklyDashboardBuilder.swift:491\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 \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":"Dayflow/Dayflow/Core/Weekly/WeeklyDashboardBuilder.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3bda767dbec706a73420b4456e9d8ca3914b3958e527632afbdab22698bc2f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift:66-71 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift:79-84 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift:629-634 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift:636-641 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift:635\u0060 calls \u0060asset\u0060, \u0060WeeklySankeyAppInput\u0060 and \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift:85\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f8925f2a584f40c14a16d0e9e5319b1a13a2935973f45aff75fe4f45decaa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 6): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardStreaming.swift:147-149 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardStreaming.swift:238-240 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BLogging.swift:117-121 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BText.swift:65-69 | Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift:91-95 | Dayflow/Dayflow/Utilities/GeminiAPIHelper.swift:220-222 \u2014 there are 6 copies across 5 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BLogging.swift:117\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BDashboardStreaming.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d11df3b473467cd3d67dbf1d753c8b2a8cdd3da1451936902119021efd6a92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Dayflow/Dayflow/Utilities/DayflowTheme.swift:242-247 | Dayflow/Dayflow/Utilities/DayflowTheme.swift:252-257 | Dayflow/Dayflow/Views/Onboarding/OnboardingBackdrop.swift:17-22 \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 \u0060Dayflow/Dayflow/Utilities/DayflowTheme.swift:242\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Utilities/DayflowTheme.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc8b5bc45ea082ee57fb39f653f5dd7cd700ce51958aa23d143ac45fb459bb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeChooseProviderStep.swift:320-325 | Dayflow/Dayflow/Views/UI/Agents/AgentsBriefingView.swift:76-81 | Dayflow/Dayflow/Views/UI/Agents/AgentsCardsView.swift:103-108 \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 \u0060Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeChooseProviderStep.swift:320\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeChooseProviderStep.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd8de3c1e6741143078cd9ee0cf366beb7312cf8e4c95d24775705f36dc9f2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:717-721 | Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:866-870 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift:717\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/DayflowBackendProvider.swift"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91766b8fcef1e6fa80780b59717697e8f8d11c74885fd3662e525b5561a2ef4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift:357-361 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift:263-268 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BTranscription.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 320 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 \u0060Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.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. 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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"114131119fcc9f00b3cf950f338409439bcf60acfa014f443a4bf21ec7cd746f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BUpload.swift:137-141 | Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BUpload.swift:257-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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BUpload.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b40d53afc9ee83f232ba103e0dce235e23cc65df1de99a4e8e1b60026d8c05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Dayflow/Dayflow/Core/Flow/FlowSessionTimeline.swift:395-400 | Dayflow/Dayflow/Core/Flow/FlowSessionTimeline.swift:485-489 \u2014 both copies are in the same file, so extract the block 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":"Dayflow/Dayflow/Core/Flow/FlowSessionTimeline.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa5d5dec0fa08f345457b21b204fea2b54e22f9cca84dac41dabb86aa22d98d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Dayflow/Dayflow/Menu/FlowMenuBarViews.swift:453-457 | Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketMenus.swift:433-437 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060Dayflow/Dayflow/Menu/FlowMenuBarViews.swift:453\u0060 it begins part-way through the construct above it, so those exact 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":"Dayflow/Dayflow/Menu/FlowMenuBarViews.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"3575aa0f82f49b4ca3c77ac30fc20539ca3f3e46eb2cfc5d714f333e295491c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Dayflow/Dayflow/Views/Components/CategorySetupCards.swift:98-104 | Dayflow/Dayflow/Views/Components/CategorySetupCards.swift:162-166 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/Components/CategorySetupCards.swift:98\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":"Dayflow/Dayflow/Views/Components/CategorySetupCards.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3af362597d629d9a99b73ded8d3810e4243ddcbdf89c19785dfc296048ffa87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift:283-289 | Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift:599-603 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Components/TimelineCardColorPicker.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"db79f87b24d19acc9c39682a74ac9d22d6fb6e66b03c01dcf4e3f00155172796"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Agents/AgentThreadCardView.swift:156-160 | Dayflow/Dayflow/Views/UI/Agents/AgentThreadCardView.swift:340-344 \u2014 both copies are in the same file, so extract the block 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, \u0060Dayflow/Dayflow/Views/UI/Agents/AgentThreadCardView.swift:162\u0060 calls \u0060AgentStatusChipView\u0060 and \u0060Dayflow/Dayflow/Views/UI/Agents/AgentThreadCardView.swift:345\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":"Dayflow/Dayflow/Views/UI/Agents/AgentThreadCardView.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5d912a3e011acd0faf4de11aa8bf7812efdba097d8ac33c6bf9e870141e257"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Dayflow/Dayflow/Views/UI/MainView/TimelineCalendarPopover.swift:292-296 | Dayflow/Dayflow/Views/UI/MainView/TimelineCalendarPopover.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/MainView/TimelineCalendarPopover.swift:292\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/TimelineCalendarPopover.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"45acfce2fbd57255a5b9733893b5268b66fc1bfd10d27c1ed2ddd1f5427fa9d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Dayflow/Dayflow/Views/UI/TimelineReviewPlaybackModels.swift:188-193 | Dayflow/Dayflow/Views/UI/TimelineReviewPlaybackModels.swift:486-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/TimelineReviewPlaybackModels.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0ddac736b3cbfb582cb1fcd24b394938d38df2562e5ef8a8fe376da0cde2df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyApplicationInteractionsSection.swift:454-458 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphGlyphs.swift:11-21 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyApplicationInteractionsSection.swift:454\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyApplicationInteractionsSection.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e31b1a74c7018b684a5c0ac78f1e1e88b7406e07e679eed69d6952ac19138a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift:118-122 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift:160-164 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift:118\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift:165\u0060 calls \u0060Set\u0060, \u0060appTemplates\u0060, \u0060contains\u0060 and \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift:124\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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklySankeyModelFactory.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d42c1fe60bfb628c052d6ef9acdab08ba220f1f095884ebf6d9ce1dafaa09b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ActivityCardPromptOverrides.swift:8-14 | Dayflow/Dayflow/Core/AI/GeminiPromptPreferences.swift:8-14 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ActivityCardPromptOverrides.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd00fca868a691f6ca41fd4e130642221b329b246b07c57f191507ae485f106f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:271-275 | Dayflow/Dayflow/Core/AgentAccess/CodexMCPRegistration.swift:232-236 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"58bf40cc69bbb0e9e599b201cc769ccc1e474c924a251cd27f2f1186dd90793e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BText.swift:46-53 | Dayflow/Dayflow/Core/AI/CodexProvider\u002BText.swift:46-53 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BText.swift\u0060 and \u0060Dayflow/Dayflow/Core/AI/CodexProvider\u002BText.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 86 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":"Dayflow/Dayflow/Core/AI/ClaudeProvider\u002BText.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5f1f9e81135aa7923c440fcc06ae5ac40ffbca3a8367e96ecd7ca1af3782dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Dayflow/Dayflow/Core/AgentAccess/AgentBridgeServer.swift:32-36 | Dayflow/Dayflow/Core/AgentAccess/AgentBridgeServer.swift:38-42 | tools/dayflow-cli/Sources/dayflow/Bridge.swift:20-24 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AgentAccess/AgentBridgeServer.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2620debf4d33623d5d2010ad69b32f032b68269ea6c988fb8fa819539d655116"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift:1320-1324 | Dayflow/Dayflow/Core/DailyBrief/DailyBriefThreadIndex.swift:279-284 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"223cdbb12d0b059c761860f5d3ebb6dd1d38bc0a65fa5a85236a5b270fbbcedc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/AccessibilityTreeReader.swift:379-385 | Dayflow/Dayflow/Core/Recording/BrowserWindowInspector.swift:213-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/AccessibilityTreeReader.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a1b36e2c61f1c202a4eab115a708c29b129dae9a382718f8df6687fc9dcec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift:188-193 | Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift:474-479 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift\u0060 and \u0060Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 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":"Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"95fdc889ec0c4e65251ef4d722b6a7e98de9fadd1e6d096c82f2f88715152ad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift:207-213 | Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift:420-426 \u2014 before extracting anything, compare \u0060Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift\u0060 and \u0060Dayflow/Dayflow/Core/Weekly/WeeklyOverviewBuilder.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 66 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":"Dayflow/Dayflow/Core/Weekly/WeeklyDonutBuilder.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"97939421db0036e291f19fdbfa7a3e750950a655a82354c990c9571265f86077"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift:168-173 | Dayflow/Dayflow/Views/Components/CategoryPickerView.swift:229-234 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"c508f70dd97a5072dd17ff673295ae565985d004aaa388d749607dc4242d31d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift:820-827 | Dayflow/Dayflow/Views/UI/Settings/ProvidersSettingsViewModel.swift:299-306 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"df93d4ce83244361fd65006b497ac05201c12dbcba2a9463664aeeeeaac58ae1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Dayflow/Dayflow/Views/UI/CanvasActivityCard.swift:48-53 | Dayflow/Dayflow/Views/UI/MainView/WeekTimelineActivityCard.swift:56-61 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/CanvasActivityCard.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6c8cce486ae531e8615083a72f5a7319630922b1ef57589176451a1b2e171b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift:602-609 | Dayflow/Dayflow/Views/UI/MainView/WeekTimelineStatusCard.swift:73-80 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/CanvasTimelineDataView.swift"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5472109ecdbc668c2accf56928abd154763d32e4f1397ab3dc453aa85e60f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:242-248 | Dayflow/Dayflow/Views/UI/TimelineReviewMediaViews.swift:82-88 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf43aecdeb775339f085013280dc813dd3c6c315cb65dd2fb4ee5cc7651a5432"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:300-305 | Dayflow/Dayflow/Views/UI/TimelineReviewChrome.swift:48-53 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4276b238563dac478a50cf8191bac1efaf9ee84ef1924406ffbaa3de44044f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift:307-311 | Dayflow/Dayflow/Views/UI/TimelineReviewChrome.swift:55-59 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9450d16a77a371c032d3f1a539e281c618ae2430908e6678f9a221ea3817cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshowPlayback.swift:170-175 | Dayflow/Dayflow/Views/UI/TimelineReviewPlaybackModels.swift:423-428 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshowPlayback.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf16ea3b8324b51ffe9cf215c2a22bf4f058d864e44bf23d02e8a20b485e70b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyApplicationInteractionsSection.swift:514-523 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphModels.swift:8-17 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphModels.swift:19-28 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyInteractionGraphModels.swift:31\u0060 calls \u0060Color\u0060 and \u0060Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyApplicationInteractionsSection.swift:524\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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyApplicationInteractionsSection.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f945de7a44a7bcf07a4e9600b8ea082f9c01a7afe9afbde0b591f1bd8becf56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyFocusHeatmapSection.swift:161-170 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyWorkflowSection.swift:122-131 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyFocusHeatmapSection.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"c601781a2e74a0db376fe021c5f40f3f44bd7443c93d7b9c1568517675b41c56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyFocusHeatmapSection.swift:228-236 | Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyWorkflowSection.swift:258-266 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyFocusHeatmapSection.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e786a4ff7d45c1be30e113cb94b5da8602968f225674ed882886b4764a43cb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Dayflow/Dayflow/Core/AI/GeminiPromptPreferences.swift:21-29 | Dayflow/Dayflow/Core/AI/OllamaPromptPreferences.swift:19-27 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"Dayflow/Dayflow/Core/AI/GeminiPromptPreferences.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2014de968c2da151b7e693dc54436a4409500b1cd0acb85aba05d40a8e99a8b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift:6-10 | Dayflow/Dayflow/Core/Recording/StorageManager\u002BScreenshots.swift:9-13 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9106599eae8c357679eb2365606bb447dc7649c0d69f36323d9ccb19262580a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Dayflow/Dayflow/Views/Onboarding/ChatCLIDetectionViews.swift:177-186 | Dayflow/Dayflow/Views/Onboarding/ProviderSetupState.swift:469-478 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/ChatCLIDetectionViews.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d519cda8dae3c381d9418ccac39d9ec2cf3fda95ec429afad97445cfff0c4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Dayflow/Dayflow/Views/UI/ChatView\u002BState.swift:50-55 | Dayflow/Dayflow/Views/UI/MainView/Support.swift:140-149 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/ChatView\u002BState.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f464aee9cb8aacf0bde0b83583c51d8b9357fa7d12c27f58874997b61a9082"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift:324-328 | Dayflow/Dayflow/Views/Onboarding/ChatCLITestView.swift:145-149 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift:324\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/AgentCLISupport\u002BParsing.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78df500c97bf0a5cf66602d63c98a7aea2537a34eafd04a8a8943cac45120b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): tools/dayflow-cli/Sources/dayflow/MCPServer.swift:413-443 | tools/dayflow-cli/Sources/dayflow/main.swift:260-300 \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":"tools/dayflow-cli/Sources/dayflow/MCPServer.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"592d3969c0f282ffc725dbdfcb2c937365245fb522a897f26601aab2bbe6c1b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): tools/dayflow-cli/Sources/dayflow/Queries.swift:89-101 | tools/dayflow-cli/Sources/dayflow/Queries.swift:103-115 \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":"tools/dayflow-cli/Sources/dayflow/Queries.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f030aec3e56f9533310f4efe206c75b00be5a6d656cf985d76a4e277bf04a656"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): tools/dayflow-cli/Sources/dayflow/MCPServer.swift:432-443 | tools/dayflow-cli/Sources/dayflow/main.swift:283-293 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060tools/dayflow-cli/Sources/dayflow/MCPServer.swift:432\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/dayflow-cli/Sources/dayflow/MCPServer.swift"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"52112a341fa7323a671b72095ff392bb258954ab32b8caab5c898a3ea84f3435"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): tools/dayflow-cli/Sources/dayflow/MCPServer.swift:372-377 | tools/dayflow-cli/Sources/dayflow/MCPServer.swift:426-431 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/dayflow-cli/Sources/dayflow/MCPServer.swift:372\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/dayflow-cli/Sources/dayflow/MCPServer.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff8ca442b2e1508c487da027b0aee6859edb71f4a9696cb5b9d873960a3ffe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): tools/dayflow-cli/Sources/dayflow/MCPServer.swift:380-385 | tools/dayflow-cli/Sources/dayflow/MCPServer.swift:436-441 | tools/dayflow-cli/Sources/dayflow/main.swift:287-292 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/dayflow-cli/Sources/dayflow/MCPServer.swift:380\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/dayflow-cli/Sources/dayflow/MCPServer.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c5235a2fb0b491491355f863d05f88564351874f6349b83af16a24aedfff47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): tools/dayflow-cli/Sources/dayflow/main.swift:136-140 | tools/dayflow-cli/Sources/dayflow/main.swift:345-349 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/dayflow-cli/Sources/dayflow/main.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":"tools/dayflow-cli/Sources/dayflow/main.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"95be0fdaed5ac343d11568183e3ca3bddeb595019612ebce5a7f34f65f7ce4bb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: StorageManager (LCOM4 18): StorageManager\u0027s methods fall into 18 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 18 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":"Dayflow/Dayflow/Core/Recording/StorageManager.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac669a426e9958e7198c60979098ff2d96204e8f30d38d937e70940f174401c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AnalyticsService (LCOM4 8): AnalyticsService\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/System/AnalyticsService.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44e5ce785cdbc4f197fd64022367a89ec8b40e65da597cf28ed5b4cd185b348"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: String (LCOM4 8): String\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/AccessibilityLogCondenser.swift"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"c491ec7764c779e06739c30996c09dd18ff2b405d9b3a8900554a5659e613131"}},{"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":"Dayflow/Dayflow/System/StatusBarController.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1221b1b8d2056a7136a4d2484aca8a7d1f5a4503735703b88761a224e704f44"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ClaudeProvider (LCOM4 5): ClaudeProvider\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":"Dayflow/Dayflow/Core/AI/ClaudeProvider.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"79072a961fd357086a4f5510da86641b74bfe728bd0bc37cc5603cb4862244cf"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DailyBriefStore (LCOM4 5): DailyBriefStore\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":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefStore.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fac8bb72477188084301f4310f5c87ad8517a9fb527f7b259c2ec7e3af0a347"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppState (LCOM4 4): AppState\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":"Dayflow/Dayflow/App/AppState.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"b680ad81cf87f2cb54eca98788d6023c4ee575d84e0338db45b86a3f04d02617"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AccessibilityTreeReader (LCOM4 4): AccessibilityTreeReader\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":"Dayflow/Dayflow/Core/Recording/AccessibilityTreeReader.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"296ce46a6732c2e4e2a393ff0ea5ea39bbfd16a1cfba493dfa87749e4f350dad"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NonInteractiveAVPlayerView (LCOM4 4): NonInteractiveAVPlayerView\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":"Dayflow/Dayflow/Views/Onboarding/VideoLaunchView.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7fb128b929982f88d9e038ad00a4047db55dd02b429e52e8e4a0b592d4f0ed"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Coordinator (LCOM4 4): Coordinator\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":"Dayflow/Dayflow/Views/UI/Flow/FlowWebView.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb54cf6e3044317ee778c391eec0d4773ceb09a5bacb53134ab4465f0fc6b555"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: OtherSettingsViewModel (LCOM4 4): OtherSettingsViewModel\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":"Dayflow/Dayflow/Views/UI/Settings/OtherSettingsViewModel.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"930da51c211186100e1613205acc76725cb1a791ffbb870d1068d3298f56e1df"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWeeklyDashboardSnapshotIsSendableForBackgroundLoading: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/DayflowTests/WeeklyDashboardBuilderTests.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba90ff64f7eaffdb386fcfb0b840466d19e03f18a2c96641f9bd8091ed0e7404"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testExample: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/DayflowUITests/DayflowUITests.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83e99d3ce4340341329266b9b188edbb5754d10c57cd0840e163fea190231f4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLaunchPerformance: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/DayflowUITests/DayflowUITests.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab40699ba9daf88602773ec8467614fb9e46f0d02efe2862f0adb5be99a85843"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLaunch: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/DayflowUITests/DayflowUITestsLaunchTests.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72e68680ac44b413ab8aaded30bea2b2a9de8e138cc62f3aa51381f4f6c1161"}},{"ruleId":"D10","level":"error","message":{"text":"Test project verifies nothing: DayflowUITests: No conventional assertion call was detected in 3 of 3 tests in \u0060DayflowUITests\u0060 \u2014 the project as a whole, not one method. 1 of them has its assertions commented out, so this suite did verify conventionally and was switched off \u2014 it is not an approval/verifier harness."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/DayflowUITests/DayflowUITests.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4bb0396bdcdc8708598b1388f06fe1d9c996260fa333b1db87cc12ebab7b482"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift: Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in ChatCLIProcessRunner.executeStreaming at line 677. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 03:45:18 -08:00\u0027 --until=\u00272026-11-13 03:45:18 -08:00\u0027 --full-history --no-merges -- Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"676b973952c4aabc56ba6c4e9a9acffcd7643afcaa23c758df8e773900257024"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Dayflow/Dayflow/Views/UI/Flow/FlowWebView.swift: Dayflow/Dayflow/Views/UI/Flow/FlowWebView.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in Coordinator.handle at line 150. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 03:45:18 -08:00\u0027 --until=\u00272026-11-13 03:45:18 -08:00\u0027 --full-history --no-merges -- Dayflow/Dayflow/Views/UI/Flow/FlowWebView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/Flow/FlowWebView.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"220e49f1815d3004ea791cec2bbe459b38ccda13bd260c59ae5419257098e91d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift: Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in DailyBriefGenerator.cleaned at line 1181. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 03:45:18 -08:00\u0027 --until=\u00272026-11-13 03:45:18 -08:00\u0027 --full-history --no-merges -- Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b3d5e297779e0c68372de620760761907ebf62b4a5c02e58c757d8ef1d2485"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Dayflow/Dayflow/Core/AI/LLMService.swift: Dayflow/Dayflow/Core/AI/LLMService.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in LLMService.processBatch at line 650. 1 of those changes was a fix/bug commit, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 03:45:18 -08:00\u0027 --until=\u00272026-11-13 03:45:18 -08:00\u0027 --full-history --no-merges -- Dayflow/Dayflow/Core/AI/LLMService.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/LLMService.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac5525a43e695219f3876cfd108a14b38b7d00d98ee65fb49883ccf6d523f98"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Dayflow/Dayflow/Core/Flow/FlowDistractionAgent.swift: Dayflow/Dayflow/Core/Flow/FlowDistractionAgent.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in FlowDistractionAgent.tick at line 586. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 03:45:18 -08:00\u0027 --until=\u00272026-11-13 03:45:18 -08:00\u0027 --full-history --no-merges -- Dayflow/Dayflow/Core/Flow/FlowDistractionAgent.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Flow/FlowDistractionAgent.swift"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee032efa56c41d3defa7af3d44b3ac183ed5bccc8d97e175e127d681b5ea92e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Dayflow/Dayflow/App/DayflowApp.swift: Dayflow/Dayflow/App/DayflowApp.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in DayflowApp.body at line 293. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 03:45:18 -08:00\u0027 --until=\u00272026-11-13 03:45:18 -08:00\u0027 --full-history --no-merges -- Dayflow/Dayflow/App/DayflowApp.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/App/DayflowApp.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6f039fd83110a0359b6d03ed2959948d53301b2c5a149a7a5c2f5ea39b62a9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Dayflow/Dayflow/App/AppDelegate.swift: Dayflow/Dayflow/App/AppDelegate.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in AppDelegate.applicationDidFinishLaunching at line 65. 1 of those changes was a fix/bug commit, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 03:45:18 -08:00\u0027 --until=\u00272026-11-13 03:45:18 -08:00\u0027 --full-history --no-merges -- Dayflow/Dayflow/App/AppDelegate.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/App/AppDelegate.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9a9e5821e0768fa2d28775bc5cdc48a3ccfd8181b4e72a94c544a850146173"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift: Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in DailyBriefDebugStats.lines at line 671. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 03:45:18 -08:00\u0027 --until=\u00272026-11-13 03:45:18 -08:00\u0027 --full-history --no-merges -- Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/DailyBrief/DailyBriefPageView.swift"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53cbe16d2683e058308b85b7a03804e47e289a526b9cc901975ad315b3c3bbc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift: Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in LLMProviderSetupView.currentStepContent at line 200. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 03:45:18 -08:00\u0027 --until=\u00272026-11-13 03:45:18 -08:00\u0027 --full-history --no-merges -- Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/LLMProviderSetupView.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"382a416cf9af22115d767de044461127e9439f888c224034b0d88ad9d66cce8c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift: Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in OnboardingFlow.body at line 44. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 03:45:18 -08:00\u0027 --until=\u00272026-11-13 03:45:18 -08:00\u0027 --full-history --no-merges -- Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/OnboardingFlow.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ee9f3444105ac7cf30ee5f5402c6f922f028638d32edc5ae297f88656ef021"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Dayflow/Dayflow/Views/Onboarding/ChatCLITestView.swift: Dayflow/Dayflow/Views/Onboarding/ChatCLITestView.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in ChatCLITestView.runTest at line 108. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 03:45:18 -08:00\u0027 --until=\u00272026-11-13 03:45:18 -08:00\u0027 --full-history --no-merges -- Dayflow/Dayflow/Views/Onboarding/ChatCLITestView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/ChatCLITestView.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c6b5dc9bf140cd6b44f8a872df08096828eaae1c23116ac441ea535c000fe3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift: Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ScreenRecorder.setupCapture at line 273. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 03:45:18 -08:00\u0027 --until=\u00272026-11-13 03:45:18 -08:00\u0027 --full-history --no-merges -- Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/ScreenRecorder.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe7dcb938d61e759c84e5201c95fd32e4c1dae6d8f8b88c5867a0ef0d6b8d87"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift: Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in ActivityCard.activityDetails at line 173. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 03:45:18 -08:00\u0027 --until=\u00272026-11-13 03:45:18 -08:00\u0027 --full-history --no-merges -- Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/UI/MainView/ActivityCard.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64e51b6cfe732cc57c60db628f4f40426337168b157c2a98e354cc8b89d5e9c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Dayflow/Dayflow/Core/AI/CodexProvider\u002BTranscription.swift: Dayflow/Dayflow/Core/AI/CodexProvider\u002BTranscription.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in CodexProvider.transcribeScreenshots 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 03:45:18 -08:00\u0027 --until=\u00272026-11-13 03:45:18 -08:00\u0027 --full-history --no-merges -- Dayflow/Dayflow/Core/AI/CodexProvider\u002BTranscription.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/CodexProvider\u002BTranscription.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"655c75824784da7bf7f0b7bdb53385600b51328d1bb24fb41252f7b573cf2618"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Dayflow/Dayflow/Core/Flow/FlowSessionTimeline.swift: Dayflow/Dayflow/Core/Flow/FlowSessionTimeline.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in FlowSessionTimeline.apply at line 163. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 03:45:18 -08:00\u0027 --until=\u00272026-11-13 03:45:18 -08:00\u0027 --full-history --no-merges -- Dayflow/Dayflow/Core/Flow/FlowSessionTimeline.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Flow/FlowSessionTimeline.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"78743dc296ba0480534788b3c6a1f727eaf2a09d5b31a0a304ed13cf961507c6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Dayflow/Dayflow/Core/AI/CodexProvider\u002BActivityCards.swift: Dayflow/Dayflow/Core/AI/CodexProvider\u002BActivityCards.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in CodexProvider.generateActivityCards at line 7. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 03:45:18 -08:00\u0027 --until=\u00272026-11-13 03:45:18 -08:00\u0027 --full-history --no-merges -- Dayflow/Dayflow/Core/AI/CodexProvider\u002BActivityCards.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/CodexProvider\u002BActivityCards.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06e69caac8d6dc6b925b93d7ff588b50fb7440ce0dd2b56e5d2aefa58b9b78f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove this when observation generation is fixed upstream \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/AI/OllamaProvider.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"261c914be587ffa49a0f53cfe39f14f5aea24cb6b53934e4c743de3cf4cc028f"}},{"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 \u0060Dayflow/Dayflow.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a191ecabed981f75e2ccd964564a149af7f2205ac2deaba74a79b4538e9945"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060feedbackUrl\u0060 spells \u0060Url\u0060 where 136 names in the project spell it \u0060URL\u0060: 136 of 139 names in project repository spell the token \u0060URL\u0060 (136 of 139; unit: names in project repository containing \u0060URL\u0060). Peers: CodexFallbackContext.brokenConfigURL (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:259); ChatCLIProcessRunner.defaultCodexConfigURL (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:517); ChatCLIProcessRunner.invalidTransportConfigURL (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:530); ChatCLIProcessRunner.invalidTransportConfigURL(fallbackConfigURL) (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:530); ChatCLIProcessRunner.makeCodexFallbackContext(fallbackConfigURL) (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:574). Rename to \u0060feedbackURL\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefModels.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f2b24e3fff3063c7418cab42ed27109dbf3d902aec1d43199542c25a0ccffe"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060imageUrl\u0060 spells \u0060Url\u0060 where 136 names in the project spell it \u0060URL\u0060: 136 of 139 names in project repository spell the token \u0060URL\u0060 (136 of 139; unit: names in project repository containing \u0060URL\u0060). Peers: CodexFallbackContext.brokenConfigURL (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:259); ChatCLIProcessRunner.defaultCodexConfigURL (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:517); ChatCLIProcessRunner.invalidTransportConfigURL (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:530); ChatCLIProcessRunner.invalidTransportConfigURL(fallbackConfigURL) (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:530); ChatCLIProcessRunner.makeCodexFallbackContext(fallbackConfigURL) (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:574). Rename to \u0060imageURL\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefModels.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"6142e588eb74e1051d5bf24afaa876975a2a568719d6f2779ec60f945b3579eb"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060fileUrl\u0060 spells \u0060Url\u0060 where 136 names in the project spell it \u0060URL\u0060: 136 of 139 names in project repository spell the token \u0060URL\u0060 (136 of 139; unit: names in project repository containing \u0060URL\u0060). Peers: CodexFallbackContext.brokenConfigURL (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:259); ChatCLIProcessRunner.defaultCodexConfigURL (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:517); ChatCLIProcessRunner.invalidTransportConfigURL (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:530); ChatCLIProcessRunner.invalidTransportConfigURL(fallbackConfigURL) (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:530); ChatCLIProcessRunner.makeCodexFallbackContext(fallbackConfigURL) (Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift:574). Rename to \u0060fileURL\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Models/AnalysisModels.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"693277a1ea256f32068d6df6d1d33ea95064a2d28e04c15c97ffd45a5692a4fd"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060isApiKeyInput\u0060 spells \u0060Api\u0060 where 21 names in the project spell it \u0060API\u0060: 21 of 22 names in project repository spell the token \u0060API\u0060 (21 of 22; unit: names in project repository containing \u0060API\u0060). Peers: OllamaProvider.callChatAPI (Dayflow/Dayflow/Core/AI/OllamaProvider\u002BNetworking.swift:70); OllamaProvider.callTextAPI (Dayflow/Dayflow/Core/AI/OllamaProvider\u002BNetworking.swift:255); OllamaProvider.customAPIKey (Dayflow/Dayflow/Core/AI/OllamaProvider.swift:33); repository.GeminiAPIHelper (Dayflow/Dayflow/Utilities/GeminiAPIHelper.swift:10); APIKeyInputView.cleanedAPIKey (Dayflow/Dayflow/Views/Onboarding/APIKeyInputView.swift:142). Rename to \u0060isAPIKeyInput\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Views/Onboarding/ProviderSetupState.swift"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"553bc7573f9a7530385186d9af01a9af75032d270d1b0fd055842115867e3a67"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 3 project(s) overshoot their size bounds, lowering Project Cohesion to 3.3/10. The most over is \u0060Dayflow\u0060 (124781 LoC, 1208 module-visible types across 33 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":"afefdfa2a0d581dc5fe080c266feefb16f39d1270bf25bf47029ba77e88d6de0"},"properties":{"commitSha":"192b2e72f869b0e754f74267b0f081bc7cee903e"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"45e7dbb0caeb0324ed1496744c67ebc1e3294304bdbd689006d2776ba63558b3"},"properties":{"commitSha":"f327a0520e559247b21cac6f58840abc834670c9"}},{"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":"fb391fc81854a0fbdc4de6789502b8b3af69996d8605f0fa72c946716c3ab303"},"taxa":[{"id":"CWE-311","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bba8bb0374884243f2f13b99c0138044199eedbc59c247fe1917f72ac2067ffc"},"taxa":[{"id":"CWE-311","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5e898c839a684af56912857aea6e1dd9930e3d39004ee205d2ac7d2b9ebb18af"},"taxa":[{"id":"CWE-311","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5d70ac4b80afe10a4c4135f984d0d320707396ca04e07bd52e89f3bb5f18d6c0"},"taxa":[{"id":"CWE-311","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5ddaeb87a93b4ad5e88761a0faebe28ce5ebc6b4fcb8fbe23e70fb91338367db"},"properties":{"dependency":{"package":"github.com/sparkle-project/Sparkle","version":"2.7.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"175ef62333fa8fe88018d4bd0e95ddea5c3cea20f1efbacea775c20ae82a4cd5"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"612d7018aa402378f43a35ede4d7788023725a3f2dcfdf0a861dd3410ba2b161"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.modal\u0060 moves (\u0060transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out)\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"732be93758c9554b7c0990d5ee0dc9164d572f6f7c44ca6c5fdb36083e2c42dc"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .copy \u003E *\u0060 moves (\u0060animation: copy-in 0.6s var(--ease-out) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"a44b889eab6cd7f3a439bd9e2039179b42a0581724c5f01057c7017ba03f8404"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.next-btn\u0060 moves (\u0060transition: transform 0.18s var(--ease-out), box-shadow 0.18s, opacity 0.3s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6a81d71ef5686c51db934e1c10e2cebd0742dbe571303e6cfa050599616910"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .drift\u0060 moves (\u0060animation: drift 16s ease-in-out infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65bb7cc9f4593c21100c6b24c5b7666c2b54e1f1554d11605bfa4ee2accf0a6"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .flip180.drift\u0060 moves (\u0060animation-name: drift-flip\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a784ead2dbdbe50770d5029d1017152ce18804882aa55b94ff9f221cfbc3dff"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s1-card\u0060 moves (\u0060animation: s1-card-in 0.55s var(--ease-out) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"4794225e5d2e87484b1771cbaf8c993fa0d5ff88ecaca9f3ef7344d260bd4d91"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .pk b\u0060 moves (\u0060animation: pk-down 2.6s ease-in infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1730259803ee64c475f9c5264034ff0381ecbe06ebd1096db790569f667c5ba"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .pk--up b\u0060 moves (\u0060animation-name: pk-up\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae7e4178254b3f91554e9a2790134a77dde04c002ac74c4e212411c33a1ca10"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s1-ring\u0060 moves (\u0060animation: s1-ring-in 0.5s var(--spring) 0.8s both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6598e23b55481d2b3b088108fbaa287dc6c58bca8be7742284b637bf0d2129"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s1-pulse\u0060 moves (\u0060animation: s1-pulse 1.6s ease-in-out 1.3s infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3424c2220e063a9dd90b9c331b8bd98ae46b633b6de1afc360458f94d4a987"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s1-bub\u0060 moves (\u0060animation: s1-pop 0.55s var(--spring) var(--d) both, s1-float var(--f) ease-in-out calc(var(--d) \u002B 0.6s) infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab05626868f052cdf0d300881f1cede8a5a43e276d0d810d88bcd44630b1357"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s2-stack\u0060 moves (\u0060animation: s2-stack-in 0.6s var(--ease-out) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef6dfc51e129b70090c23262a00c0d4bd29e01639055dd2caaa6b8fc8decfb0"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s2-agent--pixel\u0060 moves (\u0060animation: s2-in-left 0.6s var(--spring) 0.35s both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e6f075e267c9a27e6c9a95ecc9fbdf6d8950b5ddb599f0a9d3f27fa215ccc4"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s2-agent--robot\u0060 moves (\u0060animation: s2-in-right 0.6s var(--spring) 0.5s both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0884158bcafe24dfeacf48c7c1205ed295216fef13478b948d5b9656c4646c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.s2-agent.is-walking.is-holding .s2-walker\u0060 moves (\u0060animation: s2-step 0.27s ease-in-out infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"880e931c6b3a6b7b1d51e83d8b5d4b1097b210fb51aef6d3a7fcb682bc2dbb4a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.s2-agent.is-catching .s2-walker\u0060 moves (\u0060animation: s2-catch 0.45s var(--spring) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff76ae46d8811f4c01690b1e3ebab225cd80dfe66c83638a51ebd8f486d04272"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase^=\u0022a\u0022] .s3-card\u0060 moves (\u0060animation: s3-in 0.7s var(--ease-out) calc(var(--in, 0s) \u002B var(--d)) both, s3-float 5s ease-in-out calc(var(--in, 0s) \u002B var(--d) \u002B 0.9s) infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3a0a8f816c74c79f2a7607edc5471e7f14a735a9be587c2a0fca639495f4b6"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase^=\u0022a\u0022] .s3-bar\u0060 moves (\u0060animation: s3-bar 0.5s var(--ease-out) calc(var(--in, 0s) \u002B var(--d) \u002B 0.3s) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12c87c4547b493cf4c1d2116c106261128e3b4b2fdcc01b5851758a6352fde8"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase^=\u0022a\u0022] .s3-row p\u0060 moves (\u0060animation: s3-fade 0.5s var(--ease-out) calc(var(--in, 0s) \u002B var(--d) \u002B 0.25s) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c5ffffc16b0343f9d01fa4cd0f5418333d2a976a06f652a373716d6c73f467"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase^=\u0022a\u0022] .s3-avs \u003E span\u0060 moves (\u0060animation: s3-pop 0.45s var(--spring) calc(var(--in, 0s) \u002B var(--d) \u002B 0.45s \u002B var(--i) * 0.07s) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"029892b5cb69f0f74867e213dde0a331155162c7eaa33631a69c61f938b4c546"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase^=\u0022a\u0022] .s3-chan\u0060 moves (\u0060animation: s3-slide 0.45s var(--ease-out) calc(var(--in, 0s) \u002B var(--d) \u002B 0.75s) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"15cf8a7d160cf4f950a0270533f500a52d75d37f5570aa264460dfacd0d7adda"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase=\u0022b\u0022] .s3-col\u0060 moves (\u0060animation: grp-out 0.55s cubic-bezier(0.5, 0, 0.75, 0.3) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cdff70b43409b16a9c9e85e2dea1e80bb82679a4cf1517bfde645945e276a94"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase=\u0022a\u0022] .s4-slot--a\u0060 moves (\u0060animation: s4-out-a 0.6s cubic-bezier(0.5, 0, 0.75, 0.3) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed22c51460b99771dd90a4f2a5c6373d59f9d1962696a1c767a4a222aadf181"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase=\u0022a\u0022] .s4-slot--b\u0060 moves (\u0060animation: s4-out-b 0.6s cubic-bezier(0.5, 0, 0.75, 0.3) 0.06s both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbffc5695bde981dd697479f2b0f097952916ed01b2cc3afa6133e829e85c10"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase^=\u0022b\u0022] .s4-slot--a .s4-deal\u0060 moves (\u0060animation: s4-deal-a 0.8s var(--spring) calc(var(--in, 0s) \u002B 0.15s) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf8db34e8980f353e052db048cbcd285b8b7cab9a182e3201a0eb5438c6a8b9"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase^=\u0022b\u0022] .s4-slot--b .s4-deal\u0060 moves (\u0060animation: s4-deal-b 0.8s var(--spring) calc(var(--in, 0s) \u002B 0.38s) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4326deb85c92414ed6293bfb44d5106ddd2ac5a67f7c3fc1231536d474c5feb"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase^=\u0022b\u0022] .s4-slot--a .s4-sway\u0060 moves (\u0060animation: s4-sway-a 4.2s ease-in-out 1s infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e3612e625c53d34cc5009b38284269e3332e5a98260a1f5092aede5fe98881"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase^=\u0022b\u0022] .s4-slot--b .s4-sway\u0060 moves (\u0060animation: s4-sway-b 4.8s ease-in-out 1.2s infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"28791d3198700496772e0b4cfe405edc2f7dafc488678e0d053d5dd4783d01b2"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.s4-slot .s4-card\u0060 moves (\u0060transition: transform 0.35s var(--ease-out), box-shadow 0.35s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4b9aea57dc110fcf26cb6183d988aa9dda3cc9b014b3f2306e0a482776c2cfd"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s5-title\u0060 moves (\u0060animation: s5-title-in 0.7s var(--ease-out) 0.1s both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ff004d6dab756ef9cac9de05fe09058242022e530ef102ca176e8b9d3b1412"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s5-bg\u0060 moves (\u0060animation: s5-bg 22s ease-in-out infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd72921427fd305732ec7aee211851aa40dfabc16e3c1a51295301acba31114"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.s5-seal\u0060 moves (\u0060transition: transform 0.25s var(--spring), opacity 0.3s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"9997d477338a336401d45f8907f5ab19087009ac34276676962c04eb486620fd"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s5-drop\u0060 moves (\u0060animation: s5-drop 0.8s var(--ease-out) 0.2s both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d47028cea94405db60dc427ec3d84bff3c927198ccbc9307badd3802f38167"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s5-float\u0060 moves (\u0060animation: s5-float 5.5s ease-in-out 1s infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb590588df718236c281bbdacc590f2203860faf5f2e788feec6ea27c92c0913"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.0:1): \u0060.next-btn\u0060 sets color: #fff on background-color: #ff9f6f \u2014 2.0:1, below the 4.5:1 WCAG AA minimum for normal text. This is a MINIFIED, build-generated sheet \u2014 editing the literal here is undone by the next vendor drop or rebuild, so override the rule in your own stylesheet (or fix it upstream / in the source the bundle is built from)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Resources/DailyBriefIntro.html"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e300c28e378f37647e7da89acdb56e303d5169165bc6386ae7c446b9c266f4"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.0:1): \u0060.next-btn\u0060 sets color: #fff on background-color: #ff9f6f \u2014 2.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a86a4e387506a89eeb8de1c05f1a6f5f92b256d758690b5b03452ea0dee77a67"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.modal\u0060 moves (\u0060transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out)\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"bceb98678dfd5d22b5d5442f70d6747733391d85a5e816e29540e3322a5c16b4"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .copy \u003E *\u0060 moves (\u0060animation: copy-in 0.6s var(--ease-out) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a114c4d0bab9c811e802e9f8112d299c188620b3741c111a4da5c60edfa0748e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.next-btn\u0060 moves (\u0060transition: transform 0.18s var(--ease-out), box-shadow 0.18s, opacity 0.3s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"9082c098a910581b6c4e8ee7b28d00eb89f3351b48948a84cae9b6987d6c9134"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .drift\u0060 moves (\u0060animation: drift 16s ease-in-out infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72f1e551bf0d51e27b911e0901d2db857abb6f7c259b3ab503c51897f0b6bed"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .flip180.drift\u0060 moves (\u0060animation-name: drift-flip\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"91aa289bfe984cf1c46de0c39bc8124f7254fc5335b7cb36c354ae8d8f89f073"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s1-card\u0060 moves (\u0060animation: s1-card-in 0.55s var(--ease-out) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ca31383edad428a7492c5d09bd3851b0bcee45e96c66a8a8f48d8b7a63742a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .pk b\u0060 moves (\u0060animation: pk-down 2.6s ease-in infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b69d50066885fc2b0f2a21fcd9a0f942683228c7a5213ed023a4b64df92825"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .pk--up b\u0060 moves (\u0060animation-name: pk-up\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"2219ed67bb5aca8e66c3b1edf9ffa61d8889070e00f4df62163985f9f8fa3483"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s1-ring\u0060 moves (\u0060animation: s1-ring-in 0.5s var(--spring) 0.8s both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"811e0c2c568a897c52a6761fdfc0c1d7e597142e45e7fa868ebe52bb860410f3"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s1-pulse\u0060 moves (\u0060animation: s1-pulse 1.6s ease-in-out 1.3s infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a13b3af23fa39993e716e4c00b3c1b64f8a3378a22622b5c64b3ee2927b7ef1"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s1-bub\u0060 moves (\u0060animation: s1-pop 0.55s var(--spring) var(--d) both, s1-float var(--f) ease-in-out calc(var(--d) \u002B 0.6s) infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e4ea4cb85873eefc4d2bc1fc6e4942003ebe2f6de0ab77cf2e96b1f16192b3"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s2-stack\u0060 moves (\u0060animation: s2-stack-in 0.6s var(--ease-out) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a828e90749b821aa681a2197148f42010a344b0478f8a735b8f5c0dfebd53b6"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s2-agent--pixel\u0060 moves (\u0060animation: s2-in-left 0.6s var(--spring) 0.35s both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8128087405bcdf62373bbdc13940121b09ca99e0e3103af69f0685dda3c01c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s2-agent--robot\u0060 moves (\u0060animation: s2-in-right 0.6s var(--spring) 0.5s both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed19d53d9d8e35536a9f1909f5740a2b35e8a0aa41a1dd8c8e93b230d35aec23"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.s2-agent.is-walking.is-holding .s2-walker\u0060 moves (\u0060animation: s2-step 0.27s ease-in-out infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"25efc8bc69bca5b47dacac7eb0d01023ae0d5c3738bca44ce15fc8f77bbaf988"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.s2-agent.is-catching .s2-walker\u0060 moves (\u0060animation: s2-catch 0.45s var(--spring) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c5cb351650df0e55b3cb51ade27eecc27e3d08c0b2d23d22cdd5e571ca891a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase^=\u0022a\u0022] .s3-card\u0060 moves (\u0060animation: s3-in 0.7s var(--ease-out) calc(var(--in, 0s) \u002B var(--d)) both, s3-float 5s ease-in-out calc(var(--in, 0s) \u002B var(--d) \u002B 0.9s) infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"afce2d5e2d265a82a698d91761fb168d367b783d7b2bc4de93854908f6c4b455"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase^=\u0022a\u0022] .s3-bar\u0060 moves (\u0060animation: s3-bar 0.5s var(--ease-out) calc(var(--in, 0s) \u002B var(--d) \u002B 0.3s) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfbe245d83b3df70eaf13c34285527b3aa50a3356e2890a87c8e196ff461dda9"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase^=\u0022a\u0022] .s3-row p\u0060 moves (\u0060animation: s3-fade 0.5s var(--ease-out) calc(var(--in, 0s) \u002B var(--d) \u002B 0.25s) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14472330ff4b79eae617b2ae45079e63941c87dd06f74f25dc477be357ffb9d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase^=\u0022a\u0022] .s3-avs \u003E span\u0060 moves (\u0060animation: s3-pop 0.45s var(--spring) calc(var(--in, 0s) \u002B var(--d) \u002B 0.45s \u002B var(--i) * 0.07s) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2aec63e7f13e61e536de17fad7009098b8598dafd0ff44358484462513928ca"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase^=\u0022a\u0022] .s3-chan\u0060 moves (\u0060animation: s3-slide 0.45s var(--ease-out) calc(var(--in, 0s) \u002B var(--d) \u002B 0.75s) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"032ca4dd599fb6d3f4d95f90b7e5aa94157833278f5cca5920fff1ff002a9312"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase=\u0022b\u0022] .s3-col\u0060 moves (\u0060animation: grp-out 0.55s cubic-bezier(0.5, 0, 0.75, 0.3) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e5c9f4ad906cb1f9b9a04a7874812a470b1baa4e92d07523e6c4a3f5d9f3aa"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase=\u0022a\u0022] .s4-slot--a\u0060 moves (\u0060animation: s4-out-a 0.6s cubic-bezier(0.5, 0, 0.75, 0.3) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"9056d704c67cc3c9a1223c70547fa6eb952a09cc5657edb68a978957cd71c345"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase=\u0022a\u0022] .s4-slot--b\u0060 moves (\u0060animation: s4-out-b 0.6s cubic-bezier(0.5, 0, 0.75, 0.3) 0.06s both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef32ba4f690079858041a0e3445cb18853276ca65f1f73635b8cde6337fb285"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase^=\u0022b\u0022] .s4-slot--a .s4-deal\u0060 moves (\u0060animation: s4-deal-a 0.8s var(--spring) calc(var(--in, 0s) \u002B 0.15s) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"203358e3a94e36ca46a73d2fd92c83e7ef7f252ce583b34aa80a2a78c3a64295"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase^=\u0022b\u0022] .s4-slot--b .s4-deal\u0060 moves (\u0060animation: s4-deal-b 0.8s var(--spring) calc(var(--in, 0s) \u002B 0.38s) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5801293a287a2eaeeb4ba986f901424c6e08a17955560a9396fa5dd6e1bc84b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase^=\u0022b\u0022] .s4-slot--a .s4-sway\u0060 moves (\u0060animation: s4-sway-a 4.2s ease-in-out 1s infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce76611b392db3bd9f9fdc14d974d36ce3fafcce7d845ed21e8028385cbbbbba"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.art--3[data-phase^=\u0022b\u0022] .s4-slot--b .s4-sway\u0060 moves (\u0060animation: s4-sway-b 4.8s ease-in-out 1.2s infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d11766845faf6f84712e3fe82776ba45b67aa3e12546cc2e6b8389c04c01b21"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.s4-slot .s4-card\u0060 moves (\u0060transition: transform 0.35s var(--ease-out), box-shadow 0.35s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd8527b416929772e276c8afab56a5fd94f447f7dc0414059e3b6164e1bedf2"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s5-title\u0060 moves (\u0060animation: s5-title-in 0.7s var(--ease-out) 0.1s both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85a864437d942c1fbe71b02a7d54d0d9ce554f6fccf23a0a0d1d90a0777dcc6"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s5-bg\u0060 moves (\u0060animation: s5-bg 22s ease-in-out infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0066f4630dff35f5b45522fa2beaa6bfa523bbcab09d09eb755770507d538a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.s5-seal\u0060 moves (\u0060transition: transform 0.25s var(--spring), opacity 0.3s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"e239f05e7f2133b96dad95af8539c7f57848563595f9f317d2603b1e1b0e4409"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s5-drop\u0060 moves (\u0060animation: s5-drop 0.8s var(--ease-out) 0.2s both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30a68785884250e72af033c7c3e6fed08886c5352c9f701aa6d6db17dd8354f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.step.is-active .s5-float\u0060 moves (\u0060animation: s5-float 5.5s ease-in-out 1s infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.css"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5376ee56b05ea679b67d983f6290dac0c12eaa3e7483f55f809aad6dc947ce4"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060agent.animate()\u0060 moves (\u0060Web Animations API keyframes\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.js"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6992aa09e03653fb003a7a2867a35af9ff7e047b39fdaf5b96c146189d3698"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060front.animate()\u0060 moves (\u0060Web Animations API keyframes\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/daily_brief_intro/src/intro.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"a23d3a46682d497971f4a544e0b7f8ec3054a1f7444d173c1b6e6750e2d7ba0b"}},{"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":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060executeStreaming\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":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfe80e9232578744e85b72da6ab821f704e4316781a21a6aa8b4381945b3da0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.isSystem == false \u0026\u0026 $0.isIdle == false\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Models/DayGoalPlan.swift, Dayflow/Dayflow/Views/Components/DayGoalFlowView.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":"Dayflow/Dayflow/Models/DayGoalPlan.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e6be3381666678e08178e83be012a317a240c2f552ab1b4f9e817939aae7f6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060byte == UInt8(ascii: \u0022}\u0022) || byte == UInt8(ascii: \u0022]\u0022)\u0060 appears character-identically in 3 files \u2014 Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift, Dayflow/Dayflow/Core/AI/ClaudeStrictJSONParser.swift, Dayflow/Dayflow/System/AnalyticsService.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":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada232b12271f13c2f87ca9cdee5f8694059657518d8aa61a0688460052da909"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060bytes[start] == UInt8(ascii: \u0022{\u0022) || bytes[start] == UInt8(ascii: \u0022[\u0022)\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift, Dayflow/Dayflow/Core/AI/ClaudeStrictJSONParser.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":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e465f991079272e537a2e5c4049a6f8256a8334c865c770ddb8b36f12ac0652"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060className.contains(\u0022TextField\u0022) || className.contains(\u0022TextEditor\u0022) || className.contains(\u0022TextInput\u0022)\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift, Dayflow/Dayflow/Views/UI/VideoPlayerModal.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":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bff8f4d930505b1f0f3b63fe33877a473b633a8785f49c6bfaae1a92e828dbe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cleanedPrimary == nil \u0026\u0026 cleanedSecondary == nil\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift, Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.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":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BNetworking.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6ade9b1ded0835afee2ff1860eb8a7fcd983ce2e9298f37b2abf02e28acb0d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060coveredStart \u003C inputRange.end \u0026\u0026 safetyCounter \u003E 0\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift, Dayflow/Dayflow/Core/AI/TimelineOutputSupport.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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2d967f17eb7045fbd81edb9f9196d433622e7f9ca27b5825c66034eb059fe6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060currentSeconds \u003E= totalSeconds - 0.3 \u0026\u0026 currentSeconds \u003C totalSeconds\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeVideoIntroStep.swift, Dayflow/Dayflow/Views/Onboarding/VideoLaunchView.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":"Dayflow/Dayflow/Views/Onboarding/Prototype/OnboardingPrototypeVideoIntroStep.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc810787d66b002901be47ae5444c8e9661b530bad1e1268dbf14359240c034"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060descriptor.isIdle \u0026\u0026 description.isEmpty\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift, Dayflow/Dayflow/Core/AI/OllamaProvider\u002BSummaries.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":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BSummaries.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"53114d0fa90fd04571451d9b590966df81b89b7cf312772df1506b6d560b597a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060durationMinutes \u003C 10 \u0026\u0026 index \u003C cards.count - 1\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift, Dayflow/Dayflow/Core/AI/TimelineOutputSupport.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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"c307d51cc9706dfe711263726f12a11e5fd69eec4468105a0cb40ccba205eb5a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.keyCode == 49 \u0026\u0026 event.modifierFlags.intersection(.deviceIndependentFlagsMask).isEmpty\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift, Dayflow/Dayflow/Views/UI/VideoPlayerModal.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":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb856ad55605c03f32e6b20fe13910ac66f8950990afdf0c75015ef89135f1b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.phase == .ended || event.phase == .cancelled\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketDeckView.swift, Dayflow/Dayflow/Views/UI/TimelineReviewChrome.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":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketDeckView.swift"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"370b060392aae9cd2ebe256099866b4f64d38b2be2471f29230cfb456697008c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasNonEmpty(faviconPrimaryRaw) || hasNonEmpty(faviconSecondaryRaw) || hasNonEmpty(faviconPrimaryHost) || hasNonEmpty(faviconSecondaryHost)\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Core/Weekly/WeeklyDashboardModels.swift, Dayflow/Dayflow/Views/UI/Weekly/Sections/WeeklyTreemapModels.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":"Dayflow/Dayflow/Core/Weekly/WeeklyDashboardModels.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa7f85b1523ca7c4abd54874e3662058c84d6a496cf3243a27fed5b9edbd000"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060merged.isEmpty || range.start \u003E merged.last!.end \u002B 1\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift, Dayflow/Dayflow/Core/AI/TimelineOutputSupport.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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"62831a06d57137670d77d19faa07fd93a3ffc9ae7f5e681e88ef731eaaa2ac00"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized == \u0022distraction\u0022 || normalized == \u0022distractions\u0022\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Models/DayGoalPlan.swift, Dayflow/Dayflow/Views/UI/DailyWorkflowComputation.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":"Dayflow/Dayflow/Models/DayGoalPlan.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"edda7113437499dda332581b30f48fbe9bbe1e6341bf7435dc3745872da9fe15"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060origin.x \u003E bounds.minX \u0026\u0026 origin.x \u002B size.width \u003E bounds.maxX\u0060 appears character-identically in 4 files \u2014 Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift, Dayflow/Dayflow/Views/Components/DayCategorySelectionEditor.swift, Dayflow/Dayflow/Views/Components/DayGoalSetupComponents.swift, Dayflow/Dayflow/Views/UI/ChatStylesAndDebug.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":"Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"968867551af74ba5a37b8b2f14b5cc793983946f57fc03c013aae78e96ac19e5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060outputRange.start - flexibility \u003C= coveredStart \u0026\u0026 coveredStart \u003C= outputRange.end \u002B flexibility\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift, Dayflow/Dayflow/Core/AI/TimelineOutputSupport.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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a94ba9bc18e0faf19aaeba0d0dc3e07beef6d5e2ef06af2eb26847a3d876fc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060outputRange.start \u003E coveredStart \u0026\u0026 outputRange.start \u003C nextCovered\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift, Dayflow/Dayflow/Core/AI/TimelineOutputSupport.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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb862800c2d51b34bb5de7f7fc2fd888826bbac646580804108dea3082a64dee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060provider == .chatGPT || provider == .claude\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Views/Onboarding/ProviderSetupState.swift, Dayflow/Dayflow/Views/UI/Settings/ProvidersSettingsViewModel.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":"Dayflow/Dayflow/Views/Onboarding/ProviderSetupState.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"67071d2f481ebc9f10f4ee9a2478a324c83d911ed9984fee0c9350a1c4aaf9fa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060responder is NSTextField || responder is NSTextView || responder is NSText\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift, Dayflow/Dayflow/Views/UI/VideoPlayerModal.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":"Dayflow/Dayflow/Views/UI/MainView/ScreenshotSlideshow.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e163490e29d190a31c7f5d26d727b6d86e7637eca45d83e8dab13f1c708059d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rowWidth \u003E 0 \u0026\u0026 rowWidth \u002B spacing \u002B proposedWidth \u003E maxWidth\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift, Dayflow/Dayflow/Views/Components/DayCategorySelectionEditor.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":"Dayflow/Dayflow/Views/Components/CategoryPickerOverlay.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51edf170db3ec2e88c048117246033a44e1aef0bee61bac6ab97a906cc93054"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rowWidth \u003E 0 \u0026\u0026 rowWidth \u002B spacing \u002B size.width \u003E maxWidth\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Views/Components/DayGoalSetupComponents.swift, Dayflow/Dayflow/Views/UI/ChatStylesAndDebug.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":"Dayflow/Dayflow/Views/Components/DayGoalSetupComponents.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77dcdbeefff08055592c15342c7bdb802ba2ee4ea7a50bc8f479db006453158"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060showTimelineAppIcons \u0026\u0026 (faviconPrimaryRaw != nil || faviconSecondaryRaw != nil)\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Views/UI/CanvasActivityCard.swift, Dayflow/Dayflow/Views/UI/MainView/WeekTimelineActivityCard.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":"Dayflow/Dayflow/Views/UI/CanvasActivityCard.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ed72f436570a288d95668c25a1dfb8cd1d783849190e6cdc1527ccdda755d5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060startSeconds \u003C -tolerance || endSeconds \u003E videoDuration \u002B tolerance\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BFrames.swift, Dayflow/Dayflow/Core/AI/OllamaProvider\u002BTranscription.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":"Dayflow/Dayflow/Core/AI/GemmaBackupProvider\u002BFrames.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f02c0af8657cf46bcdcd1777e7b665b9a424fc6a6f351ebb9a45a868951351"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060startTime.contains(\u0022AM\u0022) || startTime.contains(\u0022PM\u0022)\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift, Dayflow/Dayflow/Core/AI/TimelineOutputSupport.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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"9934ce25d1418015920f7c990a913b606d7133f634fc0d6518f2228274857441"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060strategy == .noRetry || attempt \u003E= maxRetries - 1\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift, Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BText.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":"Dayflow/Dayflow/Core/AI/GeminiDirectProvider\u002BActivityCards.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64c96d7af91a846f2af9eb3e85d3a9c43ffaa70a19148423bfe5dca7932d836"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.scheme == \u0022https\u0022 || url.scheme == \u0022http\u0022\u0060 appears character-identically in 2 files \u2014 Dayflow/Dayflow/Views/UI/Flow/FlowWebView.swift, Dayflow/Dayflow/Views/UI/SupportChatWebView.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":"Dayflow/Dayflow/Views/UI/Flow/FlowWebView.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df85cf33924a7b64bacd44f392a193bbc79f6f37970c377c513313bff143237"}},{"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":"Dayflow/Dayflow/Views/UI/Settings/StorageSettingsViewModel.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bdb6ed835624778ee81ea033f6a4b3196a1721a9910e5367d9a5b2ba0c5b713"}},{"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":"Dayflow/Dayflow/Views/UI/MainView/Support.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9a4221b512e9845f491b3a25c2d860e9f7123412620258117109378905cbea"}},{"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":"Dayflow/Dayflow/Views/UI/Agents/AgentPlaybackView.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f294978f8cbe61f07462dbe96d8ab749aad8679d43827f8b1d6165ad1ccea2"}},{"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":"Dayflow/Dayflow/Views/UI/Agents/AgentPlaybackView.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f79a5383ae4a55ba5e0a17b2a9cf839376e0200ffe184e362aa18c5512830a1"}},{"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":"Dayflow/Dayflow/Views/UI/Agents/AgentThreadOpener.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"58995d914704e84490d2da8f4f481b75ac8aa93306b5dd16c0616f5bd5812b67"}},{"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":"Dayflow/Dayflow/System/DayflowAuthManager.swift"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba08b138024e1848411740c90f66a18bec680f0f19bf5f139cbbfa8a2c0773c"}},{"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":"Dayflow/Dayflow/Core/Recording/StorageFileManagerExtensions.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3cdc5f42a3e89780962a6aab479e503232dab42de561dfef7a984f9946d071"}},{"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":"Dayflow/Dayflow/Core/Net/FaviconService.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ef5d4ee755067ef2079e576bfc6d3fbacf7d1b18db3c0d6cb37208034eca37"}},{"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":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefGenerator.swift"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"87069c8116b7e7b33db90c30e5213ec137270ad7656d99c908f94a64c329ff6c"}},{"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":"Dayflow/Dayflow/Core/AgentAccess/AgentClientRegistration.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eecefed0ef5462d4174d7fff7d897b1dc96f25c7eaf4bbdd91ace7f788d8860"}},{"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":"Dayflow/Dayflow/Core/AgentAccess/AgentUsageTelemetryQueue.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"4856ab0cabacf02961209aef7b7ff2acef06675723225a2bfacfbad7e4d792a4"}},{"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":"Dayflow/Dayflow/Core/AgentAccess/CodexMCPRegistration.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"914f41cef32793a9d190bacb28b64649fe8b3107850dfd3ee2a760c239ca6c79"}},{"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":"Dayflow/Dayflow/Core/AI/ChatCLIProcessRunner.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc35496aa5b3e1650bb304bd1cd88bbcfd516460cc915c658ad570652c4c094d"}},{"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":"Dayflow/Dayflow/Core/AI/ShellEnvironment.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"d648df0a8d973b91590b07ef173e38bfc6e5211d14f3a93fef71589de012940f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getCodexMCPServerNames\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":"Dayflow/Dayflow/Core/AI/LoginShellRunner.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80df2090db7847cf4269c361a644383caeae9cbea187dd686075c7d6d2da55b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060jsonLines\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":"Dayflow/Dayflow/Core/DailyBrief/DailyBriefThreadIndex.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab29a6188870aac5a028c4a6d0c0d3e46ed5a9c45512dd3267c5b8aed003ac77"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchChatConversations\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BChatHistory.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"0874b6db69428296d1cab98b064d3c47d2c10fc42126cca9499084a73ae46f6c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchChatMessages\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BChatHistory.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea7254665b77f203b41483ac828f3dd94844b3a3836202fc8d7f6f283e32856"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchUnprocessedChunks\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"db328d3a7244c524ce473352900eb275edee8f3270d6f8c8de933a00e4fc9ac1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchBatchLLMMetadata\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab84e49b620ccf48a2179369209e81baf6b0b9bd0db74d552d54f53081898df"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060chunksForBatch\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fc13a707e6565f71543a1d88ec591a463cf93769ad5f16238dfe3027d12e0a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchChunksInTimeRange\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BChunks.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"c550e7eba15c127faaedf14e227176000cbc252396bcd10c9d0e6b50b32ce0d2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchAllDailyStandups\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BDailyStandup.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfcfa232e7c11015f98d1d3518b3e358b269cb55fdf7ca8ed4947c0224bcf6fc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060countDistinctTimelineDays\u0060 turns every thrown error into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BDayGoals.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d99a172623fcc14f730116ed4b4d9f858766d49b0df3063c0a01f253fd35caa9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060consecutiveSkippedDayGoalCount\u0060 turns every thrown error into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BDayGoals.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2afd232489d9a8453b2e81572ed08db6793789c84fe1cea69e9d0ddd3026cf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchObservations\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BObservations.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"429a3affd9abe5dc80de8730ac48fb828054871a5574073e78eb8af27c5bc7ce"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchObservationsByTimeRange\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BObservations.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"341884b00bc8d023e75997bb3920fcd1b67c8d5de9f48338fe2f097bdcee2465"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchObservations\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BObservations.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"747eaa5946bf3e1b1f33fbd541d5e16fbb6408a4fd17d90d0ce765df658b7fb1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060countCompletedAnalysisBatchesForWeeklyAccess\u0060 turns every thrown error into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BReprocessing.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4afb016c1668b3265ce0ae9e9cf1313988a510a000ceb66644cd01be781016"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchUnprocessedScreenshots\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BScreenshots.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1d412170ffeb3a7673cb9b7b208940a9bb8529fb1fa14bb00bab076f302616"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060screenshotsForBatch\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BScreenshots.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"791daaafaef475a5c338c66e40d088320d0906f1ef72ffaf2fcb52e08921921f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchScreenshotsInTimeRange\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BScreenshots.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d1f8c3f137dab6cf08a488a7dfbf99a666c71ebbfeb73ee08c6cb7e0b5ac55"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060countTimelineCards\u0060 turns every thrown error into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"363d0c067f81155e05643cec59cfe25554c27e2f23a192786a33a74d6ba69a03"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchTimelineCards\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"101a94ac8823bc284eb40001922e9404672428ead7b06d4498a57292a5703e98"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060allBatches\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":"Dayflow/Dayflow/Core/Recording/StorageManager\u002BTimelineCards.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"146ae6d8930f19eb34551dc6e9adc47c02920962ec2db2b402e5b09cc7eb7ae3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060currentUsageBytes\u0060 turns every thrown error into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/TimelapseStorageManager.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"acbb6fd1b65289cb1ac02f3258b2bc907af766100afab25d24e07c06249fd148"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060entrySize\u0060 turns every thrown error into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dayflow/Dayflow/Core/Recording/TimelapseStorageManager.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"502107bf515bab72d0945b55e00460ff2f3c6c7edcec76ea4aae94ec9e1c4ee2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060capture\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":"Dayflow/Dayflow/Views/UI/DailyBrief/Docket/DocketHandoffTransition.swift"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0a7886222d6cce4b7c9641ff62326a39ae33ecd8cd77154aec62c94607601e"}}],"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-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-311","guid":"51c30837-1e31-e25f-abf9-52b0cbfcbbae","name":"Missing Encryption of Sensitive Data","shortDescription":{"text":"Missing Encryption of Sensitive Data"},"helpUri":"https://cwe.mitre.org/data/definitions/311.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-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"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":8,"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."]}]}