{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"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":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"ResponseStreamEvent.init (cyclomatic 59): ResponseStreamEvent.init has cyclomatic complexity 59 (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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":10098}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b1282b119e53349cb9020b3cb5912c75f3e8e9a76484630e00686a9daf6317"}},{"ruleId":"D1","level":"warning","message":{"text":"remove_required_properties.remove_required_properties (cyclomatic 16): remove_required_properties.remove_required_properties 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":"Scripts/remove_required_properties.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ae996a68357771c6dee13eaecd410c7ed3dec3f41d88218057e2a7bf4e1bac"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponseStreamEvent.init (cognitive 58): ResponseStreamEvent.init has cognitive complexity 58 (threshold 15). Drivers by points: error handling 58. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":10098}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7a068f51972e527b4e2a07757f1e1f823c7c056b64c3a63b4df6170b78a3ac"}},{"ruleId":"D2","level":"warning","message":{"text":"PropertyValue.init (cognitive 28): PropertyValue.init has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 1 (4 pts), match/switch 2 (4 pts) (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Private/PropertyValue.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b96323af3e96e16f9aaf2fac13d0987f61bfe4523a16a60501b971741c03940"}},{"ruleId":"D2","level":"warning","message":{"text":"remove_required_properties.remove_required_properties (cognitive 26): remove_required_properties.remove_required_properties has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Scripts/remove_required_properties.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"038a9ffabc351bcc6eb848e923526cfc371cdc1c881b4328624374a04d624e99"}},{"ruleId":"D2","level":"warning","message":{"text":"fix_boolean_exclusive_minimum.fix_boolean_exclusive_minimum (cognitive 22): fix_boolean_exclusive_minimum.fix_boolean_exclusive_minimum has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Scripts/fix_boolean_exclusive_minimum.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60d63dcefe6af38910b14227acf247fb1caa8b0e22153581fbe68fa7ab42e7a"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCompletionMessageParam.init (cognitive 17): ChatCompletionMessageParam.init has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/ChatQuery.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8d06c79381af2d003b426d6a7f2bb787b508d604629d60ad7fee99853e566a"}},{"ruleId":"D2","level":"warning","message":{"text":"PropertyValue.encode (cognitive 16): PropertyValue.encode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Private/PropertyValue.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f319447995fcfe5fc7a2be08a665ed6914ebc3cd3373d5d22fdb287d14b3d4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OpenAI: TooManyMethods \u2014 98 methods, declared across 4 files: OpenAI/OpenAI.swift (39), OpenAI/OpenAI\u002BOpenAIAsync.swift (33), Private/OpenAI\u002BMakeRequest.swift (23), OpenAI/OpenAI\u002BOpenAICombine.swift (3). The bar is 30 methods; this is 68 over it, 3.27\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. This type is on a published API surface \u2014 a \u0060swift package diagnose-api-breaking-changes\u0060 gate in CI (.github/workflows/api-breakage.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/OpenAI.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73966e3a50c4667311b44a0932ef178169769875f3938570040083f9eb0bc18"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JSONSchemaField: TooManyMethods \u2014 67 methods. The bar is 30 methods; this is 37 over it, 2.23\u00D7 the bar. This type is on a published API surface \u2014 a \u0060swift package diagnose-api-breaking-changes\u0060 gate in CI (.github/workflows/api-breakage.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/JSONSchema/JSONSchemaField.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e9ed3a4790c88636d0da641a35de6fc66d71962f9a3d87499815cf8eb499df"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatQuery: ClassTooLong \u2014 795 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 395 over it, 1.99\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/ChatQuery.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8c57c1fba4328daa4877439de9100a0301f970f3acc0982eccfd7b29c386a7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Models/ChatQuery.swift: FileTooLong \u2014 812 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ChatQuery (12-1351). The bar is 500 significant lines; this is 312 over it, 1.62\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/ChatQuery.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd199d480ba5408dc4cfc507fde46bd437d31c5728124691a816e3a0aa3f957"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelResponseEventsStreamInterpreter.responseStreamEvent: MethodTooLong \u2014 responseStreamEvent 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":"Sources/OpenAI/Private/Streaming/ModelResponseEventsStreamInterpreter.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"902f8537b520392a94bb4f540b9621047dd5dadeef2475c6d39d8ea675326f26"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ResponseStreamEvent.init: MethodTooLong \u2014 init runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Facade/ResponseStreamEvent.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae088ca3d810eba05da0f447a50634e5e715b79c6e7f82b797746315c0c15139"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ResponseStreamEvent.encode: MethodTooLong \u2014 encode runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Facade/ResponseStreamEvent.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"891f08b4f4e2343cbf088633eb493213b54910e30933df12f3843b94c3bce3b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 14 shared lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3702-3791 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3921-3995 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5548-5618 \u2014 These 3 members are variants of one another: a block of 14 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3702}}}],"partialFingerprints":{"codehealthFindingId/v1":"b970598830e79f3b1c41ae896d3c808fce6224acc39548cd67aa4cbbe77551da"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (33 members, 50\u002B identical tokens): Sources/OpenAI/Public/Schemas/Generated/Components.swift:179-197 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:462-480 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:552-570 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:636-668 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:1496-1514 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:2565-2585 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3365-3385 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3414-3440 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:4927-4947 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5455-5475 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5548-5618 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5781-5799 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:11189-11235 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:12908-12928 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:13773-13795 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:14228-14246 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:14329-14347 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15515-15533 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15658-15676 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15699-15717 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15890-15910 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:16059-16077 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:16268-16286 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:17102-17120 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:17266-17284 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:17577-17597 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18119-18139 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18545-18563 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18683-18701 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18960-18980 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19786-19808 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19880-19898 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19923-19941 \u2014 These 33 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 33 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 33 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e312d119ad46861e443f3f35fdd0cfefc531addbd346a57004f0029406628e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): Sources/OpenAI/Public/Models/ChatQuery.swift:164-222 | Sources/OpenAI/Public/Models/Responses API/CreateModelResponseQuery.swift:138-186 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:1161-1193 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3312-3338 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:4775-4801 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:6263-6305 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:9979-10097 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/ChatQuery.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fbe664db84a2a141ebf05f5d9eccffaf497c7c3b0a1acd9c2e859f83545499f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3055-3076 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3136-3157 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5083-5104 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5217-5238 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:14448-14469 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19337-19358 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19549-19570 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3055}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82e3a8017114a7ab9553bc44dd48aa2d30913ef81e5658e851f9eaef7cd5a3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sources/OpenAI/Public/Schemas/Generated/Components.swift:9404-9418 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:9478-9492 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:9552-9566 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:9626-9640 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:9700-9714 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:9774-9788 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":9404}}}],"partialFingerprints":{"codehealthFindingId/v1":"4261dd2ca7307268a9920af9deb0efd6d5c16c816e3dbfd5ba628ca8a0623d74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 7): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3055-3076 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3136-3157 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5083-5104 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5217-5238 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:14448-14469 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19337-19358 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19549-19570 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3055}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e3cdf4b71c223a15bcb379e6d5adf3ca938364fb3cf4299ebcc3a9c967d3df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:2566-2585 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3366-3385 \u2014 both copies are in the same file, so extract the block 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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":2566}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead2c20caf170e84d181fa6990a6d37393727d198ab0917b0d0e3803bd8d0d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:4027-4045 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5646-5664 \u2014 both copies are in the same file, so extract the block 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, \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:5665\u0060 calls \u0060mcpToolCall\u0060, \u0060encode\u0060 and \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:4046\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":4027}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b53e1af8caa828b54be885fc644605614a86ffea8a86e5d1de7afaf6ff75b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:343-360 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:12413-12430 \u2014 both copies are in the same file, so extract the block 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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"1554e917b814c85fa78be5330712598e932f22ac5d2579680ed1c5b85f7f230a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:1398-1415 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15309-15326 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:1398\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e7566f8d78df32ea24638b6bf2fbdfa364e75835fcdf24b30d2c2a7b14c3b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:15516-15533 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15659-15676 \u2014 both copies are in the same file, so extract the block 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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":15516}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdeaca124eb11dcc665e39f635e4b075aec89272fda9dc9399dc261067d6b5c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:19881-19898 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19924-19941 \u2014 both copies are in the same file, so extract the block 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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":19881}}}],"partialFingerprints":{"codehealthFindingId/v1":"da453d30b0808fd250d490db60aef59085e15af28cfd42ba168039fcfb04f27c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 7): Sources/OpenAI/Public/Schemas/Generated/Components.swift:312-327 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:1940-1955 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:2772-2787 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3613-3628 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:4728-4743 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:6190-6205 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18163-18178 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:312\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"787690e5daec73925211950c1504580da23a05dacc96b6d5ce99905608838d68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Sources/OpenAI/Private/Client/StreamingClient.swift:44-59 | Sources/OpenAI/Private/Client/StreamingClient.swift:73-88 | Sources/OpenAI/Private/Client/StreamingClient.swift:102-117 \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 \u0060Sources/OpenAI/Private/Client/StreamingClient.swift:44\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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 \u0060onResult\u0060 to \u0060@escaping @Sendable (Result\u003CAudioSpeechResult, Error\u003E) -\u003E Void\u0060 in one and \u0060@escaping @Sendable (Result\u003CResponseStreamEvent, Error\u003E) -\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":"Sources/OpenAI/Private/Client/StreamingClient.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"262dc745870f947aae7f66d1c8f69a700a94f1ba343885b14f759e5c9a76eed2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:1706-1720 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:10100-10114 \u2014 both copies are in the same file, so extract the block 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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"4daf20690bd91b4ef1db505cd7f89d898df9250e6697b212105f333491a21c2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:10601-10615 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:10683-10697 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:10601\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":10601}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4183399ebb78adf5e0dd815d771a35bc0b2347244b0f0c1533f77d585782db8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 8): Sources/OpenAI/Public/Schemas/Generated/Components.swift:308-321 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:341-354 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:1936-1949 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:2768-2781 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3609-3622 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:6186-6199 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:12411-12424 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18159-18172 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:308\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b31997db0380a8ee69a8590fb602cc17604c20d3e8d5ba0582c03305f78f15c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): Sources/OpenAI/Public/Schemas/Generated/Components.swift:9406-9418 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:9480-9492 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:9554-9566 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:9628-9640 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:9702-9714 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:9776-9788 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:9406\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":9406}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e533559ebcef051cdd4630fe66d48e1f6293412e1622dc49c8f4b56b4a6dec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:8044-8056 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:14529-14541 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:8044\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":8044}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a0b35f306a0ca0c3b94780f47fcb388f5356e6b4d421d32de756e53653c2f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:11948-11960 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:12141-12153 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:11948\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":11948}}}],"partialFingerprints":{"codehealthFindingId/v1":"930498a4a87dbb14ebd6b72e046b5627f793751a52ca9b0090e9b0c5406d6272"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:15195-15207 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:16210-16222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:15195\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":15195}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0ecd1f506407068e270e81cb9a9b5536f815e04fcfa11bd427fae7f605e8e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): Sources/OpenAI/Public/Models/ChatQuery.swift:193-204 | Sources/OpenAI/Public/Models/Responses API/CreateModelResponseQuery.swift:162-173 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:1177-1188 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3325-3336 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:4788-4799 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:6284-6295 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:10038-10049 \u2014 there are 7 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 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OpenAI/Public/Models/ChatQuery.swift:193\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/ChatQuery.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"209ab1db82976d2900062d61b6eb6d34f24483f57128999cb61060d7ec6459e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): Sources/OpenAI/Public/Models/ChatQuery.swift:211-222 | Sources/OpenAI/Public/Models/Responses API/CreateModelResponseQuery.swift:175-186 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:1182-1193 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3327-3338 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:4790-4801 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:6294-6305 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:10086-10097 \u2014 there are 7 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 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OpenAI/Public/Models/ChatQuery.swift:211\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/ChatQuery.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d9c5fb8b593c45c57ff1d90bf3bcb96fb322e05c885e6c172618f67dbf6a83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/OpenAI/Public/Schemas/Generated/Components.swift:1704-1715 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:10098-10109 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15305-15316 \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 \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:1704\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":1704}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d53811aa9a4040406cf0ba4ced6bc214278056efe578f44b915c10852283c11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Edited/InputItem.swift:44-55 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3429-3440 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060Sources/OpenAI/Public/Schemas/Edited/InputItem.swift:44\u0060 it begins part-way through the construct above it, so those exact 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, \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:3428\u0060 calls \u0060itemReferenceParam\u0060, \u0060init\u0060 and \u0060Sources/OpenAI/Public/Schemas/Edited/InputItem.swift:43\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Edited/InputItem.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06f0fe02c05d156618dcb1414fea621661022741f330300882694c25af2a801"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Edited/ResponseFunctionCallArgumentsDoneEvent.swift:58-69 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:20096-20107 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060Sources/OpenAI/Public/Schemas/Edited/ResponseFunctionCallArgumentsDoneEvent.swift:58\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":"Sources/OpenAI/Public/Schemas/Edited/ResponseFunctionCallArgumentsDoneEvent.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4c01bf6c9db8f6cecc26703a9b879d65f37258c864287ad4a7b0e6c7de5072"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:15899-15910 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18552-18563 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:15899\u0060 it begins part-way through the construct above it, so those exact 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, \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:15898\u0060 calls \u0060containerAutoParam\u0060, \u0060init\u0060 and \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:18551\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":15899}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea4034a1b5a0718bfd90a5fe524a9f7878bc0131933b8f99db679e7b5a740da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:470-480 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:560-570 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:470\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce52f86c9a5e346b8effdbef6a9009e4edb83963f7cc046e5d577b7cb29bf465"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/OpenAI/Public/Schemas/Generated/Components.swift:8041-8050 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:12700-12709 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:16408-16417 \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 \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:8041\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":8041}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38b7d5eddc38608052b68b825b48c46c286fdf5b584f8272d4c841a53a6ae49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/OpenAI/Public/Schemas/Generated/Components.swift:15195-15204 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:16115-16124 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:16210-16219 \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 \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:15195\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":15195}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d796e6d28ccdb62aa2eab125e51e888bd366ca0f5278b1b206c13918a1c6fd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:2586-2595 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3386-3395 \u2014 both copies are in the same file, so extract the block 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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":2586}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40666f428efcb90f6de0d8e3d3319d3fc3d10f46810304555ad3a02c70673ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3986-3995 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5609-5618 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:3986\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3986}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1ca0b4e9da6fb587d31cdf0f0afa95446850e17fc128f9fb310094c2d4b38b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:5456-5465 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5782-5791 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:5456\u0060 it does not close everything it opens, so those exact 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, \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:5467\u0060 calls \u0060reasoningTextContent\u0060, \u0060init\u0060 and \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:5792\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":5456}}}],"partialFingerprints":{"codehealthFindingId/v1":"77189af18da6f47e2153556efae247785fb14a8db837d0156b358bd012033b5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3821-3829 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:4029-4037 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5648-5656 \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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3821}}}],"partialFingerprints":{"codehealthFindingId/v1":"394e0d34cfd83cd8d53e25987fefb5406d4df73dd6dccf066807b66630244b23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/OpenAI/Public/Models/ImageEditsQuery.swift:50-58 | Sources/OpenAI/Public/Models/ImageEditsQuery.swift:74-82 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OpenAI/Public/Models/ImageEditsQuery.swift:50\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/ImageEditsQuery.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3c21fdb7f7adce76cb62b1da634fc6f7974ae45abb4222670c23ab136dcb15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/OpenAI/Private/Client/CombineClient.swift:29-37 | Sources/OpenAI/Private/Client/CombineClient.swift:53-60 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OpenAI/Private/Client/CombineClient.swift:29\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Private/Client/CombineClient.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"5010877fcaa52c5bcf0831ef2f56bd308e854ae61b1c7480d8f3c56f42d43cf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:373-380 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:12437-12444 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:373\u0060 it does not close everything it opens, so those exact 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, \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:381\u0060 calls \u0060case4\u0060, \u0060encodeToSingleValueContainer\u0060 and \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:12445\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"37169bd1769864aa549d532de9985319c3242917d1fd1521e06f4af9714f1f8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 33): Sources/OpenAI/Public/Schemas/Generated/Components.swift:179-185 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:462-468 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:552-558 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:636-642 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:1496-1502 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:2565-2571 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3365-3371 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3414-3420 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:4927-4933 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5455-5461 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5548-5554 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5781-5787 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:11189-11195 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:12908-12914 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:13773-13779 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:14228-14234 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:14329-14335 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15515-15521 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15658-15664 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15699-15705 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15890-15896 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:16059-16065 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:16268-16274 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:17102-17108 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:17266-17272 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:17577-17583 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18119-18125 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18545-18551 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18683-18689 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18960-18966 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19786-19792 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19880-19886 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19923-19929 \u2014 all 33 copies are in the same file, so extract the block into one function there and call it 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 \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:179\u0060 it does not close everything it opens, so those exact 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, \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:15898\u0060 calls \u0060containerAutoParam\u0060, \u0060init\u0060 and \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:18553\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"22dff86ca7f2349ab8894a7cb83fe34d5c331c218d598771518724033792f899"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/OpenAI/Private/Client/StreamingClient.swift:35-41 | Sources/OpenAI/Private/Client/StreamingClient.swift:64-70 | Sources/OpenAI/Private/Client/StreamingClient.swift:93-99 \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 \u0060Sources/OpenAI/Private/Client/StreamingClient.swift:35\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":"Sources/OpenAI/Private/Client/StreamingClient.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8b57b8a61db6243d1fb52fb0f3c36e3c3c1c86907f670bbe628a2422789646"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Edited/Tool.swift:105-111 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:11241-11247 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/OpenAI/Public/Schemas/Edited/Tool.swift:112\u0060 calls \u0060webSearchPreviewTool\u0060, \u0060encode\u0060 and \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:11248\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":"Sources/OpenAI/Public/Schemas/Edited/Tool.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffd069d636938e3f0c5fa7e2bd1f9351268a9895d02317f8e57ce25350c30af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3795-3801 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3999-4005 \u2014 both copies are in the same file, so extract the block 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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3795}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb561bac5182ffb6b44f3de57e1128de61075da9a3f5df59a6c76f8131bab351"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:4013-4019 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5640-5646 \u2014 both copies are in the same file, so extract the block 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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":4013}}}],"partialFingerprints":{"codehealthFindingId/v1":"168f7b96e0b39d4e5fea292691392b5c6c6290f263baa66c8840799f8d5f56a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:4021-4027 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5634-5640 \u2014 both copies are in the same file, so extract the block 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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":4021}}}],"partialFingerprints":{"codehealthFindingId/v1":"2713c0a6adcdff35634468acc8b434027eb0cf71d5f7a7827ef718d2a901eb64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:4045-4051 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5666-5672 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:5664\u0060 calls \u0060encode\u0060, \u0060mcpToolCall\u0060 and \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:4044\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":4045}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc902bc71e4616ba183854eba47dcfc348a42d34432d789a28ab4027e8cbee3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/OpenAI/Private/Streaming/ModelResponseEventsStreamInterpreter.swift:47-55 | Sources/OpenAI/Private/Streaming/ServerSentEventsStreamInterpreter.swift:48-56 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Private/Streaming/ModelResponseEventsStreamInterpreter.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"b364f6381db30290a4a03584240e55396639b3df78d11dd1ae48da3d2901b7e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Edited/ResponseOutputItemAddedEvent.swift:27-37 | Sources/OpenAI/Public/Schemas/Edited/ResponseOutputItemDoneEvent.swift:27-37 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Edited/ResponseOutputItemAddedEvent.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc49e22d31a256b70ff3a9b8df9ac7366414c8ca77ae36c2519e2bf7dfe6988"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/OpenAI/Public/Models/ModerationsResult.swift:53-57 | Sources/OpenAI/Public/Models/ModerationsResult.swift:99-103 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/ModerationsResult.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e01510302b2610567032cf3346b55cd71d72d59f5b8180c635e1694965753c28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3713-3717 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3931-3935 \u2014 both copies are in the same file, so extract the block 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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3713}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed98ba68164787047a8a902e2203b44ef52c61ed6d6e117c5347dcfc07a261d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3738-3746 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3960-3968 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5583-5591 \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 \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:3738\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3738}}}],"partialFingerprints":{"codehealthFindingId/v1":"e77befc5d8f11ebc43b78e1dce2b0a2c15b4ddc7ea7d18557ad0cfd381123e46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3754-3758 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3976-3980 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5601-5605 \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 \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:3754\u0060 it begins part-way through the construct above it, so those exact 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, \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:5600\u0060 calls \u0060mcpToolCall\u0060, \u0060init\u0060 and \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:3975\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3754}}}],"partialFingerprints":{"codehealthFindingId/v1":"67db77f9c352f7b4f55b40976d729cabbb08aaf1802ef79ba00a7cde32dfe276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3944-3950 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5575-5581 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:3944\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3944}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d05d228b8b643b94b056c601bf7d2f65c892d2039f1cc6761ccedff7faf0570"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Scripts/fix_boolean_exclusive_minimum.py:108-113 | Scripts/fix_rounded_int64_bounds.py:69-74 | Scripts/remove_unsupported_webhooks.py:72-77 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Scripts/fix_boolean_exclusive_minimum.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff290041cef0015e552bcfc4bd23f15985c943e721ff01f8a2e1e982c9407c1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Scripts/prepare_openapi.py:69-73 | Scripts/remove_required_properties.py:156-160 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060Scripts/prepare_openapi.py:69\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Scripts/prepare_openapi.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"7725414c811b264139507ac412b72faefda3db7831125ad4dac85b2919a637e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Demo/DemoChat/Sources/AssistantStore.swift:31-39 | Demo/DemoChat/Sources/AssistantStore.swift:57-65 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Demo/DemoChat/Sources/AssistantStore.swift:31\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Demo/DemoChat/Sources/AssistantStore.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc3845f7d07a6381cde9c163020a000506af9e6d15ee4a3fa38c81bb466f8ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Demo/DemoChat/Sources/ResponsesStore.swift:750-758 | Demo/DemoChat/Sources/ResponsesStore.swift:761-769 \u2014 both copies are in the same file, so extract the block 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":"Demo/DemoChat/Sources/ResponsesStore.swift"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db4c20417a177450bec2319d1b21379098bebed320139dcdbaaaa6de8bf8f7c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testImages: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb50896f78c1266f980ad88d8ec081ba3d47f7a6f4776deaac6622ee731efc0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testChatCompletion: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"38eb82c4272af10b25d8099d0b4e334020bca226ec5af5a8033cfe0b66b91c8d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCompletionUsageWithCompletionTokensDetails: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed9c0af4eeb109535b88d2b2c2eeb668ce9bd82175b14a632c82ee0754c9f9b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCompletionUsageDecodesWithoutCompletionTokensDetails: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"34676369a540a2d8210b0fc1506bc994713d38ea815f9da6579f5925a224da9a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testImageQuery: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3391107a64d7a01531623074b224742047c874b36863b27f75d787493e64bec"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testChatQueryWithFunctionCall: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"06dd38f415a34fcbe9f4e7b732ce13e631bd0ccbf8b212b8b582dd0e2e557fc3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testChatCompletionWithFunctionCall: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"50cfe59b852397155d7d2bf302738093574952baa04df08bc542a885bde85415"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEmbeddings: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"93eeaaaee12efaf4bbde30699c4a65e518377c79ec6fac57c61f504165d9dc55"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testModels: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3623ade253d052cb73ed9144c332e8f97b4afcb4f2e5fe81f41a173c9b5e8e8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testModelType: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffcc5ec2bcf7412bf7e1e4cc67b3d617046ffcf15c324c82ad898e4393b97cf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testModerations: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ab0369668d89863b766c93e0200f936de70344ae5d4dbdc80bae920cb257a8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAudioTranscriptions: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"79372acf56d7b05f87ea25caa192cb28fea1182bde3ba32c24965aacefa81674"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAudioAudioTranslationResults: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6928985695ead51dad21bfe2dc841d290f1f46aa77bfd2260dacc3226dced3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAssistantResult: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab78b7142237cecc72b00eabd593bf8a4c8da22ccde447f5bca89bff510bdc3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAssistantsQuery: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6de748dc90604a2ff518504e9299587e0c50321b28536bfad81cd151ec4173"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAssistantsResult: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"46657e952b1720b9490c50de6afeb39820364f9462d782528fc6e0da3c02a5bf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMessageQuery: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"104d003df9d4e418c68c403805b7a01cb19db93281326b7280299ec9fd2ec7b9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRunResult: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"781ba8d93c18789d6864d26d8f26589e94acc53ed40c0cd1e3d176b334f5b9c9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRunToolOutputsQuery: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"1163ea6041dc565e7fc6c8230c02f129fe23f24538447524fdd461b7c4a19989"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testThreadRunQuery: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"9072f998093f1cd64c93a72cb966415dbb43faa00f3636ac9e386c73bdf8e93e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testChatQueryWithStructuredOutputDerivedSchema: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"a053efb3f78b5a1265efadbe3e817a2ff1ee530c9453b6124b77d2b95a9dc6ec"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testChatQueryWithStructuredOutputJsonSchema: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"9272bdde040189671b719028434f4f0e589f62602ad2f034580507008864147f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCreateResponseQueryWithStructuredOutputDerivedSchema: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"86db5e27df73d8fa91866a63ec711926a6e39c66bf0344df21468d2db15c1279"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCreateResponseQueryWithStructuredOutputJsonSchema: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f5910d60213ed3979934c8b64b541e86a45c240b8650936e463e3f514d2415"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCreateResponseQueryWithVerbosity: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"14616be70d4ea6b1286732ec2c1ad29845172a63e521e333419579389181254a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: reasoningItemDecodes: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/OutputItemCodingTests.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9fc8abf66960a4218ea6bfc544e5c7d6ce346d95d10aa0a18d58fdad4dfc1ab"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testResponseCreatedRoundTrips: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/ResponseStreamEventCodableTests.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"791d1bd385130d417acbd054f12afbca231287227a21bd75eb419dde24557b74"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testOutputItemAddedRoundTrips: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/ResponseStreamEventCodableTests.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"36400193c495646d585bc3a878471b6fffea01f527bff2d90fdd97d098675946"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testOutputItemDoneWithFunctionToolCallRoundTrips: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/ResponseStreamEventCodableTests.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f2798a323563910a6d33278268bcfa302461172180309e755d277ad984aedf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testContentPartAddedRoundTrips: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/ResponseStreamEventCodableTests.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5d84867625eac1d0e66ef6a87c8adc5836582c2a2d531e216d71282116585a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCodeInterpreterCallCompletedRoundTrips: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/ResponseStreamEventCodableTests.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"3105f6d1a7fba99a037798e29c2424afbafd4199e4788ab6d611b1a908b612bc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testShellCallCommandAddedRoundTrips: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/ResponseStreamEventCodableTests.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2a3d22f272cae740b789617a82443257e9bb9fddb45c1e7bd78c44272c8907"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMcpCallArgumentsDeltaRoundTrips: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/ResponseStreamEventCodableTests.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dde629be99385df8214e53ec0817b18fb238f4f69cb9f11ca7e23043b207e1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFunctionCallArgumentsDoneRoundTrips: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/ResponseStreamEventCodableTests.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"28bc9d2d5f3faf188476378c29c17504ac75eda2198293b5218d559232f5f65a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testErrorEventRoundTrips: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OpenAITests/ResponseStreamEventCodableTests.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87b6de532007ab656d055631a28187d8802388289b8eef7f203298361436e4d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Demo/DemoChat/Sources/ResponsesStore.swift: Demo/DemoChat/Sources/ResponsesStore.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in ResponsesStore.handleResponseStreamEvent at line 523. 5 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 22:41:09 \u002B02:00\u0027 --until=\u00272026-10-28 22:41:09 \u002B02:00\u0027 --full-history --no-merges -- Demo/DemoChat/Sources/ResponsesStore.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Demo/DemoChat/Sources/ResponsesStore.swift"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8a9d88899b5672bb73e07b5e44a1950354f88b40571dc4de1428316d50d4fc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/OpenAI/Public/Schemas/Facade/ResponseStreamEvent.swift: Sources/OpenAI/Public/Schemas/Facade/ResponseStreamEvent.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in ResponseStreamEvent.init at line 230. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 22:41:09 \u002B02:00\u0027 --until=\u00272026-10-28 22:41:09 \u002B02:00\u0027 --full-history --no-merges -- Sources/OpenAI/Public/Schemas/Facade/ResponseStreamEvent.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Facade/ResponseStreamEvent.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"780edf29f5c36aac8dcd261711b287fc14d37e953af5c708335a045f7c0057e1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/OpenAI/Private/Streaming/ModelResponseEventsStreamInterpreter.swift: Sources/OpenAI/Private/Streaming/ModelResponseEventsStreamInterpreter.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in ModelResponseEventsStreamInterpreter.responseStreamEvent at line 89. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 22:41:09 \u002B02:00\u0027 --until=\u00272026-10-28 22:41:09 \u002B02:00\u0027 --full-history --no-merges -- Sources/OpenAI/Private/Streaming/ModelResponseEventsStreamInterpreter.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Private/Streaming/ModelResponseEventsStreamInterpreter.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed9a789c3f206820264636cc5905344b6c5c91317df63926e932deed4d33cee6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Demo/DemoChat/Sources/Models/APIProvider.swift: Demo/DemoChat/Sources/Models/APIProvider.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in APIEndpoint.init at line 108. 2 of those changes were fix/bug commits, and the other 2 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 22:41:09 \u002B02:00\u0027 --until=\u00272026-10-28 22:41:09 \u002B02:00\u0027 --full-history --no-merges -- Demo/DemoChat/Sources/Models/APIProvider.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Demo/DemoChat/Sources/Models/APIProvider.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7612364f55be9e5803d557475f377dc3db63fccf514d94c8392c29948515bca"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/OpenAI/Public/Schemas/Facade/OutputItem.swift: Sources/OpenAI/Public/Schemas/Facade/OutputItem.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in OutputItem.init at line 80. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 22:41:09 \u002B02:00\u0027 --until=\u00272026-10-28 22:41:09 \u002B02:00\u0027 --full-history --no-merges -- Sources/OpenAI/Public/Schemas/Facade/OutputItem.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Facade/OutputItem.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7dbc6cde54d67d9a4ec3d1a3b678211f9e22fc1cd95f0c579148e9ad9527ae"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 15 significant file(s) lose their only recent owner: Sources/OpenAI/Private/Streaming/ServerSentEventsStreamParser.swift, Sources/OpenAI/Public/Models/Responses API/ResponseObject.swift, Sources/OpenAI/Public/Schemas/Edited/Tool.swift, Scripts/remove_required_properties.py, Sources/OpenAI/Private/Streaming/ModelResponseStreamEventType.swift, Scripts/extract_components.py, Scripts/fix_recursive_reference.py, Sources/OpenAI/Private/URLResponseHandler.swift (\u002B7 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3864df3d6a64d61cf3042ed724cfdc7efd7dff6ded8ae7aa797d3cf368f371ec"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (17 single-owned of 59 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 59 of the 166 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: Sources/OpenAI/Public/Schemas/Edited/ResponseFunctionCallArgumentsDoneEvent.swift, Sources/OpenAI/Private/URLSession\u002BAsyncCompatibility.swift."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Better error handling \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":"Demo/DemoChat/Sources/AssistantStore.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e560efb394d26273a80bb7e3591bb55e5766d0cb2538f06e5f8139b059cb8d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Better error handling \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":"Demo/DemoChat/Sources/AssistantStore.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd8138c5ac6419db2ef80c48f16f7ea2a6ecda7f403456f4938d28d8dc3ec62"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Better error handling \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":"Demo/DemoChat/Sources/AssistantStore.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b1b108bffb6da4e118a605ded509173a862b4cff877a48a8a6d3883bedfacf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Better error handling \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":"Demo/DemoChat/Sources/ImageStore.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d596c7e2f6d9fe8b3d2e244623e56e88c5c263ec41da78157d327f21b20deb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Better error handling \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":"Demo/DemoChat/Sources/MiscStore.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"75432ab55544295c4418b50c2e7ca65d7ff7c7384451935d65bfb7113c3de392"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Depending on the type of tool tha is used we can add additional information here \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":"Demo/DemoChat/Sources/ChatStore.swift"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a6cfdc56f706fe8774617c983fb8a7fb155a60bdca2a33f639d9d823d5faa6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Implement proper annotation handling when type conversion is resolved \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":"Demo/DemoChat/Sources/ResponsesStore.swift"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fea68409a0b4c75d066baef965a68e6927b89369bedd9747dddeec7cdb0d773"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 1 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (32570 LoC, 1450 module-visible types across 17 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":"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":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c2416675bab825913f665ad40a1a9adb372cf763224d930491507f421e8d32ae"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"733b3567401483c1b9b5e31e54bb88b482e4698ad152e65d10a29ad2c6eba89e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ddc49ef52c93f5d89390c80bf8f0444bb97743496eeea781d1b7fcf904a3ea48"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"565cb0a25235d1502010c8d34a025c6ae5aeb826c7d5e305b97bb45399050c67"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fdd80ff4efa055538dc59aafc5e380459b7d05030fbc7ee936f19fa678b3e896"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"94776b81c65a1879dd8fc53e26bc1452c842e8224e84fa3d209cf81adb9735bb"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"16d577d05bd3d2ba83ef1d71d11632d89db3ca39978657e8ca99b8ec196563de"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b38720db37cd540e3dc09fe3d5c0b3652d2f9d051cf0e85dbbd366b46c6f1a79"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8729817d98d42eae03b91ddb2679b32cedd1f45b88b226b12f6c9cdf01c36cd2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 7 of 59 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 59 of the 166 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: Sources/OpenAI/Public/Models/ModerationsResult.swift, Sources/OpenAI/Public/Models/ImageEditsQuery.swift, Sources/OpenAI/Public/Models/ImagesQuery.swift, Sources/OpenAI/Public/Models/AudioSpeechQuery.swift, Sources/OpenAI/Public/Schemas/Edited/ResponseMCPCallArgumentsDeltaEvent.swift, Sources/OpenAI/Public/Schemas/Edited/ResponseMCPCallArgumentsDoneEvent.swift, Sources/OpenAI/Public/Models/EmbeddingsQuery.swift. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/ModerationsResult.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a012b52153d77304a94db34c2f83f51448389160399e5efb709d7bdb6d94a8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/ImageEditsQuery.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc5b488eddb76fc0dc5bbcdc193477114d7e0f1b11252fbe3f412a3418eb0d0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/ImagesQuery.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"741ca1c7bbd691e804523578cf0355658c1914f51eda33b865d6cad6c56cb668"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/AudioSpeechQuery.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3473f5715068661ba3ae8065260cf60c6db0294997d893e9104ecd43cf800e1e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Edited/ResponseMCPCallArgumentsDeltaEvent.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dce0a0623ad2374acabfacf9a7a76e5ca7311e1a4a511edb27fe313ff5595ee"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Edited/ResponseMCPCallArgumentsDoneEvent.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"842ad170996fbc820eba767c1dd954203e4b23ce8a129df72348c5616da5e4ae"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/EmbeddingsQuery.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3135a8d4f072b3f7d0f23bcf4b60dda3c32bf24ab766cad6392187e356469ccb"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"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":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P10","level":"note","message":{"text":"Large public API surface: 640/731 types (88%) declared in the published library are public. For a library, every public type is a stability contract \u2014 keep implementation types off the surface and expose only the intended API."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ed2ba843444ae377c17142f58f714e281e4bd3f183ab100ee1fbef389875d3e6"}},{"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":"Sources/OpenAI/Public/Models/Types/JSONSchemaDefinition.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ec642b848d76968ce9cb76c1efdccf5e8d5c59f906216dd9a0fd9245aa3903"}},{"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":"Sources/OpenAI/Public/Models/Types/JSONSchemaDefinition.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a193aa62c9814f9ae94fcd9e86f914a59402073b0dc3cbf7f4149522d4541d"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":14,"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."]}]}