{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"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":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"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":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D40","name":"Network Egress Confinement","shortDescription":{"text":"Network Egress Confinement"},"helpUri":"https://codehealth.canine.dev/dimensions/D40"},{"id":"D41","name":"Kernel \u0026 Syscall Confinement","shortDescription":{"text":"Kernel \u0026 Syscall Confinement"},"helpUri":"https://codehealth.canine.dev/dimensions/D41"},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AC7","name":"A11y enforcement","shortDescription":{"text":"A11y enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/AC7"},{"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":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"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":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXS1","name":"Runtime exposed surface","shortDescription":{"text":"Runtime exposed surface"},"helpUri":"https://codehealth.canine.dev/dimensions/AXS1"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"ED4","name":"Outbox / dual-write","shortDescription":{"text":"Outbox / dual-write"},"helpUri":"https://codehealth.canine.dev/dimensions/ED4"},{"id":"ES1","name":"Fold determinism","shortDescription":{"text":"Fold determinism"},"helpUri":"https://codehealth.canine.dev/dimensions/ES1"},{"id":"ES2","name":"Immutable events","shortDescription":{"text":"Immutable events"},"helpUri":"https://codehealth.canine.dev/dimensions/ES2"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"PF2","name":"Allocation hygiene","shortDescription":{"text":"Allocation hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF2"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"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":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"openshell_providers::profiles::validate_profile_set (cyclomatic 170): openshell_providers::profiles::validate_profile_set has cyclomatic complexity 170 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":2138}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c7c3a34c3fb665555a7f48d12738c5854b9db27c6d76ca9faa487aad2be835"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_cli::run_async (cyclomatic 138): openshell_cli::run_async has cyclomatic complexity 138 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/main.rs"},"region":{"startLine":2635}}}],"partialFingerprints":{"codehealthFindingId/v1":"3adce4c2e497adf614eefed2a716dfff44ad1b552fd043ca0c4a9e5f8af1d167"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_cli::run::sandbox_create (cyclomatic 105): openshell_cli::run::sandbox_create has cyclomatic complexity 105 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a3d18ec895aeb8fc0d38464b474955315b537f31a8573792faba51c9c5f561"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::validate_l7_policies (cyclomatic 96): openshell_supervisor_network::l7::validate_l7_policies has cyclomatic complexity 96 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/mod.rs"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60c443236703b2d8cc92175e200a60ead540ade8d4eea70ee61e1c46acc7dd3"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::proxy::handle_forward_proxy (cyclomatic 94): openshell_supervisor_network::proxy::handle_forward_proxy has cyclomatic complexity 94 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":5332}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a90cbf280d02ce296a258689b86fdae47601d1db1a4158cfef5fb126597505d"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_create_provider_key (cyclomatic 94): App::handle_create_provider_key has cyclomatic complexity 94 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":2484}}}],"partialFingerprints":{"codehealthFindingId/v1":"887135f23181063720caa7b27fa1618da690e8c6a0a55cc6eb7ab7101820da02"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::sandbox::handle_watch_sandbox (cyclomatic 86): openshell_server::grpc::sandbox::handle_watch_sandbox has cyclomatic complexity 86 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":2033}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2444b3ca7eea4efb4277d136c147b31a3bfbbbc5b25a631b9213286f13a154"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_tui::run (cyclomatic 77): openshell_tui::run has cyclomatic complexity 77 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16f2d1f9cabc57a1f8b0003c586a32ceebc256aa3f9ae31958c0d3e3d38cd98"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::proxy::handle_mediated_connection (cyclomatic 67): openshell_supervisor_network::proxy::handle_mediated_connection has cyclomatic complexity 67 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":2414}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f088aa4f0994947d87d4c333ec6d52330806e632e1aae0a1095c08b3fde068"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_policy::validate_sandbox_policy_with_mcp_presence (cyclomatic 61): openshell_policy::validate_sandbox_policy_with_mcp_presence has cyclomatic complexity 61 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/lib.rs"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bfcc8dff7d4b41ee661b7ae75885efbebb1261516b795adaa89218a31cc36c5"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::http_response::relay_response_through_middleware (cyclomatic 61): openshell_supervisor_network::l7::rest::http_response::relay_response_through_middleware has cyclomatic complexity 61 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d7cc39c2e870a77afda5fa0d06ff08d79f1708da1f6c0e347fe9732c070ae4"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::opa::proto_to_opa_data_json (cyclomatic 59): openshell_supervisor_network::opa::proto_to_opa_data_json has cyclomatic complexity 59 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":2255}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce3d9e8af7f278d19b9ce389bc49258fdeb6c958724b0e75dd4fdd1b2408ae7"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::policy::handle_update_config_inner (cyclomatic 54): openshell_server::grpc::policy::handle_update_config_inner has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":4176}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad4b93365baaba03af4c1cff4b40da6b7f55605443f2c0d62e834a90e431ae4"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_draft_key (cyclomatic 52): App::handle_draft_key has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":1947}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae90d9773573f0073ab0bdea412aa2b395104b111ecba9e39c1614e12a56a84c"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigRuntime::reconcile (cyclomatic 51): ConfigRuntime::reconcile has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/config_runtime.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"623e9f8c20b0921fded510fc8d9445592a0a4456be979ce53701e1a0cbcee2b7"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::relay::relay_with_route_selection (cyclomatic 51): openshell_supervisor_network::l7::relay::relay_with_route_selection has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3cfdc28c9c4901a15b23badab330936e604e7562466c813b31daa1ae3b6aac"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::provider::resolve_provider_environment_from_records_with_policy_bindings_and_credentials (cyclomatic 50): openshell_server::grpc::provider::resolve_provider_environment_from_records_with_policy_bindings_and_credentials has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"485a67de09fe5c863116abe75abf9ee6ef0b30ca380ec4ba28934417842bbaac"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::cli::merge_file_into_args (cyclomatic 49): openshell_server::cli::merge_file_into_args has cyclomatic complexity 49 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/cli.rs"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77d101aefb05c02f7423d69e76fcefd770b1585885406eff4bbc22009afdb5a"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor::run_sandbox_instance (cyclomatic 47): openshell_supervisor::run_sandbox_instance has cyclomatic complexity 47 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/lib.rs"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"2206e11ce7d5771180dae95abcf41d00b815bf837850f79e6cd41c8fe469b9d2"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor::endpoint_status::run_reporter (cyclomatic 45): openshell_supervisor::endpoint_status::run_reporter has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/endpoint_status.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3e6406ec3182a23c012df482c704df17dcb34c8622f771f96ae9688459b35a"}},{"ruleId":"D1","level":"warning","message":{"text":"OcsfEvent::format_shorthand (cyclomatic 44): OcsfEvent::format_shorthand has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-ocsf/src/format/shorthand.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebdf53806c4d62a06120e60fb88274d346af6212208cc21ee99a54d7c4ab6f4"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::provider::handle_configure_provider_refresh (cyclomatic 41): openshell_server::grpc::provider::handle_configure_provider_refresh has cyclomatic complexity 41 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":4814}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13e2cc0ef1bebd70874be49845a2dc26f8fac549d0ffe4df269b08a20177bc3"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_cli::run::sandbox_get_to_writer (cyclomatic 40): openshell_cli::run::sandbox_get_to_writer has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":1609}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d402fdd87c5df84c8658a9e7d4f0a6ed6d14207812c85406a3916c2f6563cb"}},{"ruleId":"D1","level":"warning","message":{"text":"KubernetesComputeDriver::reconcile_sandbox_runtime_resources (cyclomatic 39): KubernetesComputeDriver::reconcile_sandbox_runtime_resources has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":4531}}}],"partialFingerprints":{"codehealthFindingId/v1":"58fe3d0e0aa7af975f94ed4948bec1d009149f1d0a0a46b327139d8e9df8e865"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::run_server (cyclomatic 39): openshell_server::run_server has cyclomatic complexity 39 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/lib.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5942f268fe7b831587ea4859fcc4f1d70cc791764d30ab441b0b98a4cfb566b"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::relay_http_request_with_response_middleware_guarded_observed (cyclomatic 39): openshell_supervisor_network::l7::rest::relay_http_request_with_response_middleware_guarded_observed has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb91912c2b33c0202fe51ea7ad4a0ca7c2a8f2b27b1d1893a4032a8681c8ec3"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_cli::commands::provider::format_provider_profile_details (cyclomatic 38): openshell_cli::commands::provider::format_provider_profile_details has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":2529}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0b15fc0c8d6de65a37f2a9241edebc44562c1ac4409599822504f4e90a8f96"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_sandbox::probe_socket_virtualization (cyclomatic 37): openshell_sandbox::probe_socket_virtualization has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe6961bbe34049c488476e67fa47d46e856859f6704ffa288806e55fff66034"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_update_provider_key (cyclomatic 37): App::handle_update_provider_key has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":3057}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4af5429234897a8bfa04024446945a8980902f9933159b06bde164a3d918752"}},{"ruleId":"D1","level":"warning","message":{"text":"ChainRunner::evaluate_described_with_policy_admitted (cyclomatic 36): ChainRunner::evaluate_described_with_policy_admitted has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/lib.rs"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f01a65a1f06aecd5543052af3e376498c53d9b80dc8be3b1da5eb22633d683a"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::provider_credentials::retrieve (cyclomatic 35): openshell_server::grpc::provider_credentials::retrieve has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider_credentials.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83f338779f7da905c3a83585a0cabfd1a370378db3c55be0e2110e8fd30ec4b"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor::shared_host::run_stream (cyclomatic 35): openshell_supervisor::shared_host::run_stream has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/shared_host.rs"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6e348035a82e3cf68d66c7c2bd9be3d5e9e15bf30d20a3519e70796122f3cd"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::http_response::relay_response (cyclomatic 35): openshell_supervisor_network::l7::rest::http_response::relay_response has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"427c58a87fd6b14e0fc00c2fa273f689690a1d803b523168d76f76ecd7a5f743"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_cli::run::sandbox_exec_streaming_grpc (cyclomatic 34): openshell_cli::run::sandbox_exec_streaming_grpc has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":2580}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7bf621db051b2b74856e6996da05d4132dd0644ec06d257fa73181dbd23927b"}},{"ruleId":"D1","level":"warning","message":{"text":"VmDriver::provision_sandbox_inner (cyclomatic 33): VmDriver::provision_sandbox_inner has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"33faa31f88ceb25b1ec14ac7cf1b992092269210ef3c86de05274559c7321505"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_sandbox::boundary_server::linux::serve_one (cyclomatic 33): openshell_sandbox::boundary_server::linux::serve_one has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/boundary_server.rs"},"region":{"startLine":2040}}}],"partialFingerprints":{"codehealthFindingId/v1":"39dfe146cb1e9d16a08dc2f1fe34a74aa85bd2433cd32e74aa57ff7747d69bde"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::cli::prepare_server_config_with_drivers (cyclomatic 33): openshell_server::cli::prepare_server_config_with_drivers has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/cli.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"4261571eb0aa08cbb03398d4f1d4a52003288c92f1df09829d467a5aeb263604"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::relay::relay_rest (cyclomatic 32): openshell_supervisor_network::l7::relay::relay_rest has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2020}}}],"partialFingerprints":{"codehealthFindingId/v1":"030498eadb8a72a25281242db56cebae0aed6bf56d26d0df9257e5da01c17b39"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::websocket::relay_client_to_server (cyclomatic 32): openshell_supervisor_network::l7::websocket::relay_client_to_server has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/websocket.rs"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1edd0d4d4acf25203208128b4e8cdf11e2369eb5d0095b49bf1667b431c03d3"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_cli::commands::gateway::gateway_add (cyclomatic 31): openshell_cli::commands::gateway::gateway_add has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8c27570eaea1e1875586e1d478a47e504634fa6489f61a1f8e3d154a4ee38f"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::provider::profile_attached_sandbox_diagnostics (cyclomatic 31): openshell_server::grpc::provider::profile_attached_sandbox_diagnostics has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":3808}}}],"partialFingerprints":{"codehealthFindingId/v1":"767095a65ceb108f48d165c5f12a359cd4741db5524d755a41e88af6441be0e3"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_logs_key (cyclomatic 31): App::handle_logs_key has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":2161}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ab7ba2d0f5e905e6642625214bec2f3eedb9d6eec1e29472a78aeb3e70f7e6"}},{"ruleId":"D1","level":"warning","message":{"text":"ComputeRuntime::start_persisted_sandboxes_with_authentication (cyclomatic 30): ComputeRuntime::start_persisted_sandboxes_with_authentication has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":4038}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca20570e43655c1c88fc645d6535b8434583dad27e2634593ebbde982cbf381"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::compute::apply_driver_snapshot (cyclomatic 30): openshell_server::compute::apply_driver_snapshot has cyclomatic complexity 30 (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":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":7323}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca68264a27f71098ece2b8a11f350b667a26f99b67dcffbb4a285d99f72ccac"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::provider_refresh::apply_minted_credential (cyclomatic 30): openshell_server::provider_refresh::apply_minted_credential has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/provider_refresh.rs"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"818164aa28acd11f9bf65548641493c971864583fde7be5070d64406dfc07a99"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor::load_policy_with_gateway (cyclomatic 30): openshell_supervisor::load_policy_with_gateway has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/lib.rs"},"region":{"startLine":2738}}}],"partialFingerprints":{"codehealthFindingId/v1":"144e00596a18ce29b2bbb0294b22fc67d278f1460f23e496ef2bea5343a6abd9"}},{"ruleId":"D1","level":"warning","message":{"text":"ChainRunner::preflight_described_http_response (cyclomatic 30): ChainRunner::preflight_described_http_response has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/response/preflight.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0196af6ac3e5261a8f423ca7a8357d4304c4e5fe6a8fbaf6c014d5bba67f7da2"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_cli::policy_update::build_policy_update_plan (cyclomatic 29): openshell_cli::policy_update::build_policy_update_plan has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/policy_update.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de092e0a90279e8a37243b6dec7223ee406c31c423ca4293a15b9bf0c0f7f3b"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::relay::relay_jsonrpc (cyclomatic 29): openshell_supervisor_network::l7::relay::relay_jsonrpc has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2438}}}],"partialFingerprints":{"codehealthFindingId/v1":"7281e2d506d8f24f460347172ccad9c69bdb7370ede685e764b0734aad80d9ac"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::relay::relay_graphql (cyclomatic 28): openshell_supervisor_network::l7::relay::relay_graphql has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2717}}}],"partialFingerprints":{"codehealthFindingId/v1":"006eade558d78795eb3ec5c62fa981cdb171b43be5d3d04617362b5df7325fee"}},{"ruleId":"D1","level":"warning","message":{"text":"PodmanComputeDriver::create_sandbox (cyclomatic 27): PodmanComputeDriver::create_sandbox has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/driver.rs"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4a5d0d5e753eb866b0701b81507298d3dfae563e5f058d4bfd46608e730210"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_sandbox::network_broker::connect_socket (cyclomatic 27): openshell_sandbox::network_broker::connect_socket has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/network_broker.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"7350d3057adf44b1d5dc06dba55eb9b4ae4b20425622e0dddb0895d9d14e9d19"}},{"ruleId":"D1","level":"warning","message":{"text":"ComputeRuntime::start_sandbox_with_intent (cyclomatic 27): ComputeRuntime::start_sandbox_with_intent has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":2230}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a08e271c9d25aed9ce7744d14e57136d5fc7d5156f89a4449f76aedcec0eb25"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::policy::handle_submit_policy_analysis (cyclomatic 27): openshell_server::grpc::policy::handle_submit_policy_analysis has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":5497}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03079bc73a8c8747e0caac6df82ebdba3aa985704ce51aa7bba7f6018b82a45"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor::config_runtime::run_policy_poll_loop_with_client (cyclomatic 27): openshell_supervisor::config_runtime::run_policy_poll_loop_with_client has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/config_runtime.rs"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"6189b625c65c8aad5830c3140de8d933706ced5cbb6b231426a87a43319d65f3"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::proxy::destination::filter_resolved_addresses (cyclomatic 27): openshell_supervisor_network::proxy::destination::filter_resolved_addresses has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy/destination.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"0387ff4c7100213ec8bcbd79de357e867b4753d49259280b1f0628f84948eca0"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_tui::render_policy_lines (cyclomatic 27): openshell_tui::render_policy_lines has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30316d21faae5b6181333e40ebe47e7f8b909d2359a212a8658590e5a166194"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderClient.getCredentials (cyclomatic 27): ProviderClient.getCredentials has cyclomatic complexity 27 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/providers.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be7f2d45be1439e82ba9fccef2908927d0993a7b341be54cde3f9b2a1523a04"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::http_response::relay_normalized_response_body (cyclomatic 26): openshell_supervisor_network::l7::rest::http_response::relay_normalized_response_body has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"fddcd5ae3fbd4e0dd6d440ad01b235547ff2ff7e92d346ad3234e0d08da458e1"}},{"ruleId":"D1","level":"warning","message":{"text":"codex_compatibility_report.validate_review (cyclomatic 26): codex_compatibility_report.validate_review has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tasks/scripts/codex_compatibility_report.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3a7dc3581c24205914831256f4d54c55d4e9a0e461d75aa8295a0c92f34db0"}},{"ruleId":"D1","level":"warning","message":{"text":"BodyPlaceholderGuard::release (cyclomatic 25): BodyPlaceholderGuard::release has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/secrets_body.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b25ad2a3080f19d2fe5ee80eb15531e8b018d99e86cb717427a41d1992ce533"}},{"ruleId":"D1","level":"warning","message":{"text":"KubernetesComputeDriver::validate_capability_free_workload_pod (cyclomatic 25): KubernetesComputeDriver::validate_capability_free_workload_pod has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":2697}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f60817ab683ad46186a4e7352d69373c55355d8f2e178fbc5ba5d93795b8a4"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_prover::containment::resource_limit_reason (cyclomatic 25): openshell_prover::containment::resource_limit_reason has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-prover/src/containment.rs"},"region":{"startLine":1926}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f70ac62157702ab417c6ee2aa44eaa92529498787ea4a729e46b82510240f5"}},{"ruleId":"D1","level":"warning","message":{"text":"ComputeRuntime::set_supervisor_session_state_from_snapshot (cyclomatic 25): ComputeRuntime::set_supervisor_session_state_from_snapshot has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":5653}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce53b76245b3dfbb4bedc6dc0770746a827b908243a70ff2b685ade72cf97d1"}},{"ruleId":"D1","level":"warning","message":{"text":"resolve_licenses.main (cyclomatic 25): resolve_licenses.main has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deploy/sbom/resolve_licenses.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5859118add28fec1cf1259c3c8eab32c9f2eef2e378adb9d366b337e11cd28"}},{"ruleId":"D1","level":"warning","message":{"text":"select-release-candidate.select_candidate (cyclomatic 25): select-release-candidate.select_candidate has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tasks/scripts/select-release-candidate.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"876995640368146869f1e4a226251d9d77a47e95363b37b546491a6f33d1d199"}},{"ruleId":"D1","level":"warning","message":{"text":"gateway.validateGatewayName (cyclomatic 25): gateway.validateGatewayName has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/gateway/paths.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa05bf0b9728b62df43194dd84277cd3d415ccd0b9d17d58755dc9aed2915cb"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_cli::commands::provider::provider_create_with_options (cyclomatic 24): openshell_cli::commands::provider::provider_create_with_options has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3579171de8102a75a31718b0586f2f890ada3766505bbaaa1f3efd27f0f1e7"}},{"ruleId":"D1","level":"warning","message":{"text":"ComputeRuntime::create_sandbox_with_runtime_inputs_and_guards (cyclomatic 24): ComputeRuntime::create_sandbox_with_runtime_inputs_and_guards has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"3828575682377c26d6bea03be08897d5cb590c18458479b33413cdc9ad8e63f1"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_policy::l7_validate::validate_l7_endpoint_semantics (cyclomatic 23): openshell_policy::l7_validate::validate_l7_endpoint_semantics has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/l7_validate.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"20646c9b908bc5c9755bc2adb6adb3298bb80b47bb62ecf98cd3830468abe6c9"}},{"ruleId":"D1","level":"warning","message":{"text":"AuthGrpcRouter::call (cyclomatic 23): AuthGrpcRouter::call has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/multiplex.rs"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f4f4b0f31a15690088b0b5c07cadc34280085a47c7dfda0d757f553c237112"}},{"ruleId":"D1","level":"warning","message":{"text":"SupervisorPool::transition_admitting (cyclomatic 23): SupervisorPool::transition_admitting has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_pool.rs"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"418f7c9c2fa97e4df3bf1e2476f826dea06fa1d3ec44bc5c06a4849e6227eaf9"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::policy::handle_report_sandbox_configuration (cyclomatic 23): openshell_server::grpc::policy::handle_report_sandbox_configuration has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":5029}}}],"partialFingerprints":{"codehealthFindingId/v1":"00beb99dc4dd5c220526ff3dd97c6afe3952615ff36f9a6e0029141c23b5a34d"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::sandbox::run_interactive_exec_with_russh (cyclomatic 23): openshell_server::grpc::sandbox::run_interactive_exec_with_russh has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":3770}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf2e8f989f2488381599aa2867037d03ff51ce2681064242ed05918788cca88"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::proxy::preauthorize_transparent_open (cyclomatic 23): openshell_supervisor_network::proxy::preauthorize_transparent_open has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8756f045c6954f5644bc39249a65077f9da7ef98188157507f3c8bcb88a761"}},{"ruleId":"D1","level":"warning","message":{"text":"sandboxClient.Watch (cyclomatic 23): sandboxClient.Watch has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 6 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 406). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/sandbox_client.go"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"af449974f39cd79f6fc2f613e3e8155ba25c47ce3aebc5f6ba7e7f1ce6513ad8"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_sandbox::boundary_server::linux::bridge_main_stream (cyclomatic 22): openshell_sandbox::boundary_server::linux::bridge_main_stream has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/boundary_server.rs"},"region":{"startLine":4528}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6af84ae90104d0e0dfb85e9e07591891c16c9753462bcb42d77eb3c8160344b"}},{"ruleId":"D1","level":"warning","message":{"text":"TlsAcceptor::spawn_reload_worker (cyclomatic 22): TlsAcceptor::spawn_reload_worker has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/tls.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5969b53bf9b410e182d997cfe30d96804311ac9b60624e5231c99c05537168"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::auth::oidc::parse_jwk (cyclomatic 22): openshell_server::auth::oidc::parse_jwk has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/auth/oidc.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"638de6cec9e6de7f79a3a461456cc45e6f7b2e63f1c081324dc0bc8be8727dd6"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::policy::handle_approve_all_draft_chunks_inner (cyclomatic 22): openshell_server::grpc::policy::handle_approve_all_draft_chunks_inner has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":6273}}}],"partialFingerprints":{"codehealthFindingId/v1":"467bde94391275630011dd4a892a712f7d7dc19627b7d24b850f62bd37f48d47"}},{"ruleId":"D1","level":"warning","message":{"text":"WebSocketSession::evaluate_text_admitted_inner (cyclomatic 22): WebSocketSession::evaluate_text_admitted_inner has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/websocket.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c252b9832e03629afc7c6941340ee91e158214369e554cbb5b5781e46007d6"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::websocket::relay_text_payload_with_before_credential_write (cyclomatic 22): openshell_supervisor_network::l7::websocket::relay_text_payload_with_before_credential_write has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/websocket.rs"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ee99f21b3af4b7329335a908a49d464368fb039dd193b00cd5da3dce18f21c"}},{"ruleId":"D1","level":"warning","message":{"text":"SandboxClient.execInteractive (cyclomatic 22): SandboxClient.execInteractive has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 6 of the 22 points are its own statements and the rest belongs to 4 function items inside it that branch (receive, assertInputOpen, settleExit, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"1871229d70976dd5cf44778ec9a7025d7656a1fc6eaee0beb31935d10a804930"}},{"ruleId":"D1","level":"warning","message":{"text":"PodmanComputeDriver::admit_container_resources (cyclomatic 21): PodmanComputeDriver::admit_container_resources has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/driver.rs"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1f662719d5d5ff78aa56f3bffe69b3da4b41545497b30733326fd8b7d5dfb6"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::cli::validate_preflight_semantics (cyclomatic 21): openshell_server::cli::validate_preflight_semantics has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/cli.rs"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d4422a1b266f125c8071aa315bcbc51d45786424e06f6b31e7b7076c497fb1"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor::main (cyclomatic 21): openshell_supervisor::main has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/main.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78931a4e7cacd4ea018141143646f73707f43ce280ae4c60a88812e440ae8f0"}},{"ruleId":"D1","level":"warning","message":{"text":"ProxyHandle::start_with_bind_addr (cyclomatic 21): ProxyHandle::start_with_bind_addr has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"324ec02a58eb657239a3573eb0a289b4fef6e5653163d728f870d36360283663"}},{"ruleId":"D1","level":"warning","message":{"text":"NoProxy::direct_addrs (cyclomatic 21): NoProxy::direct_addrs has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/upstream_proxy.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"44265937edf7871a5e73598d28fd830f245b53291537a975641a47963b085bb6"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_providers_key (cyclomatic 21): App::handle_providers_key has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":1431}}}],"partialFingerprints":{"codehealthFindingId/v1":"9875d4592ff5fa8eb09c05cb7a9a0a953c93cb0e236f59d4a4cf39a5d89ae9c7"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_tui::ui::create_sandbox::draw_form (cyclomatic 21): openshell_tui::ui::create_sandbox::draw_form has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/create_sandbox.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20c7baa8a66f1ff7a3bf6b97b70898fb7a04c03dac64c5b7c66c7a337fe0840"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_tui::ui::sandbox_draft::draw (cyclomatic 21): openshell_tui::ui::sandbox_draft::draw has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/sandbox_draft.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"c937fad1f371cf766e71c9726ad23b5e29198cb5b09e3d124f87388aa46ec5a2"}},{"ruleId":"D1","level":"warning","message":{"text":"verify-python-wheel.verify_wheel (cyclomatic 21): verify-python-wheel.verify_wheel has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tasks/scripts/verify-python-wheel.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07e0d56255079a08f6e1f495f275a09d922d75bf411efaa3c211bb9d87a7c89"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_cli::run::sandbox_list (cyclomatic 20): openshell_cli::run::sandbox_list has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":2855}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ede3b561058a562c08ae080aac886d212ebbcba516f258c5d552b3eed58361a"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_cli::run::sandbox_template_to_json (cyclomatic 20): openshell_cli::run::sandbox_template_to_json has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":3632}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff731fad314586b3058e87cf058adf22e9811b1cd121e4338574f075c081824"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_driver_kubernetes::driver::spawn_namespace_label_watcher (cyclomatic 20): openshell_driver_kubernetes::driver::spawn_namespace_label_watcher has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":8423}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12b41b31414eb9882f704d6cc7b4443f96209ce6a9a86d00c846a57d7a10d3e"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_driver_podman::container::build_base_spec (cyclomatic 20): openshell_driver_podman::container::build_base_spec has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/container.rs"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"138aa30712a245b03b03b98a8f7d918f8a7f374ed101953932b10954c614932b"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_sandbox::boundary_server::linux::validate_config (cyclomatic 20): openshell_sandbox::boundary_server::linux::validate_config has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/boundary_server.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48e67c3eba2844f98e414de2967af5c2128000dc24830ffe62244f99aa1cc81"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_sandbox_backend::sandbox_auth::plan_attach (cyclomatic 20): openshell_sandbox_backend::sandbox_auth::plan_attach has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox-backend/src/sandbox_auth.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce71d50fbcc3b5eace5b14d9cd8bd85443932850206f609d6c327aa9acf72c05"}},{"ruleId":"D1","level":"warning","message":{"text":"ComputeRuntime::recover_persisted_lifecycle_transitions (cyclomatic 20): ComputeRuntime::recover_persisted_lifecycle_transitions has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":4319}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9169210671d9f8092c07f578da15258e37ba0517637b7955946c6534849dc6"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::policy::apply_merge_operations_with_retry (cyclomatic 20): openshell_server::grpc::policy::apply_merge_operations_with_retry has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":7617}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f9d611e92411fdbd595f81270d9636f541443bec11acbbe5a3a70eab140f39"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::provider::update_provider_record_validating (cyclomatic 20): openshell_server::grpc::provider::update_provider_record_validating has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"417b6e85e3186fc243c5b60b9fa81698400c3912719af0ef5cc0698a93220e2c"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::provider_readiness::evaluate_status (cyclomatic 20): openshell_server::grpc::provider_readiness::evaluate_status has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider_readiness.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc77ac8b76bdf5424473cb53a4f65b9d3f80d62e7d03a622c8ba053a464de917"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::service_routing::proxy_to_endpoint (cyclomatic 20): openshell_server::service_routing::proxy_to_endpoint has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/service_routing.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8ce7c5d43862a1acc98ba7380146dd3067864c1c4f9046f9e31c5ac4b4841c"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::run::run_networking (cyclomatic 20): openshell_supervisor_network::run::run_networking has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/run.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9818ad32295fa33ffcdd79ea78e1490cc489d0779f38b221df67c024f7e035b"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_global_settings_key (cyclomatic 20): App::handle_global_settings_key has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"c011a020e819b406dfd457e5b2eba8449da0b2ac3e949d1727a6d63889599910"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_tui::ui::sandbox_draft::draw_detail_popup (cyclomatic 20): openshell_tui::ui::sandbox_draft::draw_detail_popup has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/sandbox_draft.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"507fa040c0373254caf4ed1dd005329339ff2d4a9be87433a9fd45955c0acc25"}},{"ruleId":"D1","level":"warning","message":{"text":"oidc.exchangeClientCredentials (cyclomatic 20): oidc.exchangeClientCredentials has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/oidc/credentials.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d60b7b3b09b21843ee8eee258678f4be74ffd451a6b911ce59398182eeb4d96"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenShellRunner::cleanup (cyclomatic 19): OpenShellRunner::cleanup has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-conformance/src/lib.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2bccd6d17422c05cfc981008ca9135248374e0a8d44f48191f63fa8249f7da"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_core::provider_credentials::compile_static_credential_bindings (cyclomatic 19): openshell_core::provider_credentials::compile_static_credential_bindings has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/provider_credentials.rs"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"77aea66f319feb809e0863efda83e11bde1fea1f4fae0afa1b83317e4054b478"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_crypto::pki::issuer::issuer_from_der (cyclomatic 19): openshell_crypto::pki::issuer::issuer_from_der has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-crypto/src/pki/issuer.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca21570f26e92592254f27475a2ecb7567b4212bd688dc933ba28428420817d"}},{"ruleId":"D1","level":"warning","message":{"text":"DockerComputeDriver::admit_container_resources (cyclomatic 19): DockerComputeDriver::admit_container_resources has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab805deff9cb15a09ca32a6a73999bcf121b7b393da51c68cab3b478f67d015d"}},{"ruleId":"D1","level":"warning","message":{"text":"KubernetesComputeDriver::start_sandbox_runtime_generation (cyclomatic 19): KubernetesComputeDriver::start_sandbox_runtime_generation has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":3794}}}],"partialFingerprints":{"codehealthFindingId/v1":"d906ce56b1cac46622b2956f08a95290f260c26bc57d371fb4e43c08f1a857a7"}},{"ruleId":"D1","level":"warning","message":{"text":"VmDriver::monitor_sandbox (cyclomatic 19): VmDriver::monitor_sandbox has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: openshell_driver_vm::driver::attach_vm_progress_metadata (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":4568}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cef73f208567d4aa9772e7181b78cf27f03d8ba927ac2f2e7328f1d2779983b"}},{"ruleId":"D1","level":"warning","message":{"text":"MainSession::start_io (cyclomatic 19): MainSession::start_io has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d7352db99ddac6bc97b5a2a557a4b4da829d53ea13e81d6990359ff6ce173a"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_sandbox::mechanistic_mapper::generate_proposals (cyclomatic 19): openshell_sandbox::mechanistic_mapper::generate_proposals has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/mechanistic_mapper.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"381113301d5db1dd74efb2cc38d90ec3844cc28d51ad6ac3544828c32ff0b041"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_sandbox::network_broker::classify_send (cyclomatic 19): openshell_sandbox::network_broker::classify_send has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/network_broker.rs"},"region":{"startLine":1389}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32bd3611619e84b7148b5c0120002071a1789410485d8c03ab293707bc1229e"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor::mechanistic_mapper::generate_proposals (cyclomatic 19): openshell_supervisor::mechanistic_mapper::generate_proposals has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/mechanistic_mapper.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"36125184f841ea85e3b788ca5daa0e39e5728897f0702676c7551bd49c2eb187"}},{"ruleId":"D1","level":"warning","message":{"text":"SupervisorHostController::run_session (cyclomatic 19): SupervisorHostController::run_session has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-control/src/controller.rs"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"28fe38f9a16aaa8775a34cdd84056e37de2c1277df07e814367690509d7cbdc4"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::jsonrpc::parse_mcp_payload (cyclomatic 19): openshell_supervisor_network::l7::jsonrpc::parse_mcp_payload has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/jsonrpc.rs"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3974e4ed6136326d7666c44e9c84f9297a74da5de61b5fd331d9bb4cb939047"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::relay::relay_passthrough_with_credentials (cyclomatic 19): openshell_supervisor_network::l7::relay::relay_passthrough_with_credentials has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":3506}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e63eaf05157000f01a0eade46ed95fe145f1842b37befb71f6bc6e43293aa05"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::parse_http_request (cyclomatic 19): openshell_supervisor_network::l7::rest::parse_http_request has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"27840ce1e318abb1752c6e6f7858c8e2cf1fbc558c074df7e46e7a5c022d3e24"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::validate_websocket_response (cyclomatic 19): openshell_supervisor_network::l7::rest::validate_websocket_response has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":3444}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53dd979333e5c33ebf9e244d4d13b601f0002468d47223e0f59414fd9812906"}},{"ruleId":"D1","level":"warning","message":{"text":"SshHandler::subsystem_request (cyclomatic 19): SshHandler::subsystem_request has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/ssh.rs"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bea7fbed8bdbdbc83b9b75df30096cd360a9c9b0d03a54aac171264c94be835"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_cli::commands::gateway::gateway_status (cyclomatic 18): openshell_cli::commands::gateway::gateway_status has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c743ca4e1292eb955185d38a9db5e4ea73e72681a0a5c0a066c3114fd65cf310"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_cli::commands::provider::provider_update (cyclomatic 18): openshell_cli::commands::provider::provider_update has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":2739}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0257fa1d586f47cce783dee522a3b820bc73f8f6ca78a004fbe1f7c130deec"}},{"ruleId":"D1","level":"warning","message":{"text":"BodyCredentialClassifier::check (cyclomatic 18): BodyCredentialClassifier::check has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/secrets_body.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab8226b5e2aaa018a251f77804bbe3ed7724c639c5f1c628e7713aa305068ea"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_core::driver_utils::validate_upstream_proxy_settings (cyclomatic 18): openshell_core::driver_utils::validate_upstream_proxy_settings has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/driver_utils.rs"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"64af018182f83da6d5151da822005031538e69bc1c37ffe6413f2a39a5df513a"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_core::dynamic_credential_key::decode (cyclomatic 18): openshell_core::dynamic_credential_key::decode has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/dynamic_credential_key.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd16453e8cb9bb3a328ee57ed1cad07d0cdb753eb11b0252785251323b7df59"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_driver_kubernetes::driver::sandbox_template_to_k8s_with_validated_config (cyclomatic 18): openshell_driver_kubernetes::driver::sandbox_template_to_k8s_with_validated_config has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":7532}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac8fcedf59a2f3af9d91cbd190414bed4bb4ac6d1913aeadb4ab9191e1fb3c6"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_driver_kubernetes::driver::spawn_namespace_file_watcher (cyclomatic 18): openshell_driver_kubernetes::driver::spawn_namespace_file_watcher has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":8540}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c2187231778a978a27a2c4a6b97515eafcbc130894f789b31bc74e63e441f0"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_driver_kubernetes::resource_admission::inventory (cyclomatic 18): openshell_driver_kubernetes::resource_admission::inventory has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/resource_admission.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1974272846b7a362f67f51a67878887017188e1592dda66428070317e69f9fd"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_policy::middleware::validate (cyclomatic 18): openshell_policy::middleware::validate has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/middleware.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57fb016f6a8e5d29bf69adfad2abde75d7f7b51e52b46459fdfbe56632ec7ed"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_sandbox_backend::stream_adapter::send (cyclomatic 18): openshell_sandbox_backend::stream_adapter::send has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox-backend/src/stream_adapter.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fcaa717438b9b3623969676b6cba89ec4e4f3a6e0edb80f72c9f813da90f22"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::policy::endpoint_status::handle_report_endpoint_status_inner (cyclomatic 18): openshell_server::grpc::policy::endpoint_status::handle_report_endpoint_status_inner has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy/endpoint_status.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"1333d5194d1d72761ea7289ee5c9b2694750b72ade89655c861d6ca16d287706"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::provider::create_provider_record_validating (cyclomatic 18): openshell_server::grpc::provider::create_provider_record_validating has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"f828aee7ad06d36193b0fe05b0f9c2261c8f3e02ce0b1fe15d8312ea17769b06"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::validation::validate_label_key (cyclomatic 18): openshell_server::grpc::validation::validate_label_key has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/validation.rs"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c40320f40affd36b3b0db57f3bfb25d76a65d53c744ed6f7cd1fd9d82c2406"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::provider_refresh::refresh_provider_credential_locked (cyclomatic 18): openshell_server::provider_refresh::refresh_provider_credential_locked has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/provider_refresh.rs"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd49a3cc4c28f133ccf5cecd205e626e12d081280e040d04bc297213719ce4f5"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigRuntime::apply_delivered_sandbox (cyclomatic 18): ConfigRuntime::apply_delivered_sandbox has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/config_runtime.rs"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae3e6b18eaf6e53564b399bdab81bcdd2737b1e8153751ae186470ef5f6ca3a"}},{"ruleId":"D1","level":"warning","message":{"text":"Tracker::run_reporter (cyclomatic 18): Tracker::run_reporter has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/provider_readiness.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79fd91f37cf9333a97285392ae9acc3421f72a7eb1d8b6b3cc4426cc70fe3de"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::validate_matcher_value (cyclomatic 18): openshell_supervisor_network::l7::validate_matcher_value has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/mod.rs"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"b094ec3eee46a34e53b96686716abb4c55f56352d4617fae5df26c0031b34797"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::parse_websocket_upgrade_request (cyclomatic 18): openshell_supervisor_network::l7::rest::parse_websocket_upgrade_request has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":2651}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2c4a996ad02e4ac95c0fa4dc4cc400c0e141d0088f51e317c3aaf9ed0d791b"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::http_response::parse_response_head_for_middleware (cyclomatic 18): openshell_supervisor_network::l7::rest::http_response::parse_response_head_for_middleware has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b584855c45d1938824d26262b4429cfeefc53bdeb41304b6cdfa491fa5f77f"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::proxy::rewrite_forward_request (cyclomatic 18): openshell_supervisor_network::proxy::rewrite_forward_request has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":5006}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ffc671f5b03545daae6cd4632db0e9fc72e863680136111c1a66a06f8b666b3"}},{"ruleId":"D1","level":"warning","message":{"text":"SshHandler::start_exec_spec (cyclomatic 18): SshHandler::start_exec_spec has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/ssh.rs"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e55a537fe74d8c516709d2b5cbb6ed9f15bcb55f6ec6afea1b7284cfe3f70fc"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_process::log_push::run_push_loop (cyclomatic 18): openshell_supervisor_process::log_push::run_push_loop has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/log_push.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"3636f59b8b0339198d359dc2700342a59bada04d2f762f26bd57a0c24bb88700"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_create_form_key (cyclomatic 18): App::handle_create_form_key has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":2351}}}],"partialFingerprints":{"codehealthFindingId/v1":"637a5720fb7bae8f9453045d8f517a99aec9b4726935366063161c318119786b"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_tui::ui::create_provider::draw_enter_key (cyclomatic 18): openshell_tui::ui::create_provider::draw_enter_key has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d251d7c80ed19af7ef931e2a448411f91e299ef3d458be54512f7bb2f5e9f9"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientCredentialsAuth._exchange (cyclomatic 18): ClientCredentialsAuth._exchange has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/openshell/sandbox.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"49023c688a903c3a1debaa0ef979f29d33f75807ae1e6df32b0ffe308f90fd09"}},{"ruleId":"D1","level":"warning","message":{"text":"sandbox._sandbox_ref (cyclomatic 18): sandbox._sandbox_ref has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/openshell/sandbox.py"},"region":{"startLine":1887}}}],"partialFingerprints":{"codehealthFindingId/v1":"27567d7da634bfa31f0dc604483c7e83872576d04f760141c942d472b1730f67"}},{"ruleId":"D1","level":"warning","message":{"text":"oidc.Login (cyclomatic 18): oidc.Login has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/oidc/oidc.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e139f684a6f30ad28e56a37f6d3bddf84ecf609bc1d004bb8f8b7923e0bff97"}},{"ruleId":"D1","level":"warning","message":{"text":"ssh-validate.validateSshResponse (cyclomatic 18): ssh-validate.validateSshResponse has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/ssh-validate.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a624b95644fdbc0d8f9b1b5d881c2fab83a2c94babdb831b04746f4f30c413"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_cli::commands::gateway::gateway_authentication_state (cyclomatic 17): openshell_cli::commands::gateway::gateway_authentication_state has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"0820444d3fda7910bb9e9d52c77b005fd6f48ecdf9ca9171b066854186debe9d"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_cli::policy_update::parse_add_endpoint_spec (cyclomatic 17): openshell_cli::policy_update::parse_add_endpoint_spec has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/policy_update.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"6811cb9630c20e7fa83fcf376aa7204dd2816a4840e9f326abb17f44b4d33c7f"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_conformance::scenarios::policy_behavior::run_policy_local (cyclomatic 17): openshell_conformance::scenarios::policy_behavior::run_policy_local has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-conformance/src/scenarios/policy_behavior.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf906626b0dabda4931b511324a2159040c6fede6b90b5c5f6e8b84a4d6ea54"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_core::grpc_client::refresh_token_loop (cyclomatic 17): openshell_core::grpc_client::refresh_token_loop has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/grpc_client.rs"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"3339487565ab400544b8dc678ef60dd0b40013ce92c0431601f7c2d9f95a3a79"}},{"ruleId":"D1","level":"warning","message":{"text":"KubernetesComputeConfig::validate_workspace_mode (cyclomatic 17): KubernetesComputeConfig::validate_workspace_mode has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/config.rs"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad9b4e2e65f992073435e467eaf8c666ef0ff486bad4b53e885c61e71a3bfafd"}},{"ruleId":"D1","level":"warning","message":{"text":"KubernetesComputeDriver::watch_sandboxes_single_namespace (cyclomatic 17): KubernetesComputeDriver::watch_sandboxes_single_namespace has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":5273}}}],"partialFingerprints":{"codehealthFindingId/v1":"140db1dcce2acc433d23bd05eb0f517b58950cb5c6e63cfb98795c2ef6a809c8"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_driver_mxc::driver::run_lifecycle (cyclomatic 17): openshell_driver_mxc::driver::run_lifecycle has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/driver.rs"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7bd44d0f438e525d6642092c65502dd2d86f97f5032f0874f8893b68cc246e"}},{"ruleId":"D1","level":"warning","message":{"text":"VmDriver::validate_launch_plan_backend (cyclomatic 17): VmDriver::validate_launch_plan_backend has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: openshell_driver_vm::driver::attach_vm_progress_metadata (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":2615}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4bb2d878dd2247dcbc444a64fec332cd58e19303649bdc430e7efa6a1b1a59f"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_policy::ambiguity::tokenize_runtime_path_glob (cyclomatic 17): openshell_policy::ambiguity::tokenize_runtime_path_glob has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/ambiguity.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c5cb1c18f0bd8e32610296fdf21e21f0a29fa1a14cc82659fddeb6936f930d"}},{"ruleId":"D1","level":"warning","message":{"text":"ComputeRuntime::restart_sandbox_runtime (cyclomatic 17): ComputeRuntime::restart_sandbox_runtime has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":4808}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4950b0ea5bf14d8a8cac6a96cc12042332aab412d60b119996501561a2ebf78"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::auth::descriptor_authz::validate_entry (cyclomatic 17): openshell_server::auth::descriptor_authz::validate_entry has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/auth/descriptor_authz.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9ea6a63af2e7adc8a5efca8cb7e780f203e7e3a56bb44660a44bf35c68a59f"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::mutation_replay::execute_owned (cyclomatic 17): openshell_server::grpc::mutation_replay::execute_owned has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/mutation_replay.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ad4c08db36a21e1b5e13ca17c6dde1de6b1b6dd29f7f0f89c82d03149ca0d9"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::policy::build_provider_environment_snapshot_from_inputs (cyclomatic 17): openshell_server::grpc::policy::build_provider_environment_snapshot_from_inputs has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":3914}}}],"partialFingerprints":{"codehealthFindingId/v1":"a176ab74fe368f770dce3539273f9dc12762d783c97c5357cb64df21a197a055"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::policy::provisioning_clock::configuration_change (cyclomatic 17): openshell_server::grpc::policy::provisioning_clock::configuration_change has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy/provisioning_clock.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9a1dc8a0e3c8a947c610eb8bfffea68bbda77aecb1bc588f068002513f4a58"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::supervisor_session::accept_supervisor_session (cyclomatic 17): openshell_server::supervisor_session::accept_supervisor_session has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_session.rs"},"region":{"startLine":2224}}}],"partialFingerprints":{"codehealthFindingId/v1":"0860f06db27f17195ad35a2559292be1e17240b1c97823adb015915d814f4f83"}},{"ruleId":"D1","level":"warning","message":{"text":"BuiltinMiddlewareService::websocket_stream (cyclomatic 17): BuiltinMiddlewareService::websocket_stream has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware-builtins/src/lib.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"476e85ea7ca28b86b85bc49253f19935934811bc205b071cd14a9c19bfb6cde6"}},{"ruleId":"D1","level":"warning","message":{"text":"UpstreamProxyConfig::from_lookup (cyclomatic 17): UpstreamProxyConfig::from_lookup has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/upstream_proxy.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15d9247cc3c49176175f3147870084e8b2764df12017c67d3fb374fb49cc6c0"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::path::canonicalize_request_target (cyclomatic 17): openshell_supervisor_network::l7::path::canonicalize_request_target has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/path.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b276d91ce310763a31821ea95066847ce0c90c346f94fd1e176eb0c6fb648b"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::opa::resolve_binary_in_container (cyclomatic 17): openshell_supervisor_network::opa::resolve_binary_in_container has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: openshell_supervisor_network::opa::redacted_policy_violation_category (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"abec2dcd2536cc40c7bef91ba7d352f382b6f680a6a8c2e96521c0449ecfe0ae"}},{"ruleId":"D1","level":"warning","message":{"text":"SshHandler::data (cyclomatic 17): SshHandler::data has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/ssh.rs"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"6203f4c071fe3b93b0ff3b3d9b7a4a1754d10798defbcb7629e5ab1b1bc465d1"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_sandbox_settings_key (cyclomatic 17): App::handle_sandbox_settings_key has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: App::handle_policy_key (cyclomatic 18) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":1776}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00ca8324a9da190c056d10eeacd251a2cd27d08f055eb711b7428f132e3cc50"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_tui::spawn_create_sandbox (cyclomatic 17): openshell_tui::spawn_create_sandbox has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df79e0da2e8e0f8e0522ec461e6a105c7fa3df03d5ead3868a1974f7d5383fe"}},{"ruleId":"D1","level":"warning","message":{"text":"SandboxClient.from_active_cluster (cyclomatic 17): SandboxClient.from_active_cluster has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/openshell/sandbox.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"79aea0ccb289cfaaaff19109070262e2acc2d54cb867ed1ab0c0ca913d68667d"}},{"ruleId":"D1","level":"warning","message":{"text":"NavCheck.walk (cyclomatic 17): NavCheck.walk has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tasks/scripts/check_docs_nav.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac38362f5ffd98b13f4ecd97e46447812b602ceb5ca83b48174f6d83332be18e"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_cli::commands::provider::auto_create_provider (cyclomatic 16): openshell_cli::commands::provider::auto_create_provider 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":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"2389aa0c4f078fc000e099354fb83feeb666782d0aa79f4b5169c35dabda267c"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_cli::run::sandbox_exec_grpc (cyclomatic 16): openshell_cli::run::sandbox_exec_grpc has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":1987}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e039a9c7a458208943c37cd6c1a597cec28e6ba7aad02df9a36b186a79844f"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_cli::ssh::sandbox_connect_supervised (cyclomatic 16): openshell_cli::ssh::sandbox_connect_supervised 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":"crates/openshell-cli/src/ssh.rs"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c8f3a3b6135f4fc3b8e75e381ef8d71704693a6cf094ea5655a39d22895e7d"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_cli::ssh::upload::transfer (cyclomatic 16): openshell_cli::ssh::upload::transfer 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":"crates/openshell-cli/src/ssh/upload.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e36d30215ca328268843feb529a2429a4fe76fe0e089d08183eb7928d5efaae"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_core::driver_utils::parse_upstream_proxy_url (cyclomatic 16): openshell_core::driver_utils::parse_upstream_proxy_url has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/driver_utils.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab722e1f8ef6f5f8f58f2280805cd8c4eff45f78b19ca20b922e47becdc67fc"}},{"ruleId":"D1","level":"warning","message":{"text":"DockerComputeDriver::provision_sandbox_inner (cyclomatic 16): DockerComputeDriver::provision_sandbox_inner has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: openshell_driver_docker::parse_memory_limit (cyclomatic 18) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1991c1d296591a9968a8769b94d9330f1c9c6e1809322a47e5731bf1915081"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_driver_vm::runtime::run_libkrun_vm (cyclomatic 16): openshell_driver_vm::runtime::run_libkrun_vm has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/runtime.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec86c936b794f904d759a54c0140e632a15899f5e4f14992ab6dbb519edc4848"}},{"ruleId":"D1","level":"warning","message":{"text":"MainSession::from_boundary (cyclomatic 16): MainSession::from_boundary 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":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa971b9eb39eec895d660675accbb064eaa105e4a9177fa175090abac48228a"}},{"ruleId":"D1","level":"warning","message":{"text":"ComputeRuntime::report_main_process_exit (cyclomatic 16): ComputeRuntime::report_main_process_exit 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":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":5822}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ceed6bfcc9e40458ca9c5d7f16c174bc9b57823f95339355a801cf50f68f60"}},{"ruleId":"D1","level":"warning","message":{"text":"ComputeRuntime::reclaim_provisioning_timeout (cyclomatic 16): ComputeRuntime::reclaim_provisioning_timeout has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/provisioning_deadline.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a80c065113ea2e59b705fc8148e197d2385c9ff4b36fce0bbdd1e32c99efcd7"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::grpc::sandbox::run_exec_with_russh (cyclomatic 16): openshell_server::grpc::sandbox::run_exec_with_russh has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":4032}}}],"partialFingerprints":{"codehealthFindingId/v1":"78262c8cd292370b2b1ea48ac895af2664fa21a192dbbad0ad31551356043e0f"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_server::provider_profile_sources::build_effective_profiles (cyclomatic 16): openshell_server::provider_profile_sources::build_effective_profiles 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":"crates/openshell-server/src/provider_profile_sources.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c30e064ab8537c3ebfdacb1d01df550c4cd8d22d80db032cb4dcea17ca134e9"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_middleware::headers::apply (cyclomatic 16): openshell_supervisor_middleware::headers::apply has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/headers.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f5467267fddfbe906c5d34a90b27fa439e82b41caa65b295055b8b9acf556b"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_supervisor_network::l7::validate_jsonrpc_rule_fields (cyclomatic 16): openshell_supervisor_network::l7::validate_jsonrpc_rule_fields 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":"crates/openshell-supervisor-network/src/l7/mod.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4bf91749c3706961e1c1b4ef94cc7511938006671818b88ce13a96eefcbd422"}},{"ruleId":"D1","level":"warning","message":{"text":"App::handle_sandboxes_key (cyclomatic 16): App::handle_sandboxes_key has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: App::handle_policy_key (cyclomatic 18) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":1647}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c18bd3a5587cb3129256ec5e46bd0878a36d8a83860933b2f9bc03190cdf02"}},{"ruleId":"D1","level":"warning","message":{"text":"App::provider_detail_from_provider (cyclomatic 16): App::provider_detail_from_provider has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: App::handle_policy_key (cyclomatic 18) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":3294}}}],"partialFingerprints":{"codehealthFindingId/v1":"e542c7525257fb4c097092c2b7c988808d490370ba454d4e064c73a0298d444f"}},{"ruleId":"D1","level":"warning","message":{"text":"openshell_tui::ui::sandbox_detail::draw (cyclomatic 16): openshell_tui::ui::sandbox_detail::draw has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/sandbox_detail.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"97266d373916de1b5934eef3dc7a1775be9ae98a189298e568a2eb89ffdc7af7"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayError.__init__ (cyclomatic 16): GatewayError.__init__ has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/openshell/errors.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed34a23cef9f582d96509466e83b91b86674af612e48b765bff74c94172936c"}},{"ruleId":"D1","level":"warning","message":{"text":"refreshableAuth.GetRequestMetadata (cyclomatic 16): refreshableAuth.GetRequestMetadata 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":"sdk/go/openshell/v1/auth_refresh.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e04a94507544331eb00bcb5b0c9d9d3bc5e95e909935e34166ec5b78781e5a9"}},{"ruleId":"D1","level":"warning","message":{"text":"oidc.DeviceLogin (cyclomatic 16): oidc.DeviceLogin has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/oidc/device.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"00af3bbf511dd6f4715f971ef2bf4142ed3456884562d79938372b75406f7c01"}},{"ruleId":"D1","level":"warning","message":{"text":"SandboxClient.forward (cyclomatic 16): SandboxClient.forward has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body\u0027s own statements and 8 belong to 4 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"61bbd38a3497875fb03a2f6c44bc000b39162a11fbd2a71117e25a4932dbbb33"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_providers::profiles::validate_profile_set (cognitive 504): openshell_providers::profiles::validate_profile_set has cognitive complexity 504 (threshold 15). Drivers by points: if/else 103 (371 pts), loops 24 (89 pts), boolean chains 41, match/switch 1 (3 pts) (nesting depth added 335). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":2138}}}],"partialFingerprints":{"codehealthFindingId/v1":"361a68944b96a432c276bd6fea3c3d17a5d3ef711a17424b59df4c11479e2f7c"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::validate_l7_policies (cognitive 266): openshell_supervisor_network::l7::validate_l7_policies has cognitive complexity 266 (threshold 15). Drivers by points: if/else 52 (204 pts), boolean chains 35, loops 8 (27 pts) (nesting depth added 171). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/mod.rs"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6551fd3b8af097415e98f68c849e8153776e66dd06762cda7f2d1af9744768"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_create_provider_key (cognitive 233): App::handle_create_provider_key has cognitive complexity 233 (threshold 15). Drivers by points: if/else 59 (181 pts), match/switch 12 (38 pts), loops 2 (9 pts), boolean chains 5 (nesting depth added 155). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":2484}}}],"partialFingerprints":{"codehealthFindingId/v1":"7765953c3be436d10c6b4b7953500df3d5f2d8353e1dd0394b8c1d383048d75a"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::sandbox::handle_watch_sandbox (cognitive 219): openshell_server::grpc::sandbox::handle_watch_sandbox has cognitive complexity 219 (threshold 15). Drivers by points: if/else 61 (170 pts), match/switch 11 (31 pts), loops 7 (14 pts), boolean chains 4 (nesting depth added 136). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":2033}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3e34c627efaa039dd58ad9839a8421ffe08ad02830676b731bbee22268b78a"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::run_async (cognitive 179): openshell_cli::run_async has cognitive complexity 179 (threshold 15). Drivers by points: if/else 55 (123 pts), match/switch 21 (48 pts), loops 2 (7 pts), boolean chains 1 (nesting depth added 100). 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":"crates/openshell-cli/src/main.rs"},"region":{"startLine":2635}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ec023bca3cdad565bd41c68adf40f8130889c05c523bd6538bd66bfce8965f"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::run::sandbox_create (cognitive 179): openshell_cli::run::sandbox_create has cognitive complexity 179 (threshold 15). Drivers by points: if/else 66 (127 pts), boolean chains 25, match/switch 11 (20 pts), loops 3 (7 pts) (nesting depth added 74). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"516f2e00f61a6477eef93b9adf638fb52f5e81dbb8bddb6e04ca61c006b11c04"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_tui::run (cognitive 164): openshell_tui::run has cognitive complexity 164 (threshold 15). Drivers by points: if/else 35 (122 pts), match/switch 13 (38 pts), boolean chains 3, loops 1 (nesting depth added 112). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"caad0076c5c9db9305cb17bf907dd01586685f8a42e89e4ae57fe59ed8f3c92e"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::proxy::handle_forward_proxy (cognitive 159): openshell_supervisor_network::proxy::handle_forward_proxy has cognitive complexity 159 (threshold 15). Drivers by points: if/else 66 (109 pts), match/switch 23 (38 pts), boolean chains 9, loops 1 (3 pts) (nesting depth added 60). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":5332}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4d2700e6758ad9ffcb3ffe7716c5b6a965b9be9e2d3e82ac7b3db70049f553"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::proxy::handle_mediated_connection (cognitive 130): openshell_supervisor_network::proxy::handle_mediated_connection has cognitive complexity 130 (threshold 15). Drivers by points: if/else 68 (111 pts), match/switch 9 (16 pts), boolean chains 2, loops 1 (nesting depth added 50). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":2414}}}],"partialFingerprints":{"codehealthFindingId/v1":"41eebb456893e3236855d30b588a44b3d9cb5a151f7819a661e13c905e626d9d"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor::endpoint_status::run_reporter (cognitive 127): openshell_supervisor::endpoint_status::run_reporter has cognitive complexity 127 (threshold 15). Drivers by points: if/else 20 (70 pts), match/switch 9 (37 pts), loops 7 (16 pts), boolean chains 4 (nesting depth added 87). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/endpoint_status.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18a9b6fbd4cc7cd2e0eb4020439fe39f0be63d9fc6ea9543844108c82e88241"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::relay::relay_with_route_selection (cognitive 127): openshell_supervisor_network::l7::relay::relay_with_route_selection has cognitive complexity 127 (threshold 15). Drivers by points: if/else 38 (94 pts), match/switch 10 (28 pts), boolean chains 4, loops 1 (nesting depth added 74). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"513a2a977712fe9299a9d328c11bf53d83d631c46ca88cefd78ed243c163a29c"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::provider::resolve_provider_environment_from_records_with_policy_bindings_and_credentials (cognitive 119): openshell_server::grpc::provider::resolve_provider_environment_from_records_with_policy_bindings_and_credentials has cognitive complexity 119 (threshold 15). Drivers by points: if/else 29 (92 pts), loops 7 (14 pts), boolean chains 11, match/switch 1 (2 pts) (nesting depth added 71). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19389abf99d825593bcd1c30779366e771b1af12fa9ef9c8b008a3c69237a11"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::relay_http_request_with_response_middleware_guarded_observed (cognitive 118): openshell_supervisor_network::l7::rest::relay_http_request_with_response_middleware_guarded_observed has cognitive complexity 118 (threshold 15). Drivers by points: if/else 33 (89 pts), match/switch 7 (29 pts) (nesting depth added 78). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f9735b8c1182ad5957197a5b2b8640864d9386c7a442ca29acae0c22b9827e"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_policy::validate_sandbox_policy_with_mcp_presence (cognitive 115): openshell_policy::validate_sandbox_policy_with_mcp_presence has cognitive complexity 115 (threshold 15). Drivers by points: if/else 41 (81 pts), loops 6 (18 pts), boolean chains 16 (nesting depth added 52). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/lib.rs"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7079ba70f932247cddaee17fc54179ac6edfff35ce0d6388a76d9b1ebb2c11b"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::http_response::relay_response_through_middleware (cognitive 100): openshell_supervisor_network::l7::rest::http_response::relay_response_through_middleware has cognitive complexity 100 (threshold 15). Drivers by points: if/else 52 (72 pts), loops 6 (12 pts), boolean chains 8, match/switch 7 (8 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4cc94c81c716b25912b8782210a9e7ce38c1b19d1e4270cfb212e7e875f725"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::policy::handle_update_config_inner (cognitive 99): openshell_server::grpc::policy::handle_update_config_inner has cognitive complexity 99 (threshold 15). Drivers by points: if/else 48 (86 pts), boolean chains 8, loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":4176}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b0e9c8b1c0f2e408dcffa16602da6efce8c429b6b288058878cc43796fceed"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::websocket::relay_client_to_server (cognitive 85): openshell_supervisor_network::l7::websocket::relay_client_to_server has cognitive complexity 85 (threshold 15). Drivers by points: if/else 24 (67 pts), match/switch 5 (12 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 53). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/websocket.rs"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3469149abbd23a88c5d722aa199e51bca9c0222190b0d0f6cec668bdffda86a"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigRuntime::reconcile (cognitive 83): ConfigRuntime::reconcile has cognitive complexity 83 (threshold 15). Drivers by points: if/else 27 (53 pts), boolean chains 18, match/switch 6 (12 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/config_runtime.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc79ae5aed8722000d7b05161d0e6495c89514c0d78b4ef1db4768902252e974"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_prover::containment::resource_limit_reason (cognitive 82): openshell_prover::containment::resource_limit_reason has cognitive complexity 82 (threshold 15). Drivers by points: if/else 12 (44 pts), loops 11 (37 pts), boolean chains 1 (nesting depth added 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":"crates/openshell-prover/src/containment.rs"},"region":{"startLine":1926}}}],"partialFingerprints":{"codehealthFindingId/v1":"429ecdb5c5b53ae6db222474162fb2011a09ca25dd49b426f853cf09ddfa02ee"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor::load_policy_with_gateway (cognitive 82): openshell_supervisor::load_policy_with_gateway has cognitive complexity 82 (threshold 15). Drivers by points: if/else 24 (60 pts), match/switch 5 (17 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 49). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/lib.rs"},"region":{"startLine":2738}}}],"partialFingerprints":{"codehealthFindingId/v1":"d507fb4f50d6a764301baa1da95f75fd2bfeb07f73ed3ced4f204ca9b54420bb"}},{"ruleId":"D2","level":"warning","message":{"text":"ChainRunner::evaluate_described_with_policy_admitted (cognitive 79): ChainRunner::evaluate_described_with_policy_admitted has cognitive complexity 79 (threshold 15). Drivers by points: if/else 18 (37 pts), match/switch 13 (33 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/lib.rs"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e6deaf0ff1746c097bb17d7ffdb223ba2edb6a4cd29a7e5d7a7e2072ef02c9"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_tui::render_policy_lines (cognitive 76): openshell_tui::render_policy_lines has cognitive complexity 76 (threshold 15). Drivers by points: if/else 25 (65 pts), loops 3 (9 pts), boolean chains 2 (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53841903cffcf3cb941165f6d3f56a378782e64bc745d325de7b34158cd8f14"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_draft_key (cognitive 74): App::handle_draft_key has cognitive complexity 74 (threshold 15). Drivers by points: if/else 27 (65 pts), match/switch 3 (5 pts), boolean chains 4 (nesting depth added 40). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":1947}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa54efdffde42b916b94ddc70411cc9423ad9667415d32282edce6569e62b5b"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::http_response::relay_normalized_response_body (cognitive 73): openshell_supervisor_network::l7::rest::http_response::relay_normalized_response_body has cognitive complexity 73 (threshold 15). Drivers by points: if/else 23 (59 pts), loops 4 (9 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 43). 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":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a85e0287524fc44d7254e6d5681a265c26fdfd8045b6aaa3f9a9051ca51196"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::provider::profile_attached_sandbox_diagnostics (cognitive 68): openshell_server::grpc::provider::profile_attached_sandbox_diagnostics has cognitive complexity 68 (threshold 15). Drivers by points: if/else 19 (49 pts), loops 5 (10 pts), boolean chains 9 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":3808}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfd2d8bf118bf1840fd6b7a4c90b16d3c2673f0cb515f66e674fc3c30d64ad7"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor::run_sandbox_instance (cognitive 67): openshell_supervisor::run_sandbox_instance has cognitive complexity 67 (threshold 15). Drivers by points: if/else 46 (55 pts), boolean chains 6, match/switch 2 (5 pts), loops 1 (nesting depth added 12). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/lib.rs"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1ad6ad0ffcd7bf1061414400f92c66ed68c77fbd40143e341e5a2834bf0c07"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::opa::proto_to_opa_data_json (cognitive 66): openshell_supervisor_network::opa::proto_to_opa_data_json has cognitive complexity 66 (threshold 15). Drivers by points: if/else 54 (65 pts), match/switch 1 (nesting depth added 11). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":2255}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc185a5a3a9a525c36731f20aa3fa891fadf66cced406597baf6a87f1bb73143"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor::shared_host::run_stream (cognitive 65): openshell_supervisor::shared_host::run_stream has cognitive complexity 65 (threshold 15). Drivers by points: if/else 16 (49 pts), match/switch 4 (9 pts), boolean chains 6, loops 1 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/shared_host.rs"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"019f6ac76f700206a52e62f92656250f4a1fb4cc6d97691354ce4894792b12fd"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::run::sandbox_get_to_writer (cognitive 64): openshell_cli::run::sandbox_get_to_writer has cognitive complexity 64 (threshold 15). Drivers by points: if/else 29 (39 pts), loops 8 (18 pts), boolean chains 6, match/switch 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":1609}}}],"partialFingerprints":{"codehealthFindingId/v1":"32aa1072e0b0ac769f2a66fee86c729452e752a2473beb2e5852fb7d74c7b2d9"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::run::sandbox_exec_streaming_grpc (cognitive 64): openshell_cli::run::sandbox_exec_streaming_grpc has cognitive complexity 64 (threshold 15). Drivers by points: if/else 19 (39 pts), loops 6 (11 pts), match/switch 5 (11 pts), boolean chains 3 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":2580}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b50b2bbddf0b570886714623ee0d8981916aaf25073c66dd1e3be2bff81c03"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::relay::relay_rest (cognitive 63): openshell_supervisor_network::l7::relay::relay_rest has cognitive complexity 63 (threshold 15). Drivers by points: if/else 16 (39 pts), match/switch 8 (21 pts), boolean chains 2, loops 1 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2020}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a3321a440a181ed79c352574bae863d323ce34ae1b826587d955d0cc246be6"}},{"ruleId":"D2","level":"warning","message":{"text":"ChainRunner::preflight_described_http_response (cognitive 62): ChainRunner::preflight_described_http_response has cognitive complexity 62 (threshold 15). Drivers by points: if/else 19 (46 pts), match/switch 6 (14 pts), boolean chains 1, loops 1 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/response/preflight.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"244f8c3d3946a9bf9ba7baf6ff9ef7b5552a5222671501b0c52bc7823b65cb5a"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::commands::gateway::gateway_add (cognitive 61): openshell_cli::commands::gateway::gateway_add has cognitive complexity 61 (threshold 15). Drivers by points: if/else 29 (45 pts), match/switch 5 (12 pts), boolean chains 4 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67db3f27aa4339e7138fcf1d57ed905be8529a0d1357acac2ebb660cb874458"}},{"ruleId":"D2","level":"warning","message":{"text":"OcsfEvent::format_shorthand (cognitive 61): OcsfEvent::format_shorthand has cognitive complexity 61 (threshold 15). Drivers by points: if/else 32 (51 pts), boolean chains 4, match/switch 3 (4 pts), loops 1 (2 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-ocsf/src/format/shorthand.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb15bb3073466d6366d8d07fbffb0ccc1b27888d979d5a9718e4e917d5295df8"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_sandbox::probe_socket_virtualization (cognitive 61): openshell_sandbox::probe_socket_virtualization has cognitive complexity 61 (threshold 15). Drivers by points: if/else 21 (45 pts), boolean chains 10, match/switch 2 (5 pts), loops 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e759b35e8a51db6e7ec2898aa3e472f1135b70030eb15d9fd03eb5565b46a33"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_update_provider_key (cognitive 61): App::handle_update_provider_key has cognitive complexity 61 (threshold 15). Drivers by points: if/else 17 (41 pts), match/switch 7 (16 pts), boolean chains 4 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":3057}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e7c61c43732e44fde7c32dd45d1bfce3344a89f726907088b7a0a9f7c0bccf"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::http_response::relay_response (cognitive 58): openshell_supervisor_network::l7::rest::http_response::relay_response has cognitive complexity 58 (threshold 15). Drivers by points: if/else 23 (45 pts), boolean chains 9, match/switch 2 (3 pts), loops 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5dc2cfaed3c3b75cc203b9e6b3b0f2edae30ed1b970db5347e6e7e0188bf665"}},{"ruleId":"D2","level":"warning","message":{"text":"KubernetesComputeDriver::reconcile_sandbox_runtime_resources (cognitive 57): KubernetesComputeDriver::reconcile_sandbox_runtime_resources has cognitive complexity 57 (threshold 15). Drivers by points: if/else 17 (34 pts), match/switch 8 (17 pts), boolean chains 5, loops 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":4531}}}],"partialFingerprints":{"codehealthFindingId/v1":"f84dad719366b0d2f838f9244fe34834351081a75f2f2f0835ca97d551f7452c"}},{"ruleId":"D2","level":"warning","message":{"text":"ComputeRuntime::start_persisted_sandboxes_with_authentication (cognitive 57): ComputeRuntime::start_persisted_sandboxes_with_authentication has cognitive complexity 57 (threshold 15). Drivers by points: if/else 17 (40 pts), match/switch 5 (12 pts), boolean chains 4, loops 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":4038}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a30416fc9acc8a9f773f9ce87bd7236259319dd5112acf731b7d0efbce65914"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor::config_runtime::run_policy_poll_loop_with_client (cognitive 57): openshell_supervisor::config_runtime::run_policy_poll_loop_with_client has cognitive complexity 57 (threshold 15). Drivers by points: if/else 13 (36 pts), match/switch 7 (17 pts), boolean chains 3, loops 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/config_runtime.rs"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"8078cf9c6e736876cf2b4d72b888dcc6338e922836d6784168e2344e8ad5b461"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::run_server (cognitive 55): openshell_server::run_server has cognitive complexity 55 (threshold 15). Drivers by points: if/else 33 (40 pts), boolean chains 6, match/switch 2 (5 pts), loops 2 (4 pts) (nesting depth added 12). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/lib.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a72def6369c63dee36ab83e830e3e6ddef332f5c2425cb82509e8ee03bd7b0"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::relay::relay_jsonrpc (cognitive 55): openshell_supervisor_network::l7::relay::relay_jsonrpc has cognitive complexity 55 (threshold 15). Drivers by points: if/else 17 (38 pts), match/switch 6 (14 pts), boolean chains 2, loops 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2438}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79f7c1bae636d2e2fe6b6d8d19b60034508cd438ef4e1dd00182e2f95606720"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::commands::provider::format_provider_profile_details (cognitive 53): openshell_cli::commands::provider::format_provider_profile_details has cognitive complexity 53 (threshold 15). Drivers by points: if/else 24 (39 pts), match/switch 4 (8 pts), loops 4, boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":2529}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d31896a8c8c28a8e5a5dafd7b0f8a1c6a686854b57fb42d9607fdcfdc7e14f"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::cli::merge_file_into_args (cognitive 52): openshell_server::cli::merge_file_into_args has cognitive complexity 52 (threshold 15). Drivers by points: if/else 30 (34 pts), boolean chains 18 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/cli.rs"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99450fefaad4c2c59c0d5f93c59a230b2b4a7dbd01b36181f009905ebaae5f7"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::provider_refresh::apply_minted_credential (cognitive 51): openshell_server::provider_refresh::apply_minted_credential has cognitive complexity 51 (threshold 15). Drivers by points: if/else 18 (25 pts), loops 9 (18 pts), boolean chains 6, match/switch 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/provider_refresh.rs"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"55fda91cde5ec3eea803ca6defbd44cd7b487db0279b660bb056e3a1d24205af"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::run::run_networking (cognitive 50): openshell_supervisor_network::run::run_networking has cognitive complexity 50 (threshold 15). Drivers by points: if/else 17 (31 pts), match/switch 4 (12 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/run.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b25177564601344e1a000493ebf58608f94ac68fd5b379c30acfb05ee4e259c"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_process::log_push::run_push_loop (cognitive 49): openshell_supervisor_process::log_push::run_push_loop has cognitive complexity 49 (threshold 15). Drivers by points: if/else 11 (39 pts), match/switch 3 (7 pts), loops 2 (3 pts) (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/log_push.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d84c43aebabbee29beb9ad773c82e03cd55a7022f70941efafb4659cfca9844"}},{"ruleId":"D2","level":"warning","message":{"text":"select-release-candidate.select_candidate (cognitive 49): select-release-candidate.select_candidate has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (36 pts), loops 4 (8 pts), boolean chains 5 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tasks/scripts/select-release-candidate.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b35036649a9eae8f8ebf1ecdb2d8dc128bfbdd1d2566bccc27217bf44fa51e9"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::relay::relay_graphql (cognitive 48): openshell_supervisor_network::l7::relay::relay_graphql has cognitive complexity 48 (threshold 15). Drivers by points: if/else 15 (29 pts), match/switch 7 (16 pts), boolean chains 2, loops 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2717}}}],"partialFingerprints":{"codehealthFindingId/v1":"be93bfbb5b6e22459c911519f997bf4142f8a47319d62c3661c769884fd663ff"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_core::grpc_client::refresh_token_loop (cognitive 47): openshell_core::grpc_client::refresh_token_loop has cognitive complexity 47 (threshold 15). Drivers by points: if/else 8 (24 pts), match/switch 5 (19 pts), boolean chains 3, loops 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/grpc_client.rs"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"62cfadc1004f665b6924152490f5e0a1b1f5d6b5ffa34046df4b82cd6369f0b3"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::provider::handle_configure_provider_refresh (cognitive 47): openshell_server::grpc::provider::handle_configure_provider_refresh has cognitive complexity 47 (threshold 15). Drivers by points: if/else 28 (33 pts), loops 5 (6 pts), boolean chains 4, match/switch 3 (4 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":4814}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d1ae9ad1c59c4e438865d4b0f5ed392e6aefead98bcdff705f9848c296f457"}},{"ruleId":"D2","level":"warning","message":{"text":"BodyPlaceholderGuard::release (cognitive 46): BodyPlaceholderGuard::release has cognitive complexity 46 (threshold 15). Drivers by points: if/else 17 (36 pts), boolean chains 6, loops 3 (4 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/secrets_body.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff0e312ba18224969548852285920b82add7efd8668cc8a4918d92f2a6597350"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::provider_credentials::retrieve (cognitive 46): openshell_server::grpc::provider_credentials::retrieve has cognitive complexity 46 (threshold 15). Drivers by points: if/else 16 (28 pts), boolean chains 8, loops 8, match/switch 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider_credentials.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceef8bb1226da98f40a9c616cb14e23bc3f109b905c84c59c0c1aac384eb0bcd"}},{"ruleId":"D2","level":"warning","message":{"text":"resolve_licenses.main (cognitive 46): resolve_licenses.main has cognitive complexity 46 (threshold 15). Drivers by points: if/else 14 (29 pts), loops 9 (13 pts), ternaries 2 (3 pts), boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deploy/sbom/resolve_licenses.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9ad24750a42c82ce86c6d11230914712928333d11942f58aaaaea290f3c8d0"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::policy::apply_merge_operations_with_retry (cognitive 45): openshell_server::grpc::policy::apply_merge_operations_with_retry has cognitive complexity 45 (threshold 15). Drivers by points: if/else 19 (40 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":7617}}}],"partialFingerprints":{"codehealthFindingId/v1":"df62bbf96bf613191ce729c8ad1f9e092fcaaebb9f96c65d614729ae5dd96bf2"}},{"ruleId":"D2","level":"warning","message":{"text":"WebSocketSession::evaluate_text_admitted_inner (cognitive 45): WebSocketSession::evaluate_text_admitted_inner has cognitive complexity 45 (threshold 15). Drivers by points: if/else 14 (35 pts), match/switch 3 (7 pts), loops 2 (3 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/websocket.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"653f3c06e497b3a02944dcfdec6c0c614b450ee6d7083dec1b1451f2a3ee4ad1"}},{"ruleId":"D2","level":"warning","message":{"text":"MainSession::start_io (cognitive 44): MainSession::start_io has cognitive complexity 44 (threshold 15). Drivers by points: match/switch 6 (17 pts), if/else 4 (14 pts), loops 6 (13 pts) (nesting depth added 28). 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":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4862bb4ff0824c51d69770ef1f20253b9ee351239a78f13e8825701eb528b87"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_sandbox::boundary_server::linux::serve_one (cognitive 44): openshell_sandbox::boundary_server::linux::serve_one has cognitive complexity 44 (threshold 15). Drivers by points: if/else 14 (24 pts), match/switch 9 (15 pts), boolean chains 5 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/boundary_server.rs"},"region":{"startLine":2040}}}],"partialFingerprints":{"codehealthFindingId/v1":"218540bb5ab50eefa5ebb120092d79f8c14707e7fe4a6be2b6389d7238a9d8f6"}},{"ruleId":"D2","level":"warning","message":{"text":"ComputeRuntime::start_sandbox_with_intent (cognitive 42): ComputeRuntime::start_sandbox_with_intent has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (30 pts), boolean chains 7, match/switch 3 (4 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":2230}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de7c6babe7ed86f1fa97b6990a83b6ee0cfb8bfc489d5da529aa5fc743da376"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::run::sandbox_template_to_json (cognitive 41): openshell_cli::run::sandbox_template_to_json has cognitive complexity 41 (threshold 15). Drivers by points: if/else 18 (40 pts), boolean chains 1 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":3632}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e6595582114edf7da2e9f4484c7bb0a8e7b4a8077119d15fda5f78135b41e9"}},{"ruleId":"D2","level":"warning","message":{"text":"VmDriver::monitor_sandbox (cognitive 41): VmDriver::monitor_sandbox has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (34 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":4568}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b1fe9ebcabbf73581775d28a3676194327ecbc006e67e0a15a7a6fe9263774"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_providers::profiles::validate_token_grant_audience_overrides (cognitive 41): openshell_providers::profiles::validate_token_grant_audience_overrides has cognitive complexity 41 (threshold 15). Drivers by points: if/else 9 (28 pts), loops 5 (12 pts), boolean chains 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":3409}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb2a7bf293ee76c7f7de74b905045c8760f9e866b0e984d4d4f9b40c76c4658"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::policy::handle_submit_policy_analysis (cognitive 41): openshell_server::grpc::policy::handle_submit_policy_analysis has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (26 pts), boolean chains 9, match/switch 2 (4 pts), loops 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":5497}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c751b90fce7da824b3ee55b68098222da423c735f9fc6490a076fddd4c95eb"}},{"ruleId":"D2","level":"warning","message":{"text":"VmDriver::provision_sandbox_inner (cognitive 40): VmDriver::provision_sandbox_inner has cognitive complexity 40 (threshold 15). Drivers by points: if/else 25 (29 pts), match/switch 6, loops 4, boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd2b3fb344a43e1c16b44ea185979e8e00d579ec974e928397c0fb76bfa8a02"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::spawn_gateway_connection (cognitive 40): openshell_server::spawn_gateway_connection has cognitive complexity 40 (threshold 15). Drivers by points: if/else 13 (31 pts), match/switch 3 (9 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/lib.rs"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8234fc0dae27cd3cb86f39f485bb588da3c6fc14b0e9d719f52af6d3099947"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::cli::prepare_server_config_with_drivers (cognitive 40): openshell_server::cli::prepare_server_config_with_drivers has cognitive complexity 40 (threshold 15). Drivers by points: if/else 27 (33 pts), boolean chains 6, match/switch 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/cli.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2ae5f87f8c44e8fa8456c311dbb57de09db1191ba33d7207366422f049f55b"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_sandbox::boundary_server::linux::bridge_main_stream (cognitive 39): openshell_sandbox::boundary_server::linux::bridge_main_stream has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (23 pts), match/switch 5 (13 pts), loops 2, boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/boundary_server.rs"},"region":{"startLine":4528}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8408c9e431a99c6e07c60a29d1d8b38662591e1c152d43787857306ec9bc186"}},{"ruleId":"D2","level":"warning","message":{"text":"SupervisorPool::transition_admitting (cognitive 39): SupervisorPool::transition_admitting has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (28 pts), match/switch 3 (7 pts), boolean chains 3, loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_pool.rs"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9aaef070338b63e7df6986af040566a7beec006669fde2aa7f383e6dd4d793"}},{"ruleId":"D2","level":"warning","message":{"text":"ControlReadiness::start (cognitive 39): ControlReadiness::start has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (24 pts), match/switch 4 (13 pts), boolean chains 1, loops 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/lib.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5d149c46384ea65165107c911bc451a425a0e7ec6230e7833cb863221f8ae5"}},{"ruleId":"D2","level":"warning","message":{"text":"ComputeRuntime::recover_persisted_lifecycle_transitions (cognitive 38): ComputeRuntime::recover_persisted_lifecycle_transitions has cognitive complexity 38 (threshold 15). Drivers by points: if/else 8 (22 pts), match/switch 5 (14 pts), boolean chains 1, loops 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":4319}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb9a10831275a81ce346b83041eb6d0b1b8918fefd8c44956175d905508e723"}},{"ruleId":"D2","level":"warning","message":{"text":"NoProxy::direct_addrs (cognitive 38): NoProxy::direct_addrs has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (25 pts), loops 3 (7 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/upstream_proxy.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"a530987df7d5c108d6692011e8a82e9bc457dc8a6db18395e4c2b88d54795746"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_tui::ui::create_sandbox::draw_form (cognitive 38): openshell_tui::ui::create_sandbox::draw_form has cognitive complexity 38 (threshold 15). Drivers by points: if/else 30 (35 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/create_sandbox.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b216bb6b21b2b88aee205d5faff55982ef1b54a3483b3cfc2dc2ac9a9daefca2"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::policy_update::build_policy_update_plan (cognitive 37): openshell_cli::policy_update::build_policy_update_plan has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 7, loops 6 (7 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/policy_update.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7add1bc1c096082ac1ba0b7d3a3fc1e7bf6af8d822c3f004a1cfd0505b0b7bb"}},{"ruleId":"D2","level":"warning","message":{"text":"KubernetesComputeDriver::watch_sandboxes_single_namespace (cognitive 37): KubernetesComputeDriver::watch_sandboxes_single_namespace has cognitive complexity 37 (threshold 15). Drivers by points: if/else 6 (27 pts), match/switch 3 (8 pts), boolean chains 1, loops 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":5273}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc63db652bdcf0f11af7b0e3227f316987899b124a96e76d3a571d2fbfa388c0"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_sandbox::mechanistic_mapper::generate_proposals (cognitive 37): openshell_sandbox::mechanistic_mapper::generate_proposals has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (25 pts), loops 5 (9 pts), boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/mechanistic_mapper.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b67063b5536a7c8ca484763536a0120aca9dc59fa8978721cc5b5b76e6b187"}},{"ruleId":"D2","level":"warning","message":{"text":"ComputeRuntime::set_supervisor_session_state_from_snapshot (cognitive 37): ComputeRuntime::set_supervisor_session_state_from_snapshot has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 7, match/switch 2 (3 pts), loops 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":5653}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cde61254cc5b1d92dc38171c9fdda3a3f607270e852cbd41f457fe5773b5710"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor::mechanistic_mapper::generate_proposals (cognitive 37): openshell_supervisor::mechanistic_mapper::generate_proposals has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (25 pts), loops 5 (9 pts), boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/mechanistic_mapper.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9e3e4de21a1ebffc7e71c4b34a23c4ccb9ee33e85034d9441a62851548b960"}},{"ruleId":"D2","level":"warning","message":{"text":"ProxyHandle::start_with_bind_addr (cognitive 37): ProxyHandle::start_with_bind_addr has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (19 pts), match/switch 6 (14 pts), boolean chains 2, loops 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad10c01401efbec8f8ee48d872abba1e7863df335622ad7d9229b4732b6cc81b"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_sandbox::network_broker::connect_socket (cognitive 36): openshell_sandbox::network_broker::connect_socket has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (22 pts), match/switch 8 (11 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/network_broker.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c251670cc70010facee76aa842f4542d1c08d99f228e5ec8a8f1b05348b93c"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_tui::ui::create_provider::draw_enter_key (cognitive 36): openshell_tui::ui::create_provider::draw_enter_key has cognitive complexity 36 (threshold 15). Drivers by points: if/else 27 (35 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a4f71c920eb8a42839f29b219bcd077abe9fabf4d03fbb8e17871286f4bacc"}},{"ruleId":"D2","level":"warning","message":{"text":"NavCheck.walk (cognitive 36): NavCheck.walk has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (21 pts), ternaries 3 (10 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tasks/scripts/check_docs_nav.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"2115165c2cd43b3cab49675e1746adc6b64a1d7e2019fa6d0c9de25b4c45f122"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_policy::middleware::validate (cognitive 35): openshell_policy::middleware::validate has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (26 pts), loops 4 (8 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/middleware.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56fda59c30e455a6a8823edbb7981aa87d0431bbea5acd2398c5e500cd71222"}},{"ruleId":"D2","level":"warning","message":{"text":"MainSession::from_boundary (cognitive 35): MainSession::from_boundary has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (22 pts), match/switch 3 (7 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"50eb5546623a4874d8413fb965ef7517f27f6cc93f3b6a92dccb03ba70d84e1a"}},{"ruleId":"D2","level":"warning","message":{"text":"TlsAcceptor::spawn_reload_worker (cognitive 35): TlsAcceptor::spawn_reload_worker has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (24 pts), match/switch 3 (6 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/tls.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b4d5eb9e3dd9978256055b2b762870759ae95feed4c476dd231090269eac67"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::provider_profile_sources::build_effective_profiles (cognitive 35): openshell_server::provider_profile_sources::build_effective_profiles has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (27 pts), match/switch 1 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/provider_profile_sources.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"32200d9b07d4edd61d1492c068b9adb48fefea68b3b257ae5c1fcc4f8f2a2190"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::websocket_extension_offers (cognitive 35): openshell_supervisor_network::l7::rest::websocket_extension_offers has cognitive complexity 35 (threshold 15). Drivers by points: if/else 7 (23 pts), loops 3 (6 pts), match/switch 1 (4 pts), boolean chains 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":2579}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b89f10aff5751ebffe16e24053c17a428935e76b4dd12e43750d20d5651971"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_driver_kubernetes::driver::spawn_namespace_label_watcher (cognitive 34): openshell_driver_kubernetes::driver::spawn_namespace_label_watcher has cognitive complexity 34 (threshold 15). Drivers by points: if/else 5 (19 pts), match/switch 3 (8 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":8423}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07771b61ad7e6ab23bf294a81d2938803cf9201123026ad3256e01d8e56e70b"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_driver_kubernetes::resource_admission::inventory (cognitive 34): openshell_driver_kubernetes::resource_admission::inventory has cognitive complexity 34 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 6 (14 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/resource_admission.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d2042548de3f4d1f96694748d75d005ca8d79ea427d2c16a8fa9ff1e65f683"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::policy::handle_approve_all_draft_chunks_inner (cognitive 34): openshell_server::grpc::policy::handle_approve_all_draft_chunks_inner has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 6 (11 pts), match/switch 3 (6 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":6273}}}],"partialFingerprints":{"codehealthFindingId/v1":"994b71491546ad5743061eff0c5d94ac68d93dc513d9c51358df859d31ca0397"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::websocket::relay_text_payload_with_before_credential_write (cognitive 34): openshell_supervisor_network::l7::websocket::relay_text_payload_with_before_credential_write has cognitive complexity 34 (threshold 15). Drivers by points: if/else 21 (29 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/websocket.rs"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb047060e17cc0dd565219182fe8365e06e6999c266dff4d719f1a58288b81d"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_logs_key (cognitive 34): App::handle_logs_key has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (30 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":2161}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8929da6952c74cc2c9245fd0e362b916e425f5f5664b748421040343e9827e"}},{"ruleId":"D2","level":"warning","message":{"text":"sandboxClient.Watch (cognitive 34): sandboxClient.Watch has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (19 pts), match/switch 3 (11 pts), boolean chains 3, loops 1 (nesting depth added 16). Most of this is not in the body itself: 5 of the 34 points are its own statements and the rest belongs to one function literal inside it that branches (line 406). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/sandbox_client.go"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c6baf34e11d80f6b232fc01e527fb2c1a3996ac66de5ce5b4e6853675e6767"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::commands::provider::provider_create_with_options (cognitive 33): openshell_cli::commands::provider::provider_create_with_options has cognitive complexity 33 (threshold 15). Drivers by points: if/else 21 (25 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d7083e9ade7090df9d1ae606b8ac2240375a30e6d83eb53b087a63692a6103"}},{"ruleId":"D2","level":"warning","message":{"text":"DockerComputeDriver::admit_container_resources (cognitive 33): DockerComputeDriver::admit_container_resources has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 6, match/switch 1 (2 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb748362b439246df2429ca7578e5565fb08c28057b890fc2b1b13366a6ce8fe"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::sandbox::run_interactive_exec_with_russh (cognitive 33): openshell_server::grpc::sandbox::run_interactive_exec_with_russh has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (18 pts), match/switch 7 (13 pts), loops 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":3770}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d91d8f783c95e3f4c3a384c00ce2879ba84520bcbeddde8e736bcb4e7febee6"}},{"ruleId":"D2","level":"warning","message":{"text":"Tracker::run_reporter (cognitive 33): Tracker::run_reporter has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (23 pts), match/switch 4 (8 pts), boolean chains 1, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/provider_readiness.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"c124621df2a1822d1ccec848154a52b121c372d8a0bf24bdf15ce5aef9cb3484"}},{"ruleId":"D2","level":"warning","message":{"text":"BuiltinMiddlewareService::websocket_stream (cognitive 33): BuiltinMiddlewareService::websocket_stream has cognitive complexity 33 (threshold 15). Drivers by points: match/switch 6 (19 pts), if/else 5 (11 pts), boolean chains 2, loops 1 (nesting depth added 19). 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":"crates/openshell-supervisor-middleware-builtins/src/lib.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd51dad3f6e57f04d65951a89701c0da6f8f784b5b18b1c620e94fe9d4e28c2d"}},{"ruleId":"D2","level":"warning","message":{"text":"SshHandler::subsystem_request (cognitive 33): SshHandler::subsystem_request has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (22 pts), match/switch 3 (8 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/ssh.rs"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"287b5acbe231d7edc7f5cb2adb404222560b9ba1825ac5df78193ff9ef5aa71d"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_tui::spawn_create_sandbox (cognitive 33): openshell_tui::spawn_create_sandbox has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (28 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9208d046dc7fcf4b6cfb85051a2e86d61d7d55db6690c6488c2417d46f26051"}},{"ruleId":"D2","level":"warning","message":{"text":"PodmanComputeDriver::admit_container_resources (cognitive 32): PodmanComputeDriver::admit_container_resources has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 8, match/switch 2 (5 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/driver.rs"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"559ca3154a421ae1bc179712c5cc01b3b69aef2f2ee77b6cb2f47cbf31aaca8d"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_policy::ambiguity::tokenize_runtime_path_glob (cognitive 32): openshell_policy::ambiguity::tokenize_runtime_path_glob has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (21 pts), boolean chains 5, loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/ambiguity.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7152f119512348ea0ffa544a82230eb546bbb0afc6d7228800ad0f254f2571"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::relay::relay_passthrough_with_credentials (cognitive 32): openshell_supervisor_network::l7::relay::relay_passthrough_with_credentials has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (19 pts), match/switch 5 (11 pts), boolean chains 1, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":3506}}}],"partialFingerprints":{"codehealthFindingId/v1":"8733d219f391bbfdf1c8511246830940433d3a50440d4bac9fc6517d5d9703ee"}},{"ruleId":"D2","level":"warning","message":{"text":"codex_compatibility_report.validate_review (cognitive 32): codex_compatibility_report.validate_review has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 9, loops 3 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tasks/scripts/codex_compatibility_report.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce300727686445d418171f253a935f3d883fda8fa4ff68fafc99842426f143a"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::commands::gateway::gateway_status (cognitive 31): openshell_cli::commands::gateway::gateway_status has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (24 pts), match/switch 4 (7 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"262c199cfba700b5f2c51673d60c5bd5485ac11b77b3f18a5edb71bc05c458d9"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_core::forward::find_proxy_command_match (cognitive 31): openshell_core::forward::find_proxy_command_match has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (25 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/forward.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe037a8199aa28d3e91b143c92bf555376a26bfc661e29cef93967e7b934e86"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::provider_refresh::refresh_provider_credential_locked (cognitive 31): openshell_server::provider_refresh::refresh_provider_credential_locked has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (22 pts), match/switch 5 (8 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/provider_refresh.rs"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"999a4c46f94a4a47e25d75f88db85e86d72fe0cd74dfedfefc2ef9c9ccc3dc33"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::http_response::parse_response_head_for_middleware (cognitive 31): openshell_supervisor_network::l7::rest::http_response::parse_response_head_for_middleware has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 5 (9 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"70fee736c26fcbaba1315d02fff29c3b39ce6692795a2a562e83a0c3bde60f36"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::proxy::preauthorize_transparent_open (cognitive 31): openshell_supervisor_network::proxy::preauthorize_transparent_open has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (16 pts), match/switch 8 (13 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0f44f8d26c8f8e380040f59247990fceb1a27980ed127dcad3a5c1a0bc9ce2"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::proxy::destination::filter_resolved_addresses (cognitive 31): openshell_supervisor_network::proxy::destination::filter_resolved_addresses has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (26 pts), match/switch 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy/destination.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3d602f8b1dd050d5fa18192ab47debdf0142612f0fc17589e2834b2250cb2b"}},{"ruleId":"D2","level":"warning","message":{"text":"PodmanComputeDriver::create_sandbox (cognitive 30): PodmanComputeDriver::create_sandbox has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18 (20 pts), match/switch 7, loops 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/driver.rs"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"650a8cc266da5d021bb174ddd3cf6f6d1ec950e1fb5d1283402b85b4321d73cb"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::policy::build_provider_environment_snapshot_from_inputs (cognitive 30): openshell_server::grpc::policy::build_provider_environment_snapshot_from_inputs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 5 (10 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":3914}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e13e7374431211f7ab105d2264d034aec3d334f6ab6b11f9efb5a44ece679f"}},{"ruleId":"D2","level":"warning","message":{"text":"SupervisorHostController::run_session (cognitive 30): SupervisorHostController::run_session has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (22 pts), match/switch 2 (5 pts), boolean chains 2, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-control/src/controller.rs"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ff16e9002b1548dc534d1662cdb818b8f29ad7034e72540c92939300e310e8"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_vfio::reconcile::reconcile_stale_bindings (cognitive 30): openshell_vfio::reconcile::reconcile_stale_bindings has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (23 pts), match/switch 3 (5 pts), boolean chains 1, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-vfio/src/reconcile.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"0822dd8616320d30f8f14d168893276330c94730870d2ddb2b4b1251063fbd1b"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_driver_kubernetes::driver::spawn_namespace_file_watcher (cognitive 29): openshell_driver_kubernetes::driver::spawn_namespace_file_watcher has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 5 (8 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":8540}}}],"partialFingerprints":{"codehealthFindingId/v1":"9762a91ed16a9db8b10c116cf537818695c1bc36a71b84546564c918a7f398e0"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::mutation_replay::execute_owned (cognitive 29): openshell_server::grpc::mutation_replay::execute_owned has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (20 pts), match/switch 2 (6 pts), boolean chains 2, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/mutation_replay.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cddbbc4310f6983ea099249b07204b6b75fd33d3c23e02c0519047579072399"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::policy::provisioning_clock::configuration_change (cognitive 29): openshell_server::grpc::policy::provisioning_clock::configuration_change has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy/provisioning_clock.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a97961d1dcf232b30b3887d3b5d28893a21a71cd0aa448176ca758f494dd3ef"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_control::credential::deliver_credentials (cognitive 29): openshell_supervisor_control::credential::deliver_credentials has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (17 pts), match/switch 2 (6 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-control/src/credential.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaee15eb707eca4b10586a3c0fa4a975d9a5c13bf4dbd0cd3e67cf693ef5b317"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_driver_podman::watcher::start_watch (cognitive 28): openshell_driver_podman::watcher::start_watch has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (19 pts), match/switch 2 (5 pts), boolean chains 2, loops 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/watcher.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"49001a33586c660af4be6b700242a6a769084ba4674f418cb1265707ca5072a5"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityAggregator::run (cognitive 28): ActivityAggregator::run has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (23 pts), loops 2, match/switch 1 (2 pts), boolean chains 1 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/activity_aggregator.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b7fcc95db4d791c2d8eb7a42016993dd1b89937904e32eb0498d167b49803e"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::policy::policy_static_credential_endpoint_bindings (cognitive 28): openshell_server::grpc::policy::policy_static_credential_endpoint_bindings has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 4 (7 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":2145}}}],"partialFingerprints":{"codehealthFindingId/v1":"4650781396e6cd13cfac36c8e37180e8d20bccb3e55ca4bee56f49ce6bc3af0c"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::policy::handle_report_sandbox_configuration (cognitive 28): openshell_server::grpc::policy::handle_report_sandbox_configuration has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":5029}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e32a5c6f2b45bbebfd6e75b40dcd362a22ac44af090389d1ee880a9c30a87bd"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityAggregator::run (cognitive 28): ActivityAggregator::run has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (23 pts), loops 2, match/switch 1 (2 pts), boolean chains 1 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/activity_aggregator.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e637d03c5555681f9b2eaecbac46be00845c2ca3621e982538ddbc647c031e"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_bootstrap::metadata::list_gateways_with_source (cognitive 27): openshell_bootstrap::metadata::list_gateways_with_source has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 2 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-bootstrap/src/metadata.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"a202ac3b934d36e1cbe0f516c0f8a06e1553b448022b9921ddd490814811c6e3"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::run::sandbox_list (cognitive 27): openshell_cli::run::sandbox_list has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (19 pts), loops 3 (5 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":2855}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b1de8ddf84a6a8a762a2db6507cb582d62accb36efbcaed4d7572132f38ab0"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::ssh::sandbox_connect_supervised (cognitive 27): openshell_cli::ssh::sandbox_connect_supervised has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 3 (7 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/ssh.rs"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0bda3797b86d856ad184d64230ac2dc863f0ce03dbd3eac272a6e3839e46cb"}},{"ruleId":"D2","level":"warning","message":{"text":"KubernetesComputeDriver::start_sandbox_runtime_generation (cognitive 27): KubernetesComputeDriver::start_sandbox_runtime_generation has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 4 (8 pts), boolean chains 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":3794}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd296eee893c5a379cc11e7fa92a6ea58fd99b14b06cd89f84b083d5b65e34de"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_driver_mxc::driver::run_lifecycle (cognitive 27): openshell_driver_mxc::driver::run_lifecycle has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 6 (11 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/driver.rs"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8bdcc9c24d0525df94e325ea57a659d3c72ec424f3ac513e3e21152f0b7bc8"}},{"ruleId":"D2","level":"warning","message":{"text":"ReachabilityModel::encode_l7_enforcement (cognitive 27): ReachabilityModel::encode_l7_enforcement has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 3 (6 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-prover/src/model.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f16ed5f2585d79d3cac509b0e3f1666982049d8bf977e9b2d63bca617f62e80"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_sandbox_backend::sandbox_auth::plan_attach (cognitive 27): openshell_sandbox_backend::sandbox_auth::plan_attach has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox-backend/src/sandbox_auth.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a25f12070c3dc378f9af2909eeb13a53552a38805f7434ea08d73aa41e78af4"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::policy::generate_security_notes (cognitive 27): openshell_server::grpc::policy::generate_security_notes has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":7110}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2eb16e40f5156f23299890db9fe35b995691196ddcb68cdc050d6f6678bedb7"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::provider_readiness::evaluate_status (cognitive 27): openshell_server::grpc::provider_readiness::evaluate_status has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider_readiness.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"009bfd3bedeb2d336fd76439b3736375c222a60443fc12313ce5ffec1625b139"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::supervisor_session::open_routed_relay_with_message (cognitive 27): openshell_server::supervisor_session::open_routed_relay_with_message has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (19 pts), match/switch 2 (6 pts), boolean chains 1, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_session.rs"},"region":{"startLine":1695}}}],"partialFingerprints":{"codehealthFindingId/v1":"80573f1abb4b3cf3b793d86932ba06c0445060c98b25bca1e48b9232ad93d11c"}},{"ruleId":"D2","level":"warning","message":{"text":"PolicyDnsRuntime::start (cognitive 27): PolicyDnsRuntime::start has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 4 (5 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/policy_dns/runtime.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1858d81cde5e66422b9a240bf03071bb243a833f51651d14895658062ba02f"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::opa::resolve_binary_in_container (cognitive 27): openshell_supervisor_network::opa::resolve_binary_in_container has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (18 pts), match/switch 3 (6 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"4183e9ea028bd21ab5c333dea43ad3745771c32d484a29bccdb91c5a649af443"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_global_settings_key (cognitive 27): App::handle_global_settings_key has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (19 pts), match/switch 2 (5 pts), boolean chains 3 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"885ff056d34054852ed4e6f941f1bcb9aa5f88e64a606b9d6343b8c1896943dc"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::commands::provider::auto_create_provider (cognitive 26): openshell_cli::commands::provider::auto_create_provider has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (19 pts), match/switch 2 (4 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99dbe220b1e2cf4b222b93ba125351ca1c5ca13b75062f302001163ed023bf1"}},{"ruleId":"D2","level":"warning","message":{"text":"ComputeRuntime::create_sandbox_with_runtime_inputs_and_guards (cognitive 26): ComputeRuntime::create_sandbox_with_runtime_inputs_and_guards has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17, match/switch 4 (6 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"186d81e40b981851aaa57921c9424eafea3c30840de0df5125f19ec81a55746d"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::auth::oidc::parse_jwk (cognitive 26): openshell_server::auth::oidc::parse_jwk has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 5, match/switch 3 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/auth/oidc.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1dbe44e394257859dfa9316fc1ecf0abfbd5c5e2dcf56ad8be25471e7e82cc3"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::workspace::handle_delete_workspace (cognitive 26): openshell_server::grpc::workspace::handle_delete_workspace has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (23 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/workspace.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"0add318b5cf64fe5723ef7317a6fe3727326f9e5b9768a529ac248d599e09c34"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::provider_refresh::refresh_states (cognitive 26): openshell_server::provider_refresh::refresh_states has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/provider_refresh.rs"},"region":{"startLine":2314}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2054619608b3aa679e6844e3202d904bc0dfb05d9092cdf75f8f263dd9097c4"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigRuntime::apply_delivered_sandbox (cognitive 26): ConfigRuntime::apply_delivered_sandbox has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (20 pts), match/switch 3 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/config_runtime.rs"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3078a9f2e77c337b28022f326e44d6e0900a23d0d2e27e97e831db4a38e47e2"}},{"ruleId":"D2","level":"warning","message":{"text":"SshHandler::start_exec_spec (cognitive 26): SshHandler::start_exec_spec has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (17 pts), match/switch 4 (6 pts), loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/ssh.rs"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"628ccffe6d686be7fdc7554c546f1e0552e2f08dd2f814ae103eb5bb994bd055"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_create_form_key (cognitive 26): App::handle_create_form_key has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 5 (15 pts), if/else 3 (10 pts), boolean chains 1 (nesting depth added 17). 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":"crates/openshell-tui/src/app.rs"},"region":{"startLine":2351}}}],"partialFingerprints":{"codehealthFindingId/v1":"378ae1def64db4ec0a836893ca9c40b49f8dc2ceea3ecf3f8008f9e707361c29"}},{"ruleId":"D2","level":"warning","message":{"text":"App::provider_detail_from_provider (cognitive 26): App::provider_detail_from_provider has cognitive complexity 26 (threshold 15). Drivers by points: if/else 23 (25 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":3294}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac2ccd6940c26ceed030111de85a46696f42a5db219509f954e3bca9b619c0a"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_tui::ui::sandbox_draft::draw_detail_popup (cognitive 26): openshell_tui::ui::sandbox_draft::draw_detail_popup has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (14 pts), loops 4 (9 pts), match/switch 2 (3 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/sandbox_draft.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"095558e9c2f31cf49eec19587c58d7b03b11a3606dd419e491007a86e28238f9"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_vfio::gpu::prepare_gpu_for_passthrough (cognitive 26): openshell_vfio::gpu::prepare_gpu_for_passthrough has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 3 (6 pts), match/switch 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-vfio/src/gpu.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2c6820e1a47056be681c9a6df98afe6d2d68248daaa2fecce462a59ecd76d2"}},{"ruleId":"D2","level":"warning","message":{"text":"update_license_headers.main (cognitive 26): update_license_headers.main has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (18 pts), error handling 1 (3 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/update_license_headers.py"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae6295a369d651711ba8f9371d9e370bddc11c4aaf99371e2cf45e093e945c1"}},{"ruleId":"D2","level":"warning","message":{"text":"converter.ProviderProfileFromProto (cognitive 26): converter.ProviderProfileFromProto has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 4 (8 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/internal/converter/profile.go"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e688d897f5c341d6e19fe063db389b30cc2eeb459b95ac41fc014fd02a0ae7"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_driver_kubernetes::driver::cluster_wide_watch_stream (cognitive 25): openshell_driver_kubernetes::driver::cluster_wide_watch_stream has cognitive complexity 25 (threshold 15). Drivers by points: if/else 4 (18 pts), match/switch 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":5716}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26b41b945db231b16c4cada1b562ecce194dc92954aadf44197d11a9c80c156"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderTypeProfile::validate_before_lowering (cognitive 25): ProviderTypeProfile::validate_before_lowering has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed953844a6271ba0332b44957afa1dcf6cc82eb87123c827ae430a9c61e923a"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_sandbox::linux::proc_fd::installed_socket_inodes_excluding (cognitive 25): openshell_sandbox::linux::proc_fd::installed_socket_inodes_excluding has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/linux/proc_fd.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbfc784b3ff46643ce8a12c814d86aaff6a428fd95bd24747dc3740c32380fe"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::compute::derive_phase (cognitive 25): openshell_server::compute::derive_phase has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":7812}}}],"partialFingerprints":{"codehealthFindingId/v1":"c404954326c147def1812c8649800186ffdcbfee2178bf5ff84cd2da9bf43f71"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::supervisor_session::run_session_loop (cognitive 25): openshell_server::supervisor_session::run_session_loop has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (18 pts), match/switch 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_session.rs"},"region":{"startLine":2902}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48ae0529e34ff70e75c0528804f791caaf42b8d160fc14000d0167a7dbf0e46"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor::main (cognitive 25): openshell_supervisor::main has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20 (22 pts), boolean chains 2, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/main.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dabe8cbf998b25762f92c9c9795d968d15ef4f460be3ea4c6eb332260e5d16e"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::path::percent_decode_with_sentinel (cognitive 25): openshell_supervisor_network::l7::path::percent_decode_with_sentinel has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 3, match/switch 1 (3 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/path.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"172ec5c26469ce5bca583c07cdf482a4f63b2fbbe5cec066c82399174bf8a7c5"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::relay::handle_upgrade (cognitive 25): openshell_supervisor_network::l7::relay::handle_upgrade has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (20 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1790}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceac62d69da3e427ef8c576a7c1aca409955431a5fa63b507ab76f731521bcb8"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::parse_body_length (cognitive 25): openshell_supervisor_network::l7::rest::parse_body_length has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":3130}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c274c2941dad82ead1b0278bad6a6938e8e10a555a2ad3130417efec410bc44"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::opa::normalize_l7_config_aliases (cognitive 25): openshell_supervisor_network::opa::normalize_l7_config_aliases has cognitive complexity 25 (threshold 15). Drivers by points: loops 4 (11 pts), if/else 4 (9 pts), match/switch 1 (4 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":1827}}}],"partialFingerprints":{"codehealthFindingId/v1":"12117b00821b11b3891ccdd37896aa14198e678b92473cc197716dd4ad64333f"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::proxy::rewrite_forward_request (cognitive 25): openshell_supervisor_network::proxy::rewrite_forward_request has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 2, match/switch 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":5006}}}],"partialFingerprints":{"codehealthFindingId/v1":"935d3f327d44caf046732ffaa92a5fc095a046765d31cca5f819c2eca67f6f2d"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_sandbox_settings_key (cognitive 25): App::handle_sandbox_settings_key has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (20 pts), match/switch 2 (5 pts) (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":1776}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22378b97239cc9e15731ec4474d83feb916c337eb247a20ba23455f0f58bf2f"}},{"ruleId":"D2","level":"warning","message":{"text":"update_license_headers.discover_files (cognitive 25): update_license_headers.discover_files has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/update_license_headers.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb49b3e97f067379bffaa10565d94f2ffd7a38a214b16d4541001223272f7c0"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshableAuth.GetRequestMetadata (cognitive 25): refreshableAuth.GetRequestMetadata has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 3, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/auth_refresh.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92b86ea306853dc03f6e2e13d9250b9967a3590c623eb61f6f297bd57b8283c"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::ssh::upload::transfer (cognitive 24): openshell_cli::ssh::upload::transfer has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 3 (7 pts), loops 3 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/ssh/upload.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"525caf001e39d82639ee9f178f9d097fd4a27a1b8645a395a328485c046af7da"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_crypto::pki::issuer::issuer_from_der (cognitive 24): openshell_crypto::pki::issuer::issuer_from_der has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 3 (4 pts), match/switch 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-crypto/src/pki/issuer.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0af5b55833657b38297bcc36f1b2403d6b1caf0cbc2de69351a37417549731"}},{"ruleId":"D2","level":"warning","message":{"text":"KubernetesComputeConfig::validate_workspace_mode (cognitive 24): KubernetesComputeConfig::validate_workspace_mode has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 4, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/config.rs"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08b7acebcdfe6e3fc4fad068f00a7c40d2e70a9edf966214edca47b870cb9a8"}},{"ruleId":"D2","level":"warning","message":{"text":"KubernetesComputeDriver::validate_capability_free_workload_pod (cognitive 24): KubernetesComputeDriver::validate_capability_free_workload_pod has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14, boolean chains 10. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":2697}}}],"partialFingerprints":{"codehealthFindingId/v1":"6908c71b96b6cc01f0fe619920e3328d27dd915047521da8e0a7ed03d7321b32"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_policy::l7_validate::validate_l7_endpoint_semantics (cognitive 24): openshell_policy::l7_validate::validate_l7_endpoint_semantics has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 11 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/l7_validate.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"f541f3de4c3476c3e5dc45a291716e915cb749febcce6958f11834fe9a7fd019"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_prover::containment::path_glob_regex (cognitive 24): openshell_prover::containment::path_glob_regex has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 3 (7 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-prover/src/containment.rs"},"region":{"startLine":2185}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93dff55cadab5186aa734121e955956d0c11b06676797286b8c830183ee5444"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_prover::queries::check_credential_safety (cognitive 24): openshell_prover::queries::check_credential_safety has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (6 pts), match/switch 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-prover/src/queries.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6c0281d9c5b0f8aea96cc89da7896b83c67ea83d2803b9443a327c9c341055"}},{"ruleId":"D2","level":"warning","message":{"text":"ComputeRuntime::watch_loop (cognitive 24): ComputeRuntime::watch_loop has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 5 (14 pts), if/else 2 (7 pts), loops 2 (3 pts) (nesting depth added 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. 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":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":4692}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a59b11473cb3124a0bc4af990a9c6ff3c7ff0c7791abce4a563fedad3fa44f3"}},{"ruleId":"D2","level":"warning","message":{"text":"ComputeRuntime::report_main_process_exit (cognitive 24): ComputeRuntime::report_main_process_exit has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 5 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":5822}}}],"partialFingerprints":{"codehealthFindingId/v1":"c77d9c7ff4ba6c87011294ee2f0a6684e360f06f7de3a2e6aad7b9b9029b3267"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthGrpcRouter::call (cognitive 24): AuthGrpcRouter::call has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (14 pts), match/switch 4 (10 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/multiplex.rs"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"74835a4be5098d2dfd1dc1f6e403f7e938c92401b3401f624dcbd68ecdf81741"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::compute::apply_driver_snapshot (cognitive 24): openshell_server::compute::apply_driver_snapshot has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 7, loops 1 (2 pts), match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":7323}}}],"partialFingerprints":{"codehealthFindingId/v1":"17617be416f00cae73881543415bb35732b2c782198e5d0ed3c7a8d2b7b0c988"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::config_delivery::task::run (cognitive 24): openshell_server::config_delivery::task::run has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (10 pts), match/switch 3 (9 pts), loops 3 (5 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/config_delivery/task.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"800122d930e68b46031412d771c5033ad1e8252080450d93f5c290911b16c6e1"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::supervisor_session::handle_relay_stream_inner (cognitive 24): openshell_server::supervisor_session::handle_relay_stream_inner has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 3 (5 pts), loops 2, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_session.rs"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa9160ccecae21afe6882369d27798f7ac5632896a5839b59a19ebabec2c5f4"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::relay_chunked (cognitive 24): openshell_supervisor_network::l7::rest::relay_chunked has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (20 pts), loops 2 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":3224}}}],"partialFingerprints":{"codehealthFindingId/v1":"7192b0bfca001064545cc922bab43a5a38a320bc1f61baacfb0356047a154bc5"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_tui::ui::dashboard::draw_gateway_list (cognitive 24): openshell_tui::ui::dashboard::draw_gateway_list has cognitive complexity 24 (threshold 15). Drivers by points: if/else 21 (22 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/dashboard.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"20cfe6f2317231905f6603c381fb58a86601046d9639e39eb787a6b2938d124a"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_tui::ui::sandbox_draft::wrap_value (cognitive 24): openshell_tui::ui::sandbox_draft::wrap_value has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 2 (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":"crates/openshell-tui/src/ui/sandbox_draft.rs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f39c9fba43e0d8104de2d4871b7dcf253e6919bb03e94c4bc22280fcc10ac3"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_core::driver_utils::validate_upstream_proxy_settings (cognitive 23): openshell_core::driver_utils::validate_upstream_proxy_settings has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/driver_utils.rs"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"2186c3fe6cd2fad21f97e4814e9172d2a0a09c301d6caf8a1bf46454de369e7b"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_driver_podman::container::build_base_spec (cognitive 23): openshell_driver_podman::container::build_base_spec has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 2, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/container.rs"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14bb7fec0618d2c8af105e51bd44074cf3930aa20626ef9f26c98945ebf0b6e"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_sandbox::boundary_server::linux::run_routed_runtime_control (cognitive 23): openshell_sandbox::boundary_server::linux::run_routed_runtime_control has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 3 (8 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/boundary_server.rs"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9628602564374f4b805ecb45803e14a170f70c55a34929d539eea739b4254ee"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::auth::sandbox_session::advance_identity_for_takeover (cognitive 23): openshell_server::auth::sandbox_session::advance_identity_for_takeover has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (20 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/auth/sandbox_session.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"95289816c9f9ec76902336e9ff2e4a64479a83ca21132597ab4ba4ad0c58c2a9"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::provider::update_provider_record_validating (cognitive 23): openshell_server::grpc::provider::update_provider_record_validating has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (15 pts), loops 4 (5 pts), boolean chains 2, match/switch 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fffe929d1d30ee4db8e86c8c044cec227701aa9d87612536826c66986ecfb3a"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_middleware::headers::apply (cognitive 23): openshell_supervisor_middleware::headers::apply has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/headers.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"516d50172e5fd612bd4be5dd846122fb35a0daa897730185363a25153d862f1b"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::path::canonicalize_request_target (cognitive 23): openshell_supervisor_network::l7::path::canonicalize_request_target has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (16 pts), loops 3 (4 pts), boolean chains 2, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/path.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b16e85980d57ad2209d71b81bd58006e8370d7fd262d9c3e08c131a0c66a84"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::opa::normalize_endpoint_protocols (cognitive 23): openshell_supervisor_network::opa::normalize_endpoint_protocols has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 1 (4 pts), loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":1732}}}],"partialFingerprints":{"codehealthFindingId/v1":"6972931d68942cd9b03f9db42cf1e9277ebe68d969d103bd8d8beceb6c7872b0"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_process::supervisor_session::bridge_relay_bytes (cognitive 23): openshell_supervisor_process::supervisor_session::bridge_relay_bytes has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 2 (4 pts), loops 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/supervisor_session.rs"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fad6ee834642a7845e92b4be545ea99cde8c21c14c6c46ff6f49e677eef5acf"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_tui::start_port_forwards (cognitive 23): openshell_tui::start_port_forwards has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 5 (10 pts), if/else 3 (9 pts), loops 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":1530}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e35e3ce213ba180901136b058825014b1f527a04da9d9e1927d273ecdb4641"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_tui::ui::sandbox_draft::draw (cognitive 23): openshell_tui::ui::sandbox_draft::draw has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, match/switch 2 (4 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/sandbox_draft.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"1893722ac8fbd59cd182b6f18ad478a1557da726684f13912e5da45ae5b5125e"}},{"ruleId":"D2","level":"warning","message":{"text":"fake.copySandboxPolicy (cognitive 23): fake.copySandboxPolicy has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 3 (8 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/sandbox.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb87f2e24ab5af9b62e1790d9c6fc4d3ac46b93f1db5bd20afa2ec59af484613"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxClient.watchLogs (cognitive 23): SandboxClient.watchLogs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 2 (5 pts), error handling 2 (3 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf5b0cf8b176510d6bc9ab8aba98f9d2370561f864d1936e305e3bcd09e5c6b"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenShellRunner::cleanup (cognitive 22): OpenShellRunner::cleanup has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (9 pts), match/switch 3 (6 pts), boolean chains 4, loops 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-conformance/src/lib.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"26fdfea6111317897e1b53ff87323e3f73b16d29d4ebb0d99f1844be68173080"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_core::provider_credentials::compile_static_credential_bindings (cognitive 22): openshell_core::provider_credentials::compile_static_credential_bindings has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/provider_credentials.rs"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"be37f80aff5950d39c3c5eb9ac4a0db6bced5cb5510a47dbf3f4a6b8f817af01"}},{"ruleId":"D2","level":"warning","message":{"text":"LayerApplier::resolve_directory (cognitive 22): LayerApplier::resolve_directory has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/layer_applier.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"095824217d62dfc3c77c073f97a55aac21173e0bb93a759fef5fd57c687fed3f"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_prover::accepted_risks::apply_accepted_risks (cognitive 22): openshell_prover::accepted_risks::apply_accepted_risks has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 3 (6 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-prover/src/accepted_risks.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9fa0e142e83f07f961b9c0b6db2256b6138237766215f7e8e0c96ad911556d"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_providers::discovery::discover_from_profile (cognitive 22): openshell_providers::discovery::discover_from_profile has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/discovery.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1b129c3168c808cafce05d38d6a511562e3bcb846e14e5ca9cc309378c3ae3"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalBoundaryExec::command (cognitive 22): LocalBoundaryExec::command has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 4 (5 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/boundary_exec.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"580074d8c7764a17c7c27229f204bfdbbf4063e5f0aadb9ac84baf1c916dd13d"}},{"ruleId":"D2","level":"warning","message":{"text":"ComputeRuntime::reconcile_provisioning_deadlines (cognitive 22): ComputeRuntime::reconcile_provisioning_deadlines has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/provisioning_deadline.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f54626a6f02d3d113fce9e83f9c41bffc20bd03a91980dea11845bc9f2f57e"}},{"ruleId":"D2","level":"warning","message":{"text":"CredentialRuntime::resolve_provider_handles (cognitive 22): CredentialRuntime::resolve_provider_handles has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 4 (6 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/credentials.rs"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5daf884267f2393626dafd45d44b406321f78fad881d580d616ca32437cd2c0"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::provider::create_provider_record_validating (cognitive 22): openshell_server::grpc::provider::create_provider_record_validating has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 3, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"0348d57348134ba08e845ee823baeb53bb29efb1b534eec7eee1a70a038d6414"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::validate_matcher_value (cognitive 22): openshell_supervisor_network::l7::validate_matcher_value has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/mod.rs"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"687996c6aec2b684cee55410797b466aaf8f71fa71cc9c3f8325f473afa90b29"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::procfs::collect_descendant_pids_with_depth (cognitive 22): openshell_supervisor_network::procfs::collect_descendant_pids_with_depth has cognitive complexity 22 (threshold 15). Drivers by points: if/else 3 (12 pts), loops 3 (9 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/procfs.rs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1251cad2a6bf5733772241ccdcf9c9f3d086ed843e304cf75b9d8c95f52a491"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_tui::ui::draw_nav_bar (cognitive 22): openshell_tui::ui::draw_nav_bar has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 4 (8 pts) (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/mod.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f30dab0444e77963c0127043d59ba0db4a3f1872de33380bdc25235c5c91892"}},{"ruleId":"D2","level":"warning","message":{"text":"verify-python-wheel.verify_wheel (cognitive 22): verify-python-wheel.verify_wheel has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tasks/scripts/verify-python-wheel.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf20619bcc9a33e81ea164ad57da5c6cd68ead90a530dc8d615ab920e034e59"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::commands::provider::provider_list (cognitive 21): openshell_cli::commands::provider::provider_list has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (18 pts), loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":1495}}}],"partialFingerprints":{"codehealthFindingId/v1":"211f45e4adc0bb9d0d60cdc9d0af7f9318f5d00643b33b3e5a36821998871162"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::commands::provider::provider_update (cognitive 21): openshell_cli::commands::provider::provider_update has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5, loops 2 (4 pts), match/switch 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":2739}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ce9f50c7e4f2e2d9b6a8b97d85e00cd876875217eeb72d61dc6532ae572900"}},{"ruleId":"D2","level":"warning","message":{"text":"DockerComputeDriver::current_snapshots (cognitive 21): DockerComputeDriver::current_snapshots has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (12 pts), match/switch 2 (7 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a9201a0639285b37dbc4826cb6ee107685765513d286e8a4676328f7e3ac69"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_driver_kubernetes::driver::apply_workspace_persistence (cognitive 21): openshell_driver_kubernetes::driver::apply_workspace_persistence has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":7192}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7b240b8992d27387019b451f0f768c66fb3d64d845b41d257fe5a0384d012c"}},{"ruleId":"D2","level":"warning","message":{"text":"VmDriver::restore_persisted_sandboxes (cognitive 21): VmDriver::restore_persisted_sandboxes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 5 (10 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":2234}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2db2bcf591b30332aae3573ab8fa20f20f56ac16c56377377af91ca030332f"}},{"ruleId":"D2","level":"warning","message":{"text":"OcsfJsonlLayer::on_event (cognitive 21): OcsfJsonlLayer::on_event has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 2 (6 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-ocsf/src/tracing_layers/jsonl_layer.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"385759d7c54511a4e521c52fa611647019ef5f9529087ffd15342bbac79ad319"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_policy::ambiguity::token_languages_overlap (cognitive 21): openshell_policy::ambiguity::token_languages_overlap has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/ambiguity.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd831ad1895a74de343fd18117dd22488ca3ec29b720e2f3b9ebdcafb4ffcfcb"}},{"ruleId":"D2","level":"warning","message":{"text":"DenialAggregator::run (cognitive 21): DenialAggregator::run has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (17 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/denial_aggregator.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a288d0e7a8c66d5c5248a2677d80b2a1db7ba516538c1193cdad3b20fc9620"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_sandbox::boundary_server::linux::bridge_grpc_server_stream (cognitive 21): openshell_sandbox::boundary_server::linux::bridge_grpc_server_stream has cognitive complexity 21 (threshold 15). Drivers by points: if/else 3 (10 pts), match/switch 5 (9 pts), loops 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/boundary_server.rs"},"region":{"startLine":1756}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c9c9506d042e7e2b0acac0b9b3cb9dc3403eebb16b31ebdb3e2f77861ee462"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::cli::validate_preflight_semantics (cognitive 21): openshell_server::cli::validate_preflight_semantics has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 9, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/cli.rs"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"294d9afb0d14ffd2d86fbffb495e36db67b7a92298419d0913839dd5aa156fa8"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::policy::endpoint_status::handle_report_endpoint_status_inner (cognitive 21): openshell_server::grpc::policy::endpoint_status::handle_report_endpoint_status_inner has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy/endpoint_status.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"400a9a2ab07b76e6f759d2da5e4b554b9b298186fca8e26f923a2002c133f4f5"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::service_routing::proxy_to_endpoint (cognitive 21): openshell_server::service_routing::proxy_to_endpoint has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (13 pts), match/switch 5 (6 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/service_routing.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"027b9ec3d004e547fff6d89cd433b45b37bde2a3701b952b3f297c162d676fb4"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::supervisor_session::accept_supervisor_session (cognitive 21): openshell_server::supervisor_session::accept_supervisor_session has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_session.rs"},"region":{"startLine":2224}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a64a2cb87b54457ec150a91ca6eb78e28b7b5e7aa6d7344bf169c5eeb63891"}},{"ruleId":"D2","level":"warning","message":{"text":"DenialAggregator::run (cognitive 21): DenialAggregator::run has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (17 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/denial_aggregator.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5a89e92686abfdf69072d86a859c6416b188caa949506e969340764303e121"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor::sandbox_instance_host::run_hosted_sandbox_instance (cognitive 21): openshell_supervisor::sandbox_instance_host::run_hosted_sandbox_instance has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (13 pts), match/switch 3 (4 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/sandbox_instance_host.rs"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa2bde4fa032806b7ef30fa7c1c6caf89336c1c7e80c61fdd3c7fb44e9d2da8"}},{"ruleId":"D2","level":"warning","message":{"text":"PolicyDnsService::answer_query (cognitive 21): PolicyDnsService::answer_query has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 2 (3 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/policy_dns/mod.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d489e3e16577cc71e876c437ae8e639bfa660ff87068d37b09ce495e1814b5"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_process::supervisor_session::run_single_session (cognitive 21): openshell_supervisor_process::supervisor_session::run_single_session has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 3 (6 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/supervisor_session.rs"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"64cfc537f93f5865c4d3ced128d2b60b35d4337a1350794b0fe5a11eb46fd576"}},{"ruleId":"D2","level":"warning","message":{"text":"converter.policyNetworkEndpointFromProto (cognitive 21): converter.policyNetworkEndpointFromProto has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 3 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/internal/converter/network_policy.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f37df9352a547a043c3185897cb47ac3d331807cfd0a0bc8fc662423503f4d"}},{"ruleId":"D2","level":"warning","message":{"text":"oidc.exchangeClientCredentials (cognitive 21): oidc.exchangeClientCredentials has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/oidc/credentials.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c161054a10c18b49cb0577a91301c0216b2b3ac533c13f013d07fd6d48cb0059"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::completers::completion_grpc_client (cognitive 20): openshell_cli::completers::completion_grpc_client has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 2 (7 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/completers.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"988660d84f8fde7bcac22c02d69ddec7e5ed74b207d7323f190c22a80597cffa"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_driver_kubernetes::driver::sandbox_template_to_k8s_with_validated_config (cognitive 20): openshell_driver_kubernetes::driver::sandbox_template_to_k8s_with_validated_config has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17 (19 pts), match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":7532}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00e8544071e6d3df088c0ebd48b81a8085f018ec29f92eaa464f25b3a6ea671"}},{"ruleId":"D2","level":"warning","message":{"text":"LayerApplier::merge_directory (cognitive 20): LayerApplier::merge_directory has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/layer_applier.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef36d0b7d06ead52ab42aa03b0291a4db6f359652cbe0f0d81a1f9b1d187982b"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_driver_vm::runtime::run_libkrun_vm (cognitive 20): openshell_driver_vm::runtime::run_libkrun_vm has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (14 pts), match/switch 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/runtime.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"814c41669a5a61553bed03498e821ddcebfa8219f0ad9f42b9c68aabd247d97e"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_policy::collect_mcp_endpoint_violations (cognitive 20): openshell_policy::collect_mcp_endpoint_violations has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/lib.rs"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"930586d85b772a7e4f0c3fb15f6b2006e861229f5d942d0ca5ca53355d0a622e"}},{"ruleId":"D2","level":"warning","message":{"text":"ComputeRuntime::recover_failed_lifecycle (cognitive 20): ComputeRuntime::recover_failed_lifecycle has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 8, 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":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":2841}}}],"partialFingerprints":{"codehealthFindingId/v1":"874f11a4567bb610b5aca04774305a9d504d4fc79dd4848f1af5c4ba645230c1"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderReadinessEvidence::accept (cognitive 20): ProviderReadinessEvidence::accept has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider_readiness.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4366260f282bd768a2ab42ccbaea749655b754722c803b17b04aa5ec36a98b"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::policy::endpoint_status::validate_endpoint_snapshot (cognitive 20): openshell_server::grpc::policy::endpoint_status::validate_endpoint_snapshot has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy/endpoint_status.rs"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b3e457f07c6cac30345e1826ffc5d52e142c372eddd6c3bfdef3e4bd4befae"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::sandbox::handle_create_sandbox_inner (cognitive 20): openshell_server::grpc::sandbox::handle_create_sandbox_inner has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (16 pts), loops 2, match/switch 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0402e5a22064dd320a2a45990931b7b5a7bb0d3b0f20ca87c60e26b2c9d2c3"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::sandbox::run_exec_with_russh (cognitive 20): openshell_server::grpc::sandbox::run_exec_with_russh has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (10 pts), match/switch 4 (9 pts), loops 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":4032}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64501b2fd1df24b2fdc366b96bbdab0064aa3f3926b46f6bd8df105c1d5cd05"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::supervisor_session::handle_connect_supervisor (cognitive 20): openshell_server::supervisor_session::handle_connect_supervisor has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 4 (7 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_session.rs"},"region":{"startLine":2509}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e826725d969dacd378734f83d73bd29a050d5741f7f39b2ab217fbc7a54652"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::middleware::middleware_events (cognitive 20): openshell_supervisor_network::l7::middleware::middleware_events has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 4, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/middleware.rs"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"68074f0bf877b60db7258a6cf9d6335e7f8f58f12939501ba030b4b9c4926d69"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::parse_http_request (cognitive 20): openshell_supervisor_network::l7::rest::parse_http_request has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 6, match/switch 2 (3 pts), loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf09039d0044bb1c08b1e531a0880dcd373081684071c7ff5734ea6a805a818"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::supported_permessage_deflate_offer (cognitive 20): openshell_supervisor_network::l7::rest::supported_permessage_deflate_offer has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":2532}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8a1dadfd953a75ced6a11fca0ea7a605a18ad4f2774df18e7eea0b87008e28"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::http_response::read_response_payload_with_deadline (cognitive 20): openshell_supervisor_network::l7::rest::http_response::read_response_payload_with_deadline has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"257c67a87318da5f6f70989414fcd91c764196be0e1a49d85aada3ec49029bb3"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_setting_edit_key (cognitive 20): App::handle_setting_edit_key has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (App::handle_sandbox_setting_edit_key) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":1568}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35c797a7bbc37654bf0130d7b184fae7d3c974101a672b6cf11dddbd78de193"}},{"ruleId":"D2","level":"warning","message":{"text":"App::handle_sandbox_setting_edit_key (cognitive 20): App::handle_sandbox_setting_edit_key has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (App::handle_setting_edit_key) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":1850}}}],"partialFingerprints":{"codehealthFindingId/v1":"414176e26a96aadf4dd47405bb50a29d15b85959681bb8398e1c4b938a05cc0b"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayError.__init__ (cognitive 20): GatewayError.__init__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, error handling 2 (4 pts), loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/openshell/errors.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1fd34a758a34ab6929cc807f32270509fa4b3fe2d6abb6774a4b0ce8bd323fd"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientCredentialsAuth._exchange (cognitive 20): ClientCredentialsAuth._exchange has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5, error handling 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/openshell/sandbox.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f55caf0dbdf9f90db6847a5550beb127a616bc18d0afdc3fa9ca360aba0125"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxClient.from_active_cluster (cognitive 20): SandboxClient.from_active_cluster has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 4 (7 pts), boolean chains 4, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/openshell/sandbox.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c80cc3bb3e3f434ffe8135c7b44c5c50f72ba0d314c5e56c367b882802d62cf"}},{"ruleId":"D2","level":"warning","message":{"text":"oidc.Login (cognitive 20): oidc.Login has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/oidc/oidc.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"707db0f131d343184ddd05acc3baa47b1554bd5dfe57e0948e393e912d7d8f63"}},{"ruleId":"D2","level":"warning","message":{"text":"tunnelListener.acceptAndBridge (cognitive 20): tunnelListener.acceptAndBridge has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/tcp_client.go"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab9557b4ccab161c76269a8dcc95a2992e98f23a40c21d5df41d9df164df901"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderClient.getCredentials (cognitive 20): ProviderClient.getCredentials has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 9, if/else 6, ternaries 4, error handling 1. Of this number, 18 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/providers.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c30b4c4ac3cd56546fe5cc0c4adf51860db7428ab614de50a903ed0cc8501b"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::run::sandbox_delete (cognitive 19): openshell_cli::run::sandbox_delete has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (6 pts), match/switch 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":3989}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05b964a58add1eb118f5fe3e2624b3774937edbb1a8fc12c27f7585a36ab848"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_core::rpc_error::decode_details (cognitive 19): openshell_core::rpc_error::decode_details has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (5 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/rpc_error.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d14f44309d86f57baedd2e3ec5bc6005227de14b0fa63f59445ac6d06865a76"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_policy_schema::yaml::reject_null_at_path (cognitive 19): openshell_policy_schema::yaml::reject_null_at_path has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 2 (6 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy-schema/src/yaml.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c3506183fd0a3a081c7e64d1c9547cbe67ecc5e2bcddca14201cf5391ef06e"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_sandbox::network_broker::classify_send (cognitive 19): openshell_sandbox::network_broker::classify_send has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4, match/switch 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/network_broker.rs"},"region":{"startLine":1389}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23c4d9d7b3f97876142a590830587269c78099a7ea4cbc8aa41188463f05218"}},{"ruleId":"D2","level":"warning","message":{"text":"JwksCache::refresh_keys (cognitive 19): JwksCache::refresh_keys has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/auth/oidc.rs"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb61e4d965bc51a9e51120251a23e40b5df5b91bf52782c124ff7619b7101e6"}},{"ruleId":"D2","level":"warning","message":{"text":"ComputeRuntime::restart_sandbox_runtime (cognitive 19): ComputeRuntime::restart_sandbox_runtime has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (13 pts), match/switch 3 (4 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":4808}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1854d877578d42ce6dd8ee612153bd89e90a26362834dbcb6137ccc0d8340b3"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::certgen::create_backend_ca_configmap_if_needed (cognitive 19): openshell_server::certgen::create_backend_ca_configmap_if_needed has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 1 (3 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/certgen.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c7e8266995cae0fc50656fca652b5b28c5fed372b933ddfd5e411e9003658f"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::validation::validate_label_key (cognitive 19): openshell_server::grpc::validation::validate_label_key has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/validation.rs"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"8014b1ef506bde0da2419a29fecfd0d398defd84dde84cc814241e4dc89fde41"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::persistence::legacy_time_wire::rewrite_legacy_field (cognitive 19): openshell_server::persistence::legacy_time_wire::rewrite_legacy_field has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 1, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/legacy_time_wire.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4359b4727e6daf6bde02f3b5db9d3e738b6b607a4f2eac2dc121d7e724885c6"}},{"ruleId":"D2","level":"warning","message":{"text":"SocketTrustedResolver::resolve (cognitive 19): SocketTrustedResolver::resolve has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/policy_dns/resolver.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"320b5c266efaf4d0c7bd8146e90d339fdc51c8d11c76e2e501e8e2b212af2d2f"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::validate_jsonrpc_rule_fields (cognitive 19): openshell_supervisor_network::l7::validate_jsonrpc_rule_fields has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/mod.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9686234e45d019e5d2f2a6d56d3992a446fb75f85af651cdb7142f53135f646"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::expand_access_presets (cognitive 19): openshell_supervisor_network::l7::expand_access_presets has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/mod.rs"},"region":{"startLine":1842}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f32050c67e8eb19d318596de40d31820af3f60a5efd7a2b599f6bf569a17fe8"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::graphql::collect_root_fields (cognitive 19): openshell_supervisor_network::l7::graphql::collect_root_fields has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/graphql.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0ab0e01d28de52282a068e50c897b370d2957e4a08927f8394fb7433d02651"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::validate_http_request_header_block (cognitive 19): openshell_supervisor_network::l7::rest::validate_http_request_header_block has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42bd425668f487ec8d26969e9fa3f6fa2949ee3b89c21c7e293d19ffcd695d0"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::http_response::relay_headers_only_response (cognitive 19): openshell_supervisor_network::l7::rest::http_response::relay_headers_only_response has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb66be64305bbaeffde37e005c40d4206097725bc9799ac091bdc3d125c3670"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_tui::fetch_providers (cognitive 19): openshell_tui::fetch_providers has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (5 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":2221}}}],"partialFingerprints":{"codehealthFindingId/v1":"2645e4345974c101b667696e64a639b366158fb6e3f296a02c409b80efef19e4"}},{"ruleId":"D2","level":"warning","message":{"text":"generate_third_party_notices.format_notices (cognitive 19): generate_third_party_notices.format_notices has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 3 (7 pts), ternaries 1 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate_third_party_notices.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85905d8fddf7384589f9d6ac8df2422815c3df676e915428498c655306cf790"}},{"ruleId":"D2","level":"warning","message":{"text":"oidc.resolveClientCredentialsConfig (cognitive 19): oidc.resolveClientCredentialsConfig has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/oidc/credentials.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb0056aab7c59bfb9cab3fab9938f868168f9cb9f48c6de4ff5bf08654bc39f"}},{"ruleId":"D2","level":"warning","message":{"text":"oidc.DeviceLogin (cognitive 19): oidc.DeviceLogin has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/oidc/device.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f818ba03abcff1640a40f4e6f8e778932da8e9060c3d0ad743a502d43f5588"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxClient.waitReady (cognitive 19): SandboxClient.waitReady has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d644a5cddb2b079442c004faadbe1b633b7da8612c888e091d8a22b4f700219"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::commands::provider::ensure_required_providers (cognitive 18): openshell_cli::commands::provider::ensure_required_providers has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a1fbe81a09c34dca18be6bb6234d940e324160284bf5a44967cebb76d8682c"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::apply_auth_with_status (cognitive 18): openshell_cli::apply_auth_with_status has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/main.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"244509949db29471ddc860d9352273c88bab6e4f3918a41cd2161df659125e1f"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::run::sandbox_draft_get (cognitive 18): openshell_cli::run::sandbox_draft_get has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":6723}}}],"partialFingerprints":{"codehealthFindingId/v1":"596e815160ec562c8e7d7407d76f1cd17d91a3f64a20b7130623de92e4e9b1f8"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_conformance::scenarios::policy_behavior::run_policy_local (cognitive 18): openshell_conformance::scenarios::policy_behavior::run_policy_local has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, match/switch 2 (5 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-conformance/src/scenarios/policy_behavior.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8908d209bf9ea7bfa3156ef6f0cab8a31bcf77325ee4ffc50bac20e83a10b1"}},{"ruleId":"D2","level":"warning","message":{"text":"SecretResolver::rewrite_text_placeholders (cognitive 18): SecretResolver::rewrite_text_placeholders has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/secrets.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"820dcaf6a556ab636da6c9bcfc31617578de82e3c8e570641f8b78bcc60d4017"}},{"ruleId":"D2","level":"warning","message":{"text":"KubernetesComputeDriver::delete_sandbox_inner (cognitive 18): KubernetesComputeDriver::delete_sandbox_inner has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 4 (8 pts), if/else 4 (7 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":4361}}}],"partialFingerprints":{"codehealthFindingId/v1":"93665ef463a4a5b815bb7f00b29b44cd31898c32a5114e056000e57ccade515c"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_driver_mxc::policy_map::map::report_endpoint_l7_losses (cognitive 18): openshell_driver_mxc::policy_map::map::report_endpoint_l7_losses has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (17 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/policy_map/map.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"719b1703a81c8f20ec71fa1510159d3175ac9da8e9ef20b6bccfd61b399ce744"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_driver_podman::container::build_env (cognitive 18): openshell_driver_podman::container::build_env has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (13 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/container.rs"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f886c0ec9dad332ae23783f0d8486f2b50be261faa081786f87a8f57d24a0c"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecutionPlan::load (cognitive 18): ExecutionPlan::load has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 4 (7 pts), loops 3 (6 pts), if/else 2 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-gateway-interceptors/src/plan.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"4732e6cd0d60bb5d77ebabe5396c8e251f2268eec305b27ce60252dc802d36f5"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_policy::merge::canonicalize_advisor_add_rule (cognitive 18): openshell_policy::merge::canonicalize_advisor_add_rule has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/merge.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"52893d8ef1fcc282f271e6453b89d0c97abd6c14bdd8552e59747187038fb1da"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_policy::merge::remove_endpoint (cognitive 18): openshell_policy::merge::remove_endpoint has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/merge.rs"},"region":{"startLine":2362}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1bd0040ced9469a8a97b6f187e545b2ca6490dd36af92c8a3f9c11680965fc1"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_prover::report::render_report (cognitive 18): openshell_prover::report::render_report has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), loops 5 (8 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-prover/src/report.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b5d1b6cf8695ff8fb57548876dcd0c3ec7499da2328ee93b55f31533ab1981"}},{"ruleId":"D2","level":"warning","message":{"text":"OutputLog::publish_lossless_with_timeout (cognitive 18): OutputLog::publish_lossless_with_timeout has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"744562b8873de53a32bc293fcf42fba704967965e992d19f4a7062675ab95808"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_sandbox::network_broker::start_dns_relay (cognitive 18): openshell_sandbox::network_broker::start_dns_relay has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/network_broker.rs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"2224a75ed974b3f0b99170e1adcdac82970ba10fad333e1f9eb0feef2e87d2e0"}},{"ruleId":"D2","level":"warning","message":{"text":"Store::update_message_cas (cognitive 18): Store::update_message_cas has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/mod.rs"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f1ed3bf8489d5d776a0abe0ee56ecf628fbeb1ef048d9eb095278d354f5910"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::auth::descriptor_authz::validate_entry (cognitive 18): openshell_server::auth::descriptor_authz::validate_entry has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 7 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/auth/descriptor_authz.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"24bdd5a930386d292c883791782d8ae753150df7021c2bf6cb27509bd8bfda4b"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::gateway_members::spawn_membership_worker (cognitive 18): openshell_server::gateway_members::spawn_membership_worker has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/gateway_members.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2454a5c9e0201f9d866698b8846144423287e719c2cc23e5f54e82dc42b9e60"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::policy::build_sandbox_config_snapshot_from_inputs (cognitive 18): openshell_server::grpc::policy::build_sandbox_config_snapshot_from_inputs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":2917}}}],"partialFingerprints":{"codehealthFindingId/v1":"e601428568e111ec318782272d5b434079542da46f6b6613a4f637ed1807ca2b"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::policy::provider_policy_context_from_records (cognitive 18): openshell_server::grpc::policy::provider_policy_context_from_records has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (6 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":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":3528}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eff4d3b2475898a6fdc5dddad7ed24ae86bccad14ff78e0ee8300eac91ee46d"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::sandbox::bridge_forward_tcp_stream (cognitive 18): openshell_server::grpc::sandbox::bridge_forward_tcp_stream has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (12 pts), match/switch 2 (4 pts), loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":3045}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e5b323e53a73fca5892d874cd53e9802e15c4ad3c9fcf8ba546e96ce5d98e9"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::sandbox_watch::spawn_store_poller (cognitive 18): openshell_server::sandbox_watch::spawn_store_poller has cognitive complexity 18 (threshold 15). Drivers by points: if/else 2 (7 pts), match/switch 2 (6 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/sandbox_watch.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"388e6161820ea98f3c215943837bc77e156da307c09c32b4f59b5676b29d681d"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::supervisor_session::spawn_peer_bridge (cognitive 18): openshell_server::supervisor_session::spawn_peer_bridge has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (12 pts), match/switch 2 (4 pts), loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (openshell_server::supervisor_session::spawn_peer_owner_bridge) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_session.rs"},"region":{"startLine":2065}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff2d42a13cdb04fbadbda2b534bc24e97088d5eb8d9f38fef79e7f6cc1fa507"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::supervisor_session::spawn_peer_owner_bridge (cognitive 18): openshell_server::supervisor_session::spawn_peer_owner_bridge has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (12 pts), match/switch 2 (4 pts), loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (openshell_server::supervisor_session::spawn_peer_bridge) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_session.rs"},"region":{"startLine":2126}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35c95c388b1f8b1c99f53d1d2294a1724c49e511533f7d6fca8a61640bbe3f7"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpResponseSession::process_units_from (cognitive 18): HttpResponseSession::process_units_from has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/response.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe63233b01f211e3f137d8c2bc13584c54ea729a3ec3f8f09b0faf22f986fbb"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::jsonrpc::parse_mcp_payload (cognitive 18): openshell_supervisor_network::l7::jsonrpc::parse_mcp_payload has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 6 (9 pts), if/else 4 (6 pts), boolean chains 2, loops 1 (nesting depth added 5). 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":"crates/openshell-supervisor-network/src/l7/jsonrpc.rs"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"573cf2511bcedde9b004d35ac0205a136d7a8219b0762fef7b35feb2f9a901ab"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::relay_chunked_with_marker_guard (cognitive 18): openshell_supervisor_network::l7::rest::relay_chunked_with_marker_guard has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 3 (6 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":1438}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce0d562c0c9d0049e048aac366cd030ac769fd81893f6823b0eb16a718d22cb"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::procfs::find_socket_inode_owners (cognitive 18): openshell_supervisor_network::procfs::find_socket_inode_owners has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/procfs.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ff89720813058f1249141a83480495a73554d381df3bc6eb481dbfcdbb06c1"}},{"ruleId":"D2","level":"warning","message":{"text":"SshHandler::data (cognitive 18): SshHandler::data has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 7 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/ssh.rs"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f62180f6aa906fabd6a06bc5420310bb7492ab2e0cad2dc0bc6dd00b6cd844"}},{"ruleId":"D2","level":"warning","message":{"text":"update_license_headers.process_file (cognitive 18): update_license_headers.process_file has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/update_license_headers.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"c766ef7a2be25dc4d7564baaf0950bf204a17d4008fffd7ae33dc1fdcb60ab6d"}},{"ruleId":"D2","level":"warning","message":{"text":"gateway.validateGatewayName (cognitive 18): gateway.validateGatewayName has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts), loops 1, match/switch 1 (nesting depth added 1). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/gateway/paths.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"39037fb77bccb02297bf43b51baaec5ff912214f8733ee936e4ea812828bfc44"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::run::sandbox_exec_grpc (cognitive 17): openshell_cli::run::sandbox_exec_grpc has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, match/switch 3 (5 pts), boolean chains 3, loops 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":1987}}}],"partialFingerprints":{"codehealthFindingId/v1":"04025e69afbedc4a74ac1c8dd2048f2bce3298bf8ce555d2879122707bed58bc"}},{"ruleId":"D2","level":"warning","message":{"text":"BodyCredentialClassifier::check (cognitive 17): BodyCredentialClassifier::check has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 8. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/secrets_body.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abcf8eb93683d64fd5492b732802a970bced873d0d4abe092ba8565db4c370e"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_core::secrets::percent_decode (cognitive 17): openshell_core::secrets::percent_decode has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/secrets.rs"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"becac1daa13424256b877b08c03c153517f58bd5846271aed5d27eef26a30ec3"}},{"ruleId":"D2","level":"warning","message":{"text":"DockerComputeDriver::provision_sandbox_inner (cognitive 17): DockerComputeDriver::provision_sandbox_inner has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 9, if/else 6 (8 pts) (nesting depth added 2). 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":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c22f33565d3502de1420f8e082dfa06062af41846510228c37058028a83f9b5"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_driver_docker::spawn_docker_control_process (cognitive 17): openshell_driver_docker::spawn_docker_control_process has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":5248}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b970dbd9b388c008b00017c2fcad147c89624abd0e5689086e615e9b857a7a6"}},{"ruleId":"D2","level":"warning","message":{"text":"LayerApplier::merge_directory (cognitive 17): LayerApplier::merge_directory has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/layer_applier.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae6528472f3e08e706ac7e0272f7290630d236a71d916693d1d611cb80b08d05"}},{"ruleId":"D2","level":"warning","message":{"text":"LayerApplier::resolve_path_beneath_rootfs (cognitive 17): LayerApplier::resolve_path_beneath_rootfs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (11 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/layer_applier.rs"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7f34c854eab05bb9260ade3c782f2e1affb40e03d2a657697fc9ce0bc95ecc"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_gateway_interceptors::plan::normalize_binding (cognitive 17): openshell_gateway_interceptors::plan::normalize_binding has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-gateway-interceptors/src/plan.rs"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ebb4fed9f8880aedf35ecf2f3db62421aee90efb684585c02416056d055c1f"}},{"ruleId":"D2","level":"warning","message":{"text":"ExportWorker::run (cognitive 17): ExportWorker::run has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 1 (3 pts), loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-otel/src/ocsf.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56f799c6c030fc9ad1786740f4a56f8cce80e6cf63a99122b36ca77ce524867"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_prover::containment::is_canonical_rest_path (cognitive 17): openshell_prover::containment::is_canonical_rest_path has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 5, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-prover/src/containment.rs"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf0c7b9fe965fcc596f9d8b6898b5e426ce028e4e33d7d3a8a844753282af9a"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_sandbox::boundary_server::linux::validate_config (cognitive 17): openshell_sandbox::boundary_server::linux::validate_config has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, loops 1, match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/boundary_server.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa71c25034651e4b72e6bf78365ce80f69e181059fe23cbe609156ec1fa2248b"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_sandbox_backend::stream_adapter::send (cognitive 17): openshell_sandbox_backend::stream_adapter::send has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 2 (3 pts) (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox-backend/src/stream_adapter.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"68750bca8e33009bb22eaaf658515f0ffd7d04a838d7cc88e3e690390952ed7e"}},{"ruleId":"D2","level":"warning","message":{"text":"SupervisorSessionRegistry::open_relay_with_message_until (cognitive 17): SupervisorSessionRegistry::open_relay_with_message_until has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_session.rs"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"69dcc843e46f6d1f58d3b22462c4507c7b8b100a3294b81fb2c8dc793d4337f1"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::policy::record_policy_apply_result (cognitive 17): openshell_server::grpc::policy::record_policy_apply_result has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":5238}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c342bb3771df374bdc21c2323fe50ed65130faa035b37409b3e18b14393ce00"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::grpc::policy::parse_merge_operations (cognitive 17): openshell_server::grpc::policy::parse_merge_operations has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":7262}}}],"partialFingerprints":{"codehealthFindingId/v1":"21729d49874d99b61e7102a9f68bd184e584fbc9af30a2be43214d4d1a40cb25"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_middleware::websocket::validate_message_result (cognitive 17): openshell_supervisor_middleware::websocket::validate_message_result has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/websocket.rs"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"695c7435d108be3b25e2780e6e3c94e7d54b5306e5f416d97cd100ecf8e48275"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::path::resolve_dot_segments (cognitive 17): openshell_supervisor_network::l7::path::resolve_dot_segments has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/path.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3252a95bef2a8f7e7ebb9f4d910b43f24028dd38d7543685b720cbd13c76e8"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::relay::policy_safe_response_query (cognitive 17): openshell_supervisor_network::l7::relay::policy_safe_response_query has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"792159e888d9da84d916b2354608fbd57f0ac22cbad55fe49f5930db907755b4"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::relay::evaluate_jsonrpc_l7_request_for_log (cognitive 17): openshell_supervisor_network::l7::relay::evaluate_jsonrpc_l7_request_for_log has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":3143}}}],"partialFingerprints":{"codehealthFindingId/v1":"237d1152b0b812c4c0805999f752337072069f68baa91ef362d9038de0e75cfe"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::buffer_request_body_for_middleware (cognitive 17): openshell_supervisor_network::l7::rest::buffer_request_body_for_middleware has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 2 (3 pts), loops 1 (2 pts) (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7371e943719ac919b02a1f242905ddceaef566f4ddf1d487c606e27c9eab611"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::validate_websocket_response (cognitive 17): openshell_supervisor_network::l7::rest::validate_websocket_response has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":3444}}}],"partialFingerprints":{"codehealthFindingId/v1":"442b5ebd73fa2e100fbd56db2d03c8a7c1b13effc28f9ed0e07ea38822e25fb1"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::websocket::relay_with_options (cognitive 17): openshell_supervisor_network::l7::websocket::relay_with_options has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 2 (3 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/websocket.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5d0102c6be2782c8feb21bb60f9c07ce1389fadb76c05e3f36df8138a07b41"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::procfs::collect_cmdline_paths (cognitive 17): openshell_supervisor_network::procfs::collect_cmdline_paths has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (7 pts), boolean chains 4, loops 3 (4 pts), match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/procfs.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"66adbb34d493749fa60a2cf1c6974064dd8d018df3e263b26af28b61fa984d23"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_tui::app::provider_to_redacted_yaml (cognitive 17): openshell_tui::app::provider_to_redacted_yaml has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (9 pts), if/else 7 (8 pts) (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"b142037796808cca8d73a0cdf49b148baf07f38c496c6a4b54f90dfa7ae67704"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_tui::ui::global_settings::draw (cognitive 17): openshell_tui::ui::global_settings::draw has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/global_settings.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"505a9b353bf96016b4c03d109ff584cd0633aaeec6d13df2ab56bdb50363bedd"}},{"ruleId":"D2","level":"warning","message":{"text":"sandbox._sandbox_ref (cognitive 17): sandbox._sandbox_ref has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 12, boolean chains 5. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/openshell/sandbox.py"},"region":{"startLine":1887}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b1862a1bf1b5a9ec7eca54abbdf47594fe5d11cf7388a5032c468412e5f727"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxClient.forward (cognitive 17): SandboxClient.forward has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 5 (7 pts), error handling 2 (3 pts) (nesting depth added 4). Of this number, 10 points are the body\u0027s own statements and 7 belong to 4 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1bccbc064a8879bb8b73cec059d39005eee82f5ca8add5f98e5d00f92163dd2"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::commands::common::handle_platform_progress_event (cognitive 16): openshell_cli::commands::common::handle_platform_progress_event has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/common.rs"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9b9d327d5068c11d7f5581c7cebe70c2189c7f6016d91a2117d799b944b813"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::commands::provider_readiness::validate_mutation_receipts (cognitive 16): openshell_cli::commands::provider_readiness::validate_mutation_receipts has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 4 (7 pts), loops 1, match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider_readiness.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72b5c18f16b962a3c1d439eab0f86252862f8263db6fe681d6f591ffb98931a"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::oidc_auth::oidc_device_code_flow (cognitive 16): openshell_cli::oidc_auth::oidc_device_code_flow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/oidc_auth.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50944000cf034a6159d5e1cb0313b51614059745a2606c3e00b2235bc9761a6"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::policy_update::parse_add_endpoint_spec (cognitive 16): openshell_cli::policy_update::parse_add_endpoint_spec has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/policy_update.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"9900f64131b2bbc0cea9600ecfbef48d9d6c611db164650cacb93995f908c5df"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_cli::ssh::relay_ssh_proxy (cognitive 16): openshell_cli::ssh::relay_ssh_proxy has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 2 (4 pts), loops 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/ssh.rs"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2cea8cb9bab78f221d079a9eb3f3b0392474f01b7fb8ebcbd141a8646ec61ef"}},{"ruleId":"D2","level":"warning","message":{"text":"UpstreamProxyConfig::validate (cognitive 16): UpstreamProxyConfig::validate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/config.rs"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fce5018a3e6ef7bba365d338fa2d6d5f075066ecdd37415876f84046bdf7854"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_core::driver_utils::parse_upstream_proxy_url (cognitive 16): openshell_core::driver_utils::parse_upstream_proxy_url has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/driver_utils.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ff310b98134eb8772e3cfb8e37815c6b220879cf6483803202430443e5aece"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_core::net::is_always_blocked_net (cognitive 16): openshell_core::net::is_always_blocked_net has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/net.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1f074370aa62bbf4457e9474d1f0c62de6c70d57f959a009c9055c58369fbf"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_core::policy_identity::canonical_rule_bytes (cognitive 16): openshell_core::policy_identity::canonical_rule_bytes has cognitive complexity 16 (threshold 15). Drivers by points: loops 6 (10 pts), if/else 2 (6 pts) (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/policy_identity.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c8a5008f3965bd7c9a32ef776e91d6bb79abd9ae7a01376f04a0f2d496be952"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_driver_mxc::etw_consumer::decode_properties (cognitive 16): openshell_driver_mxc::etw_consumer::decode_properties has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/etw_consumer.rs"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27a7a0e69c8c1125afdee2a5d8ac36c501d1965427b8ec35d194c2a71520dc1"}},{"ruleId":"D2","level":"warning","message":{"text":"PodmanClient::events_stream (cognitive 16): PodmanClient::events_stream has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/client.rs"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f15528b8def5efd6415e104f866520d1b12434d513b68129c73305a49bf8bcb"}},{"ruleId":"D2","level":"warning","message":{"text":"VmDriver::validate_launch_plan_backend (cognitive 16): VmDriver::validate_launch_plan_backend has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":2615}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b99770f62cdfb6c55cdfabfdc848e5bf007b54a046e1bceaa663e455fe52fc0"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_driver_vm::driver::validate_vm_driver_mounts (cognitive 16): openshell_driver_vm::driver::validate_vm_driver_mounts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":5206}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b0fa98a3d711428169fe344bd1585e6f041cb49f51bef03a4c150fbfdcd0ff"}},{"ruleId":"D2","level":"warning","message":{"text":"ProtoJsonCodec::pointer_intersects_secret (cognitive 16): ProtoJsonCodec::pointer_intersects_secret has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (16 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-gateway-interceptors/src/proto_json.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de88d4312cc8f0370b8a9e86f6ed7cfd237d0de25699b40cf586152cad2b683"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_ocsf::format::downgrade::downgrade_event (cognitive 16): openshell_ocsf::format::downgrade::downgrade_event has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-ocsf/src/format/downgrade.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"24089a791610f6d19dbe65464e3ebf506b46160577122cdb823cdd6feb296772"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_policy::ambiguity::find_endpoint_ambiguities (cognitive 16): openshell_policy::ambiguity::find_endpoint_ambiguities has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/ambiguity.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"173064b2cf076d0704f61d581e28557478a84e85b7a6b45fabb74fd705d20e1b"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_prover::containment::counterexample_from_model (cognitive 16): openshell_prover::containment::counterexample_from_model has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-prover/src/containment.rs"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0bbaf7b6b8878fe149851e9b0d28b05f5828de45c012bbc99794d6cf68654b1"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_prover::containment::validate_supported_rest (cognitive 16): openshell_prover::containment::validate_supported_rest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 4, loops 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-prover/src/containment.rs"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68abacdfba6ad313136fe59ba27b03321b05b698bb794d0351a7e1cc3036315"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_sandbox::perf::run (cognitive 16): openshell_sandbox::perf::run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 3, loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/perf.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"469c109363043a06ef89087d3b836fa26ef8880fee60fa6b6dfea5dd564718a4"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_sandbox_backend::runtime_initiated::accept_loop (cognitive 16): openshell_sandbox_backend::runtime_initiated::accept_loop has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 3 (8 pts), if/else 2 (7 pts), loops 1 (nesting depth added 10). 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":"crates/openshell-sandbox-backend/src/runtime_initiated.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d6000ed385123ad8a45f1157277d76d2d94cd8e3c6ae27c022a3d89b02e703"}},{"ruleId":"D2","level":"warning","message":{"text":"ComputeRuntime::reclaim_provisioning_timeout (cognitive 16): ComputeRuntime::reclaim_provisioning_timeout has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 6. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/provisioning_deadline.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"dafc5c33f6a98c2c8af0d7827c40ea6b2598ff285136189b6d804051dc5b5f33"}},{"ruleId":"D2","level":"warning","message":{"text":"SupervisorPool::reconcile_once (cognitive 16): SupervisorPool::reconcile_once has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), match/switch 3 (7 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_pool.rs"},"region":{"startLine":2043}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0853e8950c584b2205416d9ec182f53624861cc5606d6e1de0de0a3e7d91df0"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_server::service_routing::parse_host (cognitive 16): openshell_server::service_routing::parse_host has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/service_routing.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce61e2584db8238ab41dad5025f536da55268e5b2685cb5e0ebc0a3e6e0f2419"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor::enrich_proto_baseline_paths_with (cognitive 16): openshell_supervisor::enrich_proto_baseline_paths_with has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/lib.rs"},"region":{"startLine":2082}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37e68e71cfd9f0b74ecdd12dbe0544c9dee31ac00eebc7a9a7c3138af8dc15e"}},{"ruleId":"D2","level":"warning","message":{"text":"NoProxy::parse (cognitive 16): NoProxy::parse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/upstream_proxy.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6c5c2c66ea0f50c6f392e2641e29347363e2c12c82ea7b00ac1e9aac593a5b"}},{"ruleId":"D2","level":"warning","message":{"text":"UpstreamProxyConfig::from_lookup (cognitive 16): UpstreamProxyConfig::from_lookup has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 3, boolean chains 2, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/upstream_proxy.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"551970ea9733a3e9fdd4eb14fba0eb87110508d46d308e5336682d72330f1358"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::http::read_chunked_body_for_inspection (cognitive 16): openshell_supervisor_network::l7::http::read_chunked_body_for_inspection has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/http.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"983ac035c83a8060379f6818b0aa4781d2e54de1894f2f288fbf3e650e529e4c"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::rest::parse_websocket_upgrade_request (cognitive 16): openshell_supervisor_network::l7::rest::parse_websocket_upgrade_request has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":2651}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db2043e760264e6c06f767d6040b42987f98d6e1f3dab6077d9d016a1d35759"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::l7::websocket::validate_frame_header (cognitive 16): openshell_supervisor_network::l7::websocket::validate_frame_header has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/websocket.rs"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc63c094052aec05cf3ad49725101cced9fd830afee4227bf6c7ab500a5df25"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_supervisor_network::opa::normalize_endpoint_ports (cognitive 16): openshell_supervisor_network::opa::normalize_endpoint_ports has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":1783}}}],"partialFingerprints":{"codehealthFindingId/v1":"e871cb9a699c0d3cd86c872ef4cc26a41a37f3b67a914221965aac11db6ef884"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_tui::sandbox_notes_for_view (cognitive 16): openshell_tui::sandbox_notes_for_view has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":2695}}}],"partialFingerprints":{"codehealthFindingId/v1":"d848dc02af1642cf75da5bd61a9246fc82be8ea3417f4725da330e6ba667b841"}},{"ruleId":"D2","level":"warning","message":{"text":"openshell_tui::ui::create_provider::draw_update (cognitive 16): openshell_tui::ui::create_provider::draw_update has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcdc5fe94b24fa414bac3ffa1f225d3d4d665ad4ab217414125a6dc06ee6e78d"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientCredentialsAuth._apply_gateway_metadata (cognitive 16): ClientCredentialsAuth._apply_gateway_metadata has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (6 pts), ternaries 3 (6 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/openshell/sandbox.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"067173db79b8d5f9de08fb42b5ed1cce1714e50785aa9afbb9a599773362c6ca"}},{"ruleId":"D2","level":"warning","message":{"text":"codex_compatibility_report.write_report (cognitive 16): codex_compatibility_report.write_report has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tasks/scripts/codex_compatibility_report.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"64bb4bd3b39c92787f16f29d4393f9651213f1ff636288e53580feaed2e363d7"}},{"ruleId":"D2","level":"warning","message":{"text":"sync_docs_website.sync_docs (cognitive 16): sync_docs_website.sync_docs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tasks/scripts/sync_docs_website.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4a8228b6ff6b811493a2be7a41935e552a36de30aee23baaa9df44c5840e3b"}},{"ruleId":"D2","level":"warning","message":{"text":"interactiveSession.readLoop (cognitive 16): interactiveSession.readLoop has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/exec_client.go"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3dc9bf756159a670da64c4f635b6eff4ed9c1bb227925f8bd8074f7da7ef6d"}},{"ruleId":"D2","level":"warning","message":{"text":"fakePolicyClient.GetStatus (cognitive 16): fakePolicyClient.GetStatus has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 3, boolean chains 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/policy.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"2641ddd48341a2f4381bf4dcfdcfa5ae64242a71ad4b879105b7440a418a006d"}},{"ruleId":"D2","level":"warning","message":{"text":"grpc.NewConnection (cognitive 16): grpc.NewConnection has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/internal/grpc/conn.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08c9871c3a7df66bb0b60287981b7b1c6919f1c331b50a819731c8097f77eaf"}},{"ruleId":"D2","level":"warning","message":{"text":"oidc.fetchDiscovery (cognitive 16): oidc.fetchDiscovery has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/oidc/discovery.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"171a7016494c0c5ef2e9ba192c80bb8d7df22e45afaf4a589194c4306cee68aa"}},{"ruleId":"D2","level":"warning","message":{"text":"Pushable.[Symbol.asyncIterator] (cognitive 16): Pushable.[Symbol.asyncIterator] has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac257b29293b93f2db4dc625487284c02c5bbf08992b2cedf2b2f53255fdacc"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxClient.waitDeleted (cognitive 16): SandboxClient.waitDeleted has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1355}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6514da556843b3844fc64eaa1dd607a77a643a62530634156f2c632ac00f72"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxClient.execInteractive::receive (cognitive 16): SandboxClient.execInteractive::receive has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 2 (4 pts), match/switch 1 (2 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1616}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a4bac817a0bd177e591507d24f5dd31b905c88e1e798c0f22d5389fd2db94f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_cli::run_async: FunctionTooLong \u2014 openshell_cli::run_async runs 1322 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1222 over it, 13.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":"crates/openshell-cli/src/main.rs"},"region":{"startLine":2635}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a9fd2ac97db6a3058d9207a7be522b4cf793f8557eb9234487ab85f341ce3f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/driver.rs: FileTooLong \u2014 6219 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 138 free functions. The bar is 500 significant lines; this is 5719 over it, 12.44\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2aa41ee0b823f86deffaff5446d4f83270951f370f68d855b3ee3f5fb8bc3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor_network::proxy::handle_forward_proxy: FunctionTooLong \u2014 openshell_supervisor_network::proxy::handle_forward_proxy runs 1170 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1070 over it, 11.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":5332}}}],"partialFingerprints":{"codehealthFindingId/v1":"4306a930ca3137ec648d9f196099379cb3ae0f00cb20c640a75a7a0335ec4a37"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: grpc/policy.rs: FileTooLong \u2014 5770 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 190 free functions. The bar is 500 significant lines; this is 5270 over it, 11.54\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2318bf916782437851c4da57e05263202b79d3edc73b1cc5e0b28fb2e338f314"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: compute/mod.rs: FileTooLong \u2014 5714 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 70% of them inside a single declaration: ComputeRuntime (3 blocks, 875-6566), declaring 65 free functions. The bar is 500 significant lines; this is 5214 over it, 11.43\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ab006ec1ce3968e3dfa5a1bd49334120ffe681be1819ef837eab7ce9acc9f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/driver.rs: FileTooLong \u2014 5607 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 145 free functions. The bar is 500 significant lines; this is 5107 over it, 11.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e14eaae3250b571ffe5d33f366b86b2f71ae9a199e7ce370cb46e47bb40994"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 5196 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 141 free functions. The bar is 500 significant lines; this is 4696 over it, 10.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de99fcb6010c2ff8fc681312122866246c296e547e8a2f028bd7d76f1e781a0c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/run.rs: FileTooLong \u2014 5100 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 151 free functions. The bar is 500 significant lines; this is 4600 over it, 10.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff1eed4f41a6a372098a4c9cb0021b918cf7f9d27312cfb8b730f68e5166631"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/proxy.rs: FileTooLong \u2014 5057 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 114 free functions. The bar is 500 significant lines; this is 4557 over it, 10.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b7e6d7a6351365028d0e0a9575d49f04cf952cf3eb7887121667afd3645a04"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ComputeRuntime: ClassTooLong \u2014 3985 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 140 methods, 3 blocks, lines 875-6566. The bar is 400 significant lines; this is 3585 over it, 9.96\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"623f0371852925e60174cec9067bb61e309fd2be813074d7f7da0e8ccf55cad4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KubernetesComputeDriver: ClassTooLong \u2014 3369 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 87 methods, 3 blocks, lines 891-5395. The bar is 400 significant lines; this is 2969 over it, 8.42\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"d822412c4b667507adb9e6c9382dae54aaeed298f7942517005d61972b243845"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VmDriver: ClassTooLong \u2014 3205 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 65 methods, 4 blocks, lines 734-5900. The bar is 400 significant lines; this is 2805 over it, 8.01\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"0338a7dd514df1f842ace3f7869eb9b736438601212a20730dc34212b13692d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: grpc/provider.rs: FileTooLong \u2014 3848 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 146 free functions. The bar is 500 significant lines; this is 3348 over it, 7.70\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cd73e134360239fca44101131dcfd0df6c5aeaf1c3cccb14cdc1702b9b0c40"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_providers::profiles::validate_profile_set: FunctionTooLong \u2014 openshell_providers::profiles::validate_profile_set runs 737 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 637 over it, 7.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":2138}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0807c47730ab4af7676f561c60362491bd88288e1feeb91e890eb1ed251631"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor_network::proxy::handle_mediated_connection: FunctionTooLong \u2014 openshell_supervisor_network::proxy::handle_mediated_connection runs 658 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 558 over it, 6.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":2414}}}],"partialFingerprints":{"codehealthFindingId/v1":"559101253278cfc97242f1cbb01ed469f6ad428360bdf9a5e977b1910e5917fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: grpc/sandbox.rs: FileTooLong \u2014 2898 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 81 free functions. The bar is 500 significant lines; this is 2398 over it, 5.80\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a5aeac6b325c8af48100134f068cc72d7de4ada274a2b7683ac9c2d097933e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 2897 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 65 free functions. The bar is 500 significant lines; this is 2397 over it, 5.79\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78ab75f311935dd14e798d2d757c85bd39f6d5b895db0a13911914a361597e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor::run_sandbox_instance: FunctionTooLong \u2014 openshell_supervisor::run_sandbox_instance runs 572 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 472 over it, 5.72\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/lib.rs"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"077afb0d53a75965c20faba4a725bb29af7a202fc34e9797020b64e5825ddab6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: l7/relay.rs: FileTooLong \u2014 2726 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 68 free functions. The bar is 500 significant lines; this is 2226 over it, 5.45\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2bc6d0c49c5e98d694dde97ea526558ab513a0de4867d5ce5b76164bf41ff96"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/main.rs: FileTooLong \u2014 2697 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 2197 over it, 5.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"208144eb030a5d5d2e115c8d76b0a4ad7a727be905124fd1bed1a922556411db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/profiles.rs: FileTooLong \u2014 2672 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 106 free functions. The bar is 500 significant lines; this is 2172 over it, 5.34\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83363a2ad04286a85390611162f3f967cee3e9ed09b2da8fe16fab4258fe0cdd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_cli::run::sandbox_create: FunctionTooLong \u2014 openshell_cli::run::sandbox_create runs 519 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 419 over it, 5.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b0eea151290700b26c1abeb58f65a052a307c7e85bfdf9dd4e8f119b4fc68b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::policy::handle_update_config_inner: FunctionTooLong \u2014 openshell_server::grpc::policy::handle_update_config_inner runs 505 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 405 over it, 5.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":4176}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5cb92ecb924cb0be21b16c3d328bcb4758c1086090aba18ba3609065cb4633b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: l7/rest.rs: FileTooLong \u2014 2515 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 98 free functions. The bar is 500 significant lines; this is 2015 over it, 5.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eca264e08675e4f27d4f109cc57f6a8815096ecf6473113a0d971beed43016a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: App: ClassTooLong \u2014 1979 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 58 methods, 2 blocks, lines 592-3605. The bar is 400 significant lines; this is 1579 over it, 4.95\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb55af81c44c1586897fc911a7ef0b2c60f365895a4f509a6d0946e9872e3a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/app.rs: FileTooLong \u2014 2471 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 80% of them inside a single declaration: App (2 blocks, 592-3605). The bar is 500 significant lines; this is 1971 over it, 4.94\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":"crates/openshell-tui/src/app.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f05a127b3c6b657dd66a3ada8e0aacf1bc9a276343d4d9aaec52ccac1860ec5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ComputeRuntime: TooManyMethods \u2014 140 methods, declared across 4 files: compute/mod.rs (123), compute/mutation_guard.rs (8), compute/provisioning_operation.rs (5), compute/provisioning_deadline.rs (4). The bar is 30 methods; this is 110 over it, 4.67\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"fded11bad9027655bef4b151f40e88c346a14957b8d9e0b2f5de251bcad66786"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DockerComputeDriver: ClassTooLong \u2014 1843 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 47 methods, 3 blocks, lines 382-3549. The bar is 400 significant lines; this is 1443 over it, 4.61\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b316f21426185902033f48ae581eb76c5ffd2592cf59ffd49375c852fbf1a62"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/provider.rs: FileTooLong \u2014 2142 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 74 free functions. The bar is 500 significant lines; this is 1642 over it, 4.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53bcb66800927ea019516145fc1b19c03881bae12ea13631b5046094548d1be"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 2131 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 56 free functions. The bar is 500 significant lines; this is 1631 over it, 4.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0499ebaa49363b1646aedde8ef6b711e79bb9d52e2d754fec633396ea57e26"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/runtime.rs: FileTooLong \u2014 2099 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1599 over it, 4.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox-backend/src/runtime.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b165be85652de551ec15202ca956032be5f7930c27f2ae96a138e6fcd2b88d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VmDriver.provision_sandbox_inner: MethodTooLong \u2014 provision_sandbox_inner runs 408 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 308 over it, 4.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8727583e9a69293656b3a9a04d72ca799affa6b38ac6c0918b5afa867ea757"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/supervisor_session.rs: FileTooLong \u2014 2037 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 49 free functions. The bar is 500 significant lines; this is 1537 over it, 4.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_session.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fd8e99aa183d7bc0b0964a7e5b9967170665663ac31b1b26ed2c976e671b99"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::run_server: FunctionTooLong \u2014 openshell_server::run_server runs 405 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 305 over it, 4.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/lib.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"e208183f3af536075d88ef33808b6a2385e8098831797c1aacbb973b43ee9c96"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor_network::l7::rest::http_response::relay_response_through_middleware: FunctionTooLong \u2014 openshell_supervisor_network::l7::rest::http_response::relay_response_through_middleware runs 396 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 296 over it, 3.96\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c78ddd9f48ca68b1f182255c315478a409320342b4613ca80443ecc7f3442f7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: App: TooManyFields \u2014 118 stored fields beside 58 methods. The bar is 30 stored fields; this is 88 over it, 3.93\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0970b6186670a38ee3b5d7462cf9717028c882713060dd250964bf235d7a7b1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PostgresStore: ClassTooLong \u2014 1537 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 56 methods, 2 blocks, lines 42-2203. The bar is 400 significant lines; this is 1137 over it, 3.84\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"739eaceae490ec21ba55b77e089e97107874c3c5394c3e7d453316fe45db255f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SqliteStore: ClassTooLong \u2014 1474 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 51 methods, 2 blocks, lines 50-2032. The bar is 400 significant lines; this is 1074 over it, 3.69\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/sqlite.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d6132987c33ef4b18838837a6aced43eae68e35087c3b66eeac5008fb04574"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor_network::l7::relay::relay_with_route_selection: FunctionTooLong \u2014 openshell_supervisor_network::l7::relay::relay_with_route_selection runs 363 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 263 over it, 3.63\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e65d3050cc13945cf307f0ee89d5cc94f724d5196affc9beabfa09ef3d05f188"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: openshell/sandbox.py: FileTooLong \u2014 1811 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1311 over it, 3.62\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/openshell/sandbox.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc85854cb49ffff73fdb5d2e8b96b016051041b1ca72734717d80b8b32f9c77f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConfigRuntime.reconcile: MethodTooLong \u2014 reconcile runs 356 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 256 over it, 3.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/config_runtime.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c84efbbd9d8d8f458b20a1a37be6278d8ffd9c18f5678e3984f8cedac01277"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/provider_refresh.rs: FileTooLong \u2014 1752 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 62 free functions. The bar is 500 significant lines; this is 1252 over it, 3.50\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/provider_refresh.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c216261f3f163121f6b2b01bd72fe473462f7f8631e54355f43b5ae66a6e0e50"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor::load_policy_with_gateway: FunctionTooLong \u2014 openshell_supervisor::load_policy_with_gateway runs 342 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 242 over it, 3.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/lib.rs"},"region":{"startLine":2738}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6d2ace44d345f2e6eb541bd6ca00016c9980a33f9b10641812f003784a3e1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: persistence/postgres.rs: FileTooLong \u2014 1690 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 91% of them inside a single declaration: PostgresStore (2 blocks, 42-2203). The bar is 500 significant lines; this is 1190 over it, 3.38\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd035245ba0b8316b6efeb6d97cc9fed0af0b5a56211d411c3f19802dcf1343"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/supervisor_pool.rs: FileTooLong \u2014 1686 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1186 over it, 3.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_pool.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89effa7c22723a70b553adef78032df71835eebcbaa1bcb67d00b8ed21a3bb1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor_network::l7::validate_l7_policies: FunctionTooLong \u2014 openshell_supervisor_network::l7::validate_l7_policies runs 331 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 231 over it, 3.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/mod.rs"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"15330ed1e38d0b94f75c217d1747207eb85b8bda882cfbc78074de63adbb7461"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.handle_create_provider_key: MethodTooLong \u2014 handle_create_provider_key runs 326 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 226 over it, 3.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":"crates/openshell-tui/src/app.rs"},"region":{"startLine":2484}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e8928e55c660557a4eec9f1fd2237290a21938340afb0749988974edff9854"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: persistence/sqlite.rs: FileTooLong \u2014 1618 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 91% of them inside a single declaration: SqliteStore (2 blocks, 50-2032). The bar is 500 significant lines; this is 1118 over it, 3.24\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/sqlite.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a1aedb4c622c0c63574a50793ac15a34db633c0493724c6735de603618d815"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::provider::handle_configure_provider_refresh: FunctionTooLong \u2014 openshell_server::grpc::provider::handle_configure_provider_refresh runs 323 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 223 over it, 3.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":4814}}}],"partialFingerprints":{"codehealthFindingId/v1":"4452dbb807df3ea11ccfae650fd089d4c0946757dbb54f182286eae6c20f58b9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OcsfEvent.format_shorthand: MethodTooLong \u2014 format_shorthand runs 321 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 221 over it, 3.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-ocsf/src/format/shorthand.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8229543041391446442ba27d1b6a3c0c0aa55a38143c276ddcc6c99415d7a35"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/opa.rs: FileTooLong \u2014 1576 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 40 free functions. The bar is 500 significant lines; this is 1076 over it, 3.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7fd7f5cec5bbcff8d629b021edfb9791b730e689be39aa7ffe2e372b62a8a4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChainRunner.preflight_described_http_response: MethodTooLong \u2014 preflight_described_http_response runs 315 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 215 over it, 3.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/response/preflight.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95a124f96fff92699e4b7757ca0a9ef36fce4b09541bf0392cc93940db59ffa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rest/http_response.rs: FileTooLong \u2014 1567 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 38 free functions. The bar is 500 significant lines; this is 1067 over it, 3.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2d0bd9abf0a726c0eefe715cad24c60eececd6f323c152a91d1a0ac5549d11"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: l7/websocket.rs: FileTooLong \u2014 1567 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 42 free functions. The bar is 500 significant lines; this is 1067 over it, 3.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/websocket.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"558d9ed16c78913bb888404fcfdc10e9dca82e9d2d1141a6dbf4228e0fa51552"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/containment.rs: FileTooLong \u2014 1558 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 81 free functions. The bar is 500 significant lines; this is 1058 over it, 3.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-prover/src/containment.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2d41385c6e2ddace8f5771b3a4d815bb0854fb831d19553a0a51aaeddf362c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::policy::handle_submit_policy_analysis: FunctionTooLong \u2014 openshell_server::grpc::policy::handle_submit_policy_analysis runs 311 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 211 over it, 3.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":5497}}}],"partialFingerprints":{"codehealthFindingId/v1":"3658f3d90593481cb3b2debd7b26f771606cd1fd6f17a3b1ab7b75fecadc884a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ssh.rs: FileTooLong \u2014 1550 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 89 free functions. The bar is 500 significant lines; this is 1050 over it, 3.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/ssh.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b3746b8404305d22c5177cecf24eb0958e9cca6f36a1e30464ba9ddd46e241"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PodmanComputeDriver.create_sandbox: MethodTooLong \u2014 create_sandbox runs 303 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 203 over it, 3.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/driver.rs"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb78aed096eae29296fe8ef0937ad263efc4e8e40cb260ce8f5e97ac04b6401f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/merge.rs: FileTooLong \u2014 1510 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 66 free functions. The bar is 500 significant lines; this is 1010 over it, 3.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/merge.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81df197e6cea8105b29fde10c71bccd1cd0cd904ee0f0f2522a454f2c42f11f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::sandbox::handle_watch_sandbox: FunctionTooLong \u2014 openshell_server::grpc::sandbox::handle_watch_sandbox runs 299 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 199 over it, 2.99\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":2033}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb8bdbb60c446e13257305038cdf215001ccfada3cfa0a7ad50e06ee125c381"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/driver.rs: FileTooLong \u2014 1461 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 71% of them inside a single declaration: PodmanComputeDriver (3 blocks, 158-1883), declaring 32 free functions. The bar is 500 significant lines; this is 961 over it, 2.92\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":"crates/openshell-driver-podman/src/driver.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8a8c68dcdaeafbdbd67d516f47b1244efd9b7a6b24201abda34cf45fea87a0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KubernetesComputeDriver: TooManyMethods \u2014 87 methods. The bar is 30 methods; this is 57 over it, 2.90\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"013b6204bf0d3bd7ce0a562604bf1c9d609793d1c3ebcdcc5c02bd5d1330c525"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_tui::run: FunctionTooLong \u2014 openshell_tui::run runs 285 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 185 over it, 2.85\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"4235924e1a6acc9e8ffc4285d43a7b95040b45d6726e4ec981835abd6e931a39"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChainRunner.evaluate_described_with_policy_admitted: MethodTooLong \u2014 evaluate_described_with_policy_admitted runs 283 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 183 over it, 2.83\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/lib.rs"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee488e92c32672b9e71c640bae0d3c9ba7d6878203cd0a88c5513139218947e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 1404 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 904 over it, 2.81\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eae58ba5ff978793a5eded4cd5fd472035ffdd6ff496bfeaba2c60fb855453b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 1403 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 903 over it, 2.81\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e1b994a0485f2f284323ad7f591bb8ee5cb7aa1939d04edf233f85230d8d78"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KubernetesComputeDriver.install_sandbox_runtime_generation: MethodTooLong \u2014 install_sandbox_runtime_generation runs 278 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 178 over it, 2.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":3344}}}],"partialFingerprints":{"codehealthFindingId/v1":"106cbaba809f7bf270abbe6609fe141f7b9721f4e58c366bc4190db82edb8679"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KubernetesComputeDriver.start_sandbox_runtime_generation: MethodTooLong \u2014 start_sandbox_runtime_generation runs 278 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 178 over it, 2.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":3794}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c788b333ee8455eb9cc8518559804cf7adbb77bad44f452ac11c42c112a5c7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/credentials.rs: FileTooLong \u2014 1376 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 876 over it, 2.75\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/credentials.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f19bbd15152b499a10d8951afd7746ae348f96d8316551b90c0f71b3284dc3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor_network::l7::rest::relay_http_request_with_response_middleware_guarded_observed: FunctionTooLong \u2014 openshell_supervisor_network::l7::rest::relay_http_request_with_response_middleware_guarded_observed runs 268 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 168 over it, 2.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"25799ef662af048fbe6e0f59ebf424e78ca66dae48ab03b770aa8d2519f68781"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor_network::run::run_networking: FunctionTooLong \u2014 openshell_supervisor_network::run::run_networking runs 268 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 168 over it, 2.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/run.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3dd6c7e9e38ad48e58d0ebcea2316c035b59e432c4ec11f72022b15ca58e7f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::provider::resolve_provider_environment_from_records_with_policy_bindings_and_credentials: FunctionTooLong \u2014 openshell_server::grpc::provider::resolve_provider_environment_from_records_with_policy_bindings_and_credentials runs 267 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 167 over it, 2.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83209c3559eed39056697201695aec6c95a4466f37e83ec73efd1c049b7c086"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/client.ts: FileTooLong \u2014 1321 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 821 over it, 2.64\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a98c8e0d333631ffc0c7eddc93a837bdb3bc17b32075673b48f66478190f38"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor_network::l7::relay::relay_rest: FunctionTooLong \u2014 openshell_supervisor_network::l7::relay::relay_rest runs 262 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 162 over it, 2.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2020}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad75b52a50cd5fb9cff6af07853b705f8f3a11aa3c085b2b2c875a161ff5559a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PodmanComputeDriver: ClassTooLong \u2014 1039 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 23 methods, 3 blocks, lines 158-1883. The bar is 400 significant lines; this is 639 over it, 2.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/driver.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74610fb3f81f6d3e10b3490a4ffc699fcade1af0b65bfafae301a643ce1f7db"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DockerComputeDriver.provision_sandbox_inner: MethodTooLong \u2014 provision_sandbox_inner runs 259 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 159 over it, 2.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5aec949e5eb5fc33b941bca53635ed8d4408b6ddc5c10c35ca333e5add584b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor_network::opa::proto_to_opa_data_json: FunctionTooLong \u2014 openshell_supervisor_network::opa::proto_to_opa_data_json runs 253 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 153 over it, 2.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":2255}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2123ce5c4ebd4ec11f06f6f2d51fe5cba2a43c49d5b51dfa20320fddecbbd2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 1237 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 47 free functions. The bar is 500 significant lines; this is 737 over it, 2.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0b68dd2a1a1f0dbcf012c3a0c2f3a1497a1024d1a7fd4a01c95df19000148f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_tui::ui::draw_nav_bar: FunctionTooLong \u2014 openshell_tui::ui::draw_nav_bar runs 246 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 146 over it, 2.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/mod.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"940400dc8a70d75bea984e466f789c94660ccd7fecf239b7d86020c46c5fb8d2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::sandbox::handle_create_sandbox_inner: FunctionTooLong \u2014 openshell_server::grpc::sandbox::handle_create_sandbox_inner runs 244 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 144 over it, 2.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49cc276231b160d289663c9abc1e093c6db836094ae93331e9f13a007e6c6a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: l7/mod.rs: FileTooLong \u2014 1218 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 48 free functions. The bar is 500 significant lines; this is 718 over it, 2.44\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a010e0eee90f6a508dbd1ac3c3d9a515541ebd37dc5baaf391281f29bf01ff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/container.rs: FileTooLong \u2014 1211 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 36 free functions. The bar is 500 significant lines; this is 711 over it, 2.42\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/container.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9527b1acfdcfade36a377390af94fb22c852d0fd0683b8184741865276a5c3b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_cli::commands::gateway::gateway_add: FunctionTooLong \u2014 openshell_cli::commands::gateway::gateway_add runs 240 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 140 over it, 2.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"f796a7c043338dc7266ca7513d5244056f888963342f33ed5c8c050c40a118bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_driver_docker::spawn_docker_control_process: FunctionTooLong \u2014 openshell_driver_docker::spawn_docker_control_process runs 231 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 131 over it, 2.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":5248}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd72692ee3a693aa6bfdf2e361f5c0690b45b1aff552b5a1967decd35b3d553"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::policy::handle_approve_all_draft_chunks_inner: FunctionTooLong \u2014 openshell_server::grpc::policy::handle_approve_all_draft_chunks_inner runs 231 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 131 over it, 2.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":6273}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abc7d662d20be88d967c1bde923c59927a19c02744e077f707093f02e960dce"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::provider_refresh::refresh_provider_credential_locked: FunctionTooLong \u2014 openshell_server::provider_refresh::refresh_provider_credential_locked runs 228 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 128 over it, 2.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/provider_refresh.rs"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"90dc93cbb3719e159bf6a42c4f1978c3febfe46e5bee3dfecfa334dd4782e54a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ProxyHandle.start_with_bind_addr: MethodTooLong \u2014 start_with_bind_addr runs 228 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 128 over it, 2.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b216392d64e02cedf9ef2f2c2a5fb98cf54667ef2ca5522127dfc7144e8281"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_driver_kubernetes::sandbox_runtime::supervisor_pod: FunctionTooLong \u2014 openshell_driver_kubernetes::sandbox_runtime::supervisor_pod runs 226 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 126 over it, 2.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":"crates/openshell-driver-kubernetes/src/sandbox_runtime.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"4014c0111f3da3500c9ff4847e968cf579ae64cd09be82be569bc0529ac679ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/gateway.rs: FileTooLong \u2014 1126 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 41 free functions. The bar is 500 significant lines; this is 626 over it, 2.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"810cb27438414412342f2db8670b79a0c1a184769d98057184f4558805a7588c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/config_runtime.rs: FileTooLong \u2014 1125 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 64% of them inside a single declaration: ConfigRuntime (2 blocks, 167-1158). The bar is 500 significant lines; this is 625 over it, 2.25\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/config_runtime.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e829cc321033288dfed62d7a9df350522cc5a056e74853758a98309e9719f8f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/grpc_client.rs: FileTooLong \u2014 1105 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 37 free functions. The bar is 500 significant lines; this is 605 over it, 2.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/grpc_client.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"982e38748e202842f09026dc193c095050b54aff7cf8ff5e25316903f4b37b6e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/etw_consumer.rs: FileTooLong \u2014 1098 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 34 free functions. The bar is 500 significant lines; this is 598 over it, 2.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/etw_consumer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece7f63a2b09a80f9e82d353c58ae6e730d643504a1857d47309bab2f4a31abf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VmDriver: TooManyMethods \u2014 65 methods. The bar is 30 methods; this is 35 over it, 2.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"361f98ab29dfe373e1a537b19af1ea8ce90ec389670b8feac3e62565a1382627"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KubernetesComputeDriver.reconcile_sandbox_runtime_resources: MethodTooLong \u2014 reconcile_sandbox_runtime_resources runs 216 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 116 over it, 2.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":4531}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ea6dca335e867fbd93ea293e479367739b269ef62fbbf3c8accb2b85d6ddbb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ssh.rs: FileTooLong \u2014 1075 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 68% of them inside a single declaration: SshHandler (5 blocks, 421-1429). The bar is 500 significant lines; this is 575 over it, 2.15\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/ssh.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cec0f006a21ac2ab2ee2c9991c1c75f3164016cb7a9284098b341e7d13c0b45"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Args: TooManyFields \u2014 64 stored fields. The bar is 30 stored fields; this is 34 over it, 2.13\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/main.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdbd3b51ac9f466b52647ab0d82e6ddb05edac272ce7ad1a6df40d44866324d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/boundary_protocol.rs: FileTooLong \u2014 1061 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 561 over it, 2.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox-backend/src/boundary_protocol.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d260c5f9126fc0dcf4fd4372bbbca98e59e491d06ad7e8d57371d21951fae08"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_driver_podman::container::build_base_spec: FunctionTooLong \u2014 openshell_driver_podman::container::build_base_spec runs 212 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 112 over it, 2.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/container.rs"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b48b0c099c3566f3c488af0693d371a7520f87715e32a1cbd6be96445dfaa15"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_tui::ui::create_provider::draw_enter_key: FunctionTooLong \u2014 openshell_tui::ui::create_provider::draw_enter_key runs 211 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 111 over it, 2.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4edf04741596c8061565a462fd7ec1f5d56a9eb9a3b4497b7dc9912d8b40c94"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor_network::l7::relay::relay_jsonrpc: FunctionTooLong \u2014 openshell_supervisor_network::l7::relay::relay_jsonrpc runs 210 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 110 over it, 2.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2438}}}],"partialFingerprints":{"codehealthFindingId/v1":"897b66242db46a249f6a2fc7e6010316a48e1942894a40d6c6648b6d81ca04b9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor_network::proxy::preauthorize_transparent_open: FunctionTooLong \u2014 openshell_supervisor_network::proxy::preauthorize_transparent_open runs 209 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 109 over it, 2.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e634c56f5df3ca15fcedfcad0baa93d646ad41637318511d47cb3963fea3f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor::main: FunctionTooLong \u2014 openshell_supervisor::main runs 209 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 109 over it, 2.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/main.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3f8ac35c0fc2e00d426c8dfec5221d92d570ad73e54381bddf0a17eeaad85d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/multiplex.rs: FileTooLong \u2014 1038 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 538 over it, 2.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/multiplex.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2e7786a5436a800150fee8eb581b75c9521e126c4b588d24bad057322593ea"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebSocketSession.evaluate_text_admitted_inner: MethodTooLong \u2014 evaluate_text_admitted_inner runs 207 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 107 over it, 2.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/websocket.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ea5d35677b2d7d360165158b778b2773542093ad4eb60e330677ea186c6e7e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor_network::l7::websocket::relay_client_to_server: FunctionTooLong \u2014 openshell_supervisor_network::l7::websocket::relay_client_to_server runs 203 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 103 over it, 2.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/websocket.rs"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e0ea1f6532c8474abb4c4decb633b6aebfcb7c8dda2e9b7be699355cb9495b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/websocket.rs: FileTooLong \u2014 1010 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 510 over it, 2.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/websocket.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df6b14cb9090363e666fdba01d237797f5b3fe42850aa71ac6c0e14d87f6fa8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor_network::l7::relay::relay_graphql: FunctionTooLong \u2014 openshell_supervisor_network::l7::relay::relay_graphql runs 202 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 102 over it, 2.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2717}}}],"partialFingerprints":{"codehealthFindingId/v1":"2628f8dbf32e92cfb289c01ba7bff24a4bdb7a15f2787b8989b035f7335a21f2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KubernetesComputeDriver.create_sandbox_inner: MethodTooLong \u2014 create_sandbox_inner runs 199 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 99 over it, 1.99\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":2175}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cb13c6e56593f432cf236b827b391360c4e94ffea59f7610706514df511d95"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::supervisor_session::accept_supervisor_session: FunctionTooLong \u2014 openshell_server::supervisor_session::accept_supervisor_session runs 199 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 99 over it, 1.99\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_session.rs"},"region":{"startLine":2224}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18cd68c4da9a6d9e59e78a1da68084f0bc2ab52f499ecbc57179be5c24ecf3f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/client.rs: FileTooLong \u2014 980 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 480 over it, 1.96\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sdk/src/client.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8889300c2a929819fd42822c2c3e5c9d6464eaecd9f4ddcf4ae297f138f8154e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: App: TooManyMethods \u2014 58 methods. The bar is 30 methods; this is 28 over it, 1.93\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4ebcfd84ccb81356fc23112b35c653df25fa070d7a7d189a74b08866291e60"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: persistence/mod.rs: FileTooLong \u2014 960 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 76% of them inside a single declaration: Store (2 blocks, 255-1440). The bar is 500 significant lines; this is 460 over it, 1.92\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":"crates/openshell-server/src/persistence/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7963da9fac350c180e05fae198e75f7aa3650049a6b573d206208dd90268ac5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::cli::prepare_server_config_with_drivers: FunctionTooLong \u2014 openshell_server::cli::prepare_server_config_with_drivers runs 190 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 90 over it, 1.90\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/cli.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"86589ea203861359e80e01dcba0874d5d6fc89a2bc2a97458b01542dcdbeb35a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor_network::proxy::handle_transparent_tcp_connection: FunctionTooLong \u2014 openshell_supervisor_network::proxy::handle_transparent_tcp_connection runs 188 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 88 over it, 1.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"521ce60c34d9cf3fdf7739c018a79eca6a13820188c0ea1f69c00891e3d1e328"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/policy_local.rs: FileTooLong \u2014 936 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 41 free functions. The bar is 500 significant lines; this is 436 over it, 1.87\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/policy_local.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4e25dd864f604779d6da745a6934dcae88f0b6f24363f80b3605aef570e88d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::provider_credentials::retrieve: FunctionTooLong \u2014 openshell_server::grpc::provider_credentials::retrieve runs 187 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 87 over it, 1.87\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider_credentials.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b2494f565e386a79d00b3b737c1a42723b136dc78e46116ed93acbe9c3cb30d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PostgresStore: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d433b5b34475dfddf83555207eb31fc4eafa6e43ef134f30a86a44c6a1daeb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ComputeRuntime.create_sandbox_with_runtime_inputs_and_guards: MethodTooLong \u2014 create_sandbox_with_runtime_inputs_and_guards runs 186 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"669e792a1a3699a732b0781a229a69e08c11afc5b581762c5666fb61f3e5bd7c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/shared_host.rs: FileTooLong \u2014 921 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 421 over it, 1.84\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/shared_host.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba93b3dfc0a3626db124d8842c309334c3e5c0510bddc3e1f2263e45ee1a85b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::auth::http::render_connect_page: FunctionTooLong \u2014 openshell_server::auth::http::render_connect_page runs 184 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 84 over it, 1.84\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/auth/http.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f26eb124a4e58135e316685b427f0f86b9eaa0e7fa046d42bd381744452d266"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SupervisorPool: TooManyMethods \u2014 55 methods. The bar is 30 methods; this is 25 over it, 1.83\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_pool.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f569bf8d743bd29eb1b3aa67e0d3cbf116fe0ec8c2e7ca23413c4d94155028f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor_network::l7::rest::http_response::relay_normalized_response_body: FunctionTooLong \u2014 openshell_supervisor_network::l7::rest::http_response::relay_normalized_response_body runs 182 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 82 over it, 1.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae7f56a25b6e34243c4713035790dcfe628f28387fcf67be9b17a7643f14644"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Store: ClassTooLong \u2014 726 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 46 methods, 2 blocks, lines 255-1440. The bar is 400 significant lines; this is 326 over it, 1.82\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/mod.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"1749db82b86c8f154605dd8de0d8338270de2072f224ffbb14eebcf084c267bc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SshHandler: ClassTooLong \u2014 726 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 7 methods, 5 blocks, lines 421-1429. The bar is 400 significant lines; this is 326 over it, 1.82\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/ssh.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"311fc25233977961a0fe0281ef70d4d66173787b9aa4dfe6cf58a7021c98311b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_policy::validate_sandbox_policy_with_mcp_presence: FunctionTooLong \u2014 openshell_policy::validate_sandbox_policy_with_mcp_presence runs 181 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 81 over it, 1.81\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/lib.rs"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"224e26d04299b1aadc531c51558bb508fc80a0bbe1ce6bd34d3ebaab29dea540"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ConfigRuntime: ClassTooLong \u2014 717 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 10 methods, 2 blocks, lines 167-1158. The bar is 400 significant lines; this is 317 over it, 1.79\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/config_runtime.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"660b6a72052761d238bd9500d2357a93f4c7d88bec7d18a3229df99340e9d1a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/response.rs: FileTooLong \u2014 885 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 385 over it, 1.77\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/response.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84187c10d5189c8ccd5e957a21bb43145dcf1793103b3073301a4a103b963fa3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_cli::run::sandbox_get_to_writer: FunctionTooLong \u2014 openshell_cli::run::sandbox_get_to_writer runs 177 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":1609}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a9aedc3ea074c35da3080af9903fef84975efa2d33879aa6178d984046da00"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_tui::ui::sandbox_draft::draw_detail_popup: FunctionTooLong \u2014 openshell_tui::ui::sandbox_draft::draw_detail_popup runs 177 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/sandbox_draft.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2c5b48a56e886be889229a35e6d09729ba770a8a4063cc30e1d53dc8c8e9fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_cli::run::sandbox_exec_streaming_grpc: FunctionTooLong \u2014 openshell_cli::run::sandbox_exec_streaming_grpc runs 176 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 76 over it, 1.76\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":2580}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bb19cae50399dd4a27628c8bbe2291b2c9bf701a16f0ffb4763d01166c817d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BoundaryClient: ClassTooLong \u2014 694 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 30 methods, 2 blocks, lines 1573-2662. The bar is 400 significant lines; this is 294 over it, 1.74\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox-backend/src/runtime.rs"},"region":{"startLine":1573}}}],"partialFingerprints":{"codehealthFindingId/v1":"78568b95ba6287c1ddf742530adc66ce10eb79861f62d44d9f10c10512fe83a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/jwt.rs: FileTooLong \u2014 861 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 361 over it, 1.72\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/jwt.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"390167de7f10bd089b049179e298d766462d517d4dd2258c88d0d11c2231ebd0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_driver_mxc::driver::run_lifecycle: FunctionTooLong \u2014 openshell_driver_mxc::driver::run_lifecycle runs 172 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 72 over it, 1.72\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/driver.rs"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"2763a91f7f6e57c3f72c762f471ec5f729b85c40db302e72a95207c1d12c893a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ComputeRuntime.start_sandbox_with_intent: MethodTooLong \u2014 start_sandbox_with_intent runs 172 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 72 over it, 1.72\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":2230}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c70e87189356dc3f4f6165d510510a961c3a220806498e2ff424f86e24808b4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/cli.rs: FileTooLong \u2014 857 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 357 over it, 1.71\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/cli.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb17d1087514f9251f0ec7e42443439b6698715543b095d27c84e991c5e8819"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/secrets.rs: FileTooLong \u2014 851 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 40 free functions. The bar is 500 significant lines; this is 351 over it, 1.70\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/secrets.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2126fcf41e510a599f72c97ab69e757f7155bab9730646f02c52b68afaa1444b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SqliteStore: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/sqlite.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a377f51856f8079ab01fcc8d284b9173ae4fb96d1eca1669076a80e1b2a1801"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KubernetesComputeDriver.validate_capability_free_workload_pod: MethodTooLong \u2014 validate_capability_free_workload_pod runs 170 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":2697}}}],"partialFingerprints":{"codehealthFindingId/v1":"38eb8753720112b98bb683cf1a2cd8f05dc4ae670f2de24087f21d9ee4aa8434"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/supervisor_session.rs: FileTooLong \u2014 833 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 37 free functions. The bar is 500 significant lines; this is 333 over it, 1.67\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/supervisor_session.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1e30affafe5b7730ec682040cbd0e5542b15d7c8317d41558aee0a095da8d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_cli::commands::provider::provider_create_with_options: FunctionTooLong \u2014 openshell_cli::commands::provider::provider_create_with_options runs 166 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8525373942f4c3b48b6c9452e44f7431cc3081bed07ffcf7d4bc928e921f06"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 829 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 37 free functions. The bar is 500 significant lines; this is 329 over it, 1.66\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy-schema/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fdb84ecab8bba7d9a69da2737b2ed6a8726645e2d3aba5142f5b94a881c48c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/driver.rs: FileTooLong \u2014 827 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 327 over it, 1.65\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/driver.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3e22dcce1f20adb55c70ed1efa3487f94c91a1cade8adf813e1efb16b8cc9a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_driver_kubernetes::driver::apply_supervisor_sandbox_runtime_boundary: FunctionTooLong \u2014 openshell_driver_kubernetes::driver::apply_supervisor_sandbox_runtime_boundary runs 165 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":6973}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa0c33f041c0c974a6c6f7bee8398d22253d20b5a0537c0100638271cacc1978"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor_network::l7::relay::relay_passthrough_with_credentials: FunctionTooLong \u2014 openshell_supervisor_network::l7::relay::relay_passthrough_with_credentials runs 165 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":3506}}}],"partialFingerprints":{"codehealthFindingId/v1":"a713deb919dfeeaf5110dd3612ef07a3bb64cf06ac997132969d699c760fb671"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor_network::l7::rest::http_response::relay_response: FunctionTooLong \u2014 openshell_supervisor_network::l7::rest::http_response::relay_response runs 164 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 64 over it, 1.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c184b2bca080adeff03d1065e534c038e94a13428f5dcb9a7e323b725a111b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/create_provider.rs: FileTooLong \u2014 819 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 319 over it, 1.64\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb11cd65624643cafd5e44b07d123a5478d912397dbe80737a2b8c1d1b0190d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor::endpoint_status::run_reporter: FunctionTooLong \u2014 openshell_supervisor::endpoint_status::run_reporter runs 162 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/endpoint_status.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"16546fefbd1c7798cb9210f7c93e77e78778a11f26f3d37a89b338f46b1c2d5a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.provider_detail_from_provider: MethodTooLong \u2014 provider_detail_from_provider runs 161 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":3294}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac7af5c5be8b27d739dd8e0bd83fdf14ecbda7d98bf5f609d2132e5d58e3c83"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/provider_credentials.rs: FileTooLong \u2014 803 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 73% of them inside a single declaration: ProviderCredentialState (2 blocks, 83-955). The bar is 500 significant lines; this is 303 over it, 1.61\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/provider_credentials.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"997dff4df133d481f075db8a57c687dcc734b09f0d66f657453325f6eed70de1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_driver_podman::container::build_isolation_specs: FunctionTooLong \u2014 openshell_driver_podman::container::build_isolation_specs runs 160 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/container.rs"},"region":{"startLine":1589}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f34b8e87b12a29bf29324354d2f34f4e6e9230e0962bd9d1e3984951931d09"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/controller.rs: FileTooLong \u2014 795 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 75% of them inside a single declaration: SupervisorHostController (4 blocks, 360-1250). The bar is 500 significant lines; this is 295 over it, 1.59\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-control/src/controller.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64544f07334d2bd5ef2e057bf3b96d4431e28b3e4763153f6853e71e724e87af"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_tui::ui::create_sandbox::draw_form: FunctionTooLong \u2014 openshell_tui::ui::create_sandbox::draw_form runs 158 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/create_sandbox.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3668a3c22d71cd00d50444ae63f0a18b91f856cd4b8cd4f1390306193fc5090"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mutation_replay/ordinary.rs: FileTooLong \u2014 785 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 285 over it, 1.57\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/mutation_replay/ordinary.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b8e5f2d1ec72e057e10b6b1b60a877464b9563bbd4b5545cb2a9fbbf7f29c3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DockerComputeDriver: TooManyMethods \u2014 47 methods. The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"9100184b85eea9357521bfc7ad9bb640dcfcd90b43a6737a92759a4ed8d47354"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/rootfs.rs: FileTooLong \u2014 783 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 54 free functions. The bar is 500 significant lines; this is 283 over it, 1.57\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/rootfs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60922897615354bcd7e847b072d8e2423d77ffa0ab5d703c2b3f162061cf8bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_driver_docker::build_container_create_body_for_image: FunctionTooLong \u2014 openshell_driver_docker::build_container_create_body_for_image runs 155 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":5980}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ef95bbb240f396f4e3ac57b3a153d6649c2fad12324ef0b7fdfd4c277c0d2c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Store: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/mod.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ca61878cc931efd76eeccd194ed852b28c5b142bbf838981ba8bfe3a48b195"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SupervisorSessionRegistry: TooManyMethods \u2014 46 methods, declared across 2 files: src/supervisor_session.rs (37), config_delivery/session.rs (9). The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_session.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"11cb7250fdf709ec10281130b19ffbd140c1b96e8bdcdc5d9e5a204e5b8c580b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::policy::build_sandbox_config_snapshot_from_inputs: FunctionTooLong \u2014 openshell_server::grpc::policy::build_sandbox_config_snapshot_from_inputs runs 153 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":2917}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa9e3c452d09174ad89a1ed163168b77da7902b573e01dd3e0e9ad74107ef07"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::service_routing::proxy_to_endpoint: FunctionTooLong \u2014 openshell_server::service_routing::proxy_to_endpoint runs 153 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/service_routing.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"0572e569615c091047a7dcc64f9bc3a7259c388244379cdcd88998538376aa8e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor::config_runtime::run_policy_poll_loop_with_client: FunctionTooLong \u2014 openshell_supervisor::config_runtime::run_policy_poll_loop_with_client runs 153 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/config_runtime.rs"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a8cff2f93a684b08f7e3ae6e6f40992f03d5f16497f5cac5166eee5aef4970"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SandboxClient: ClassTooLong \u2014 606 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 206 over it, 1.52\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"747ae40c391742de3443f3ff1b8025124ddda1047b2dab69dc81231f7f0b88eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: policy/endpoint_status.rs: FileTooLong \u2014 756 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 256 over it, 1.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy/endpoint_status.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a871fc171559e2ab914bd8fa42f33510edac7542ce617baacad381e6f9a843"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PolicyViolation.fmt: MethodTooLong \u2014 fmt runs 151 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/lib.rs"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2e3d1e69bdc98bf7a5939d8281fe4ee12841df6bec89318d3843c948eeb793"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::policy::build_provider_environment_snapshot_from_inputs: FunctionTooLong \u2014 openshell_server::grpc::policy::build_provider_environment_snapshot_from_inputs runs 151 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":3914}}}],"partialFingerprints":{"codehealthFindingId/v1":"000ce97d4b62e0cb91c513bf443d4c47546861d0bd6a3f22e610f6137281d359"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/service_routing.rs: FileTooLong \u2014 750 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 44 free functions. The bar is 500 significant lines; this is 250 over it, 1.50\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/service_routing.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a955fde593a0813a61d342668e07f379d6059687224912a411f4948dbeebdda"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SupervisorHostController: ClassTooLong \u2014 598 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 33 methods, 4 blocks, lines 360-1250. The bar is 400 significant lines; this is 198 over it, 1.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-control/src/controller.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b66a57ac1d8d75e80e988c472539d1927e473ac06efe21dd6aaa0c93021742e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/client.rs: FileTooLong \u2014 746 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 65% of them inside a single declaration: PodmanClient (2 blocks, 346-1082). The bar is 500 significant lines; this is 246 over it, 1.49\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/client.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e07cb328a6a4df9cc58483dd6a04ddeed644227dec61a956bd50bafbb14bb0b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ComputeRuntime.restart_sandbox_runtime: MethodTooLong \u2014 restart_sandbox_runtime runs 149 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":4808}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02c70e66d1bbdf8cb68c568b0aefda01ce98fe38315ed4e47837d06b8ab938b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::provider::exchange_provider_subject_token_inner: FunctionTooLong \u2014 openshell_server::grpc::provider::exchange_provider_subject_token_inner runs 149 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":4282}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a094c54f1fc0c00bc75f6e305acf8032160dda6bb87f287f58a342dcf8fcd8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProviderCredentialState: ClassTooLong \u2014 590 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 28 methods, 2 blocks, lines 83-955. The bar is 400 significant lines; this is 190 over it, 1.48\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/provider_credentials.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7a674acf88c9e359fdce24f37d9d2e847c2293cc0ae711b478823404a4550f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::provider::profile_attached_sandbox_diagnostics: FunctionTooLong \u2014 openshell_server::grpc::provider::profile_attached_sandbox_diagnostics runs 146 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":3808}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06903e45710636cf46a84b3863f71d45fa7c1affd2cd3a6e3cd561aa147f53d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 725 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 225 over it, 1.45\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vault/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ecbbf9afe8e9f7f7a65d44efc438fd9dbab083015bb792e57290899d4f51b9e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: l7/middleware.rs: FileTooLong \u2014 725 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 225 over it, 1.45\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/middleware.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cad423deeae309a0995e014c378e54bc3c2312274578d42d1e1d34263524348"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DockerComputeDriver.new: MethodTooLong \u2014 new runs 145 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"e30cbc92316756f68c2cf5e2c5d877b43d0b8602c3c7f9ff5c740826617df1b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_tui::ui::create_provider::draw_update: FunctionTooLong \u2014 openshell_tui::ui::create_provider::draw_update runs 145 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3d5e2b5a93028400055799a7a34dfadf084c99e9c6ebedbdc6c1616677c090"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: KubernetesComputeConfig: TooManyFields \u2014 43 stored fields beside 21 methods. The bar is 30 stored fields; this is 13 over it, 1.43\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/config.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbc8a761ea080d78588f239403c8e8801e16867b314ddea9c56907aac0819b3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Args: TooManyFields \u2014 43 stored fields. The bar is 30 stored fields; this is 13 over it, 1.43\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/main.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c01c8d2ce54fd2cc0f1c852c72c1a02e629089787c18fcabdd5887188d5a29"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_cli::commands::provider::format_provider_profile_details: FunctionTooLong \u2014 openshell_cli::commands::provider::format_provider_profile_details runs 141 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":2529}}}],"partialFingerprints":{"codehealthFindingId/v1":"7147c04fc29aa55aba2ef43efb6edbb2ee8ce9b3642342902c09a44740e74f34"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.handle_draft_key: MethodTooLong \u2014 handle_draft_key runs 141 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":1947}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3049c543bd23c7125ff6d8fa8e07e8aef296b23350972353098d8ab4f85d4aa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Args: TooManyFields \u2014 42 stored fields. The bar is 30 stored fields; this is 12 over it, 1.40\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/main.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ce99c9c0826ebc72b8156539231bee8b27b9154ac420fd2b4919e29c843460"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ExecutionPlan.load: MethodTooLong \u2014 load runs 139 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-gateway-interceptors/src/plan.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa64b9c084f55c6bc8f3be73f3ecc7c6469999a668f5997377877b64d7fbc4e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::policy::handle_report_sandbox_configuration: FunctionTooLong \u2014 openshell_server::grpc::policy::handle_report_sandbox_configuration runs 139 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":5029}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e0b387ae76fe73e365726eb1e0a4dd73ceba5bb778fdd7e7a949b6ac1e0780"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::sandbox::run_interactive_exec_with_russh: FunctionTooLong \u2014 openshell_server::grpc::sandbox::run_interactive_exec_with_russh runs 139 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":3770}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bdfc2d0404d9d6ac784ed008c75124aab3bb514c3aa13431d1a3570f7f72504"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::sandbox::handle_attach_sandbox_provider: FunctionTooLong \u2014 openshell_server::grpc::sandbox::handle_attach_sandbox_provider runs 138 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63fc7510fd0f777385cb062878fd0e1237ae0ba45a864f7c740032db4b6b405"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VmDriver.spawn_host_supervisor: MethodTooLong \u2014 spawn_host_supervisor runs 137 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca3b96b418e6bc1dc8dff6e2b5959ac8539c23d4b9096788c004c6c28f519e1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OpenShellClient: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sdk/src/client.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4fa6140bca1efc98450f292fed402ca1cbe0d085bd190487385647fcc11b16"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OpaEngine: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb3df53295a8a9c948866ad705fc90200d40ae34a25bc5171089d9212c87073"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/plan.rs: FileTooLong \u2014 680 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 180 over it, 1.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-gateway-interceptors/src/plan.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c299165f79acfef658fd69cda45d06ed93c0eb03898edca20ad81af1cf1b9c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_policy::from_proto: FunctionTooLong \u2014 openshell_policy::from_proto runs 136 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/lib.rs"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2e25f078cd157fcada898a3ab07f9885c3574ccf9d9a49191149d5af299e22"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/common.rs: FileTooLong \u2014 678 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 39 free functions. The bar is 500 significant lines; this is 178 over it, 1.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/common.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd408eb2a63a8a2a440f5e35f69bb9212ea1f0abc746a73799c9d23e9ba77b3e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: l7/jsonrpc.rs: FileTooLong \u2014 678 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 178 over it, 1.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/jsonrpc.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97e42285cfb39be733eed2e1849670ebd0e5a8f3f67693206860fb9e6aa4c704"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/certgen.rs: FileTooLong \u2014 673 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 173 over it, 1.35\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/certgen.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05e08e2e28c40f5c12c72e63ad0f6cbcbe40db0adf1ef7dfe1cae8ed3f89268"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_cli::policy_update::build_policy_update_plan: FunctionTooLong \u2014 openshell_cli::policy_update::build_policy_update_plan runs 134 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/policy_update.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3fa8768688e871635d20e4b3173dd813e11ca174e2a68500d52e60a31721727"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SshHandler.subsystem_request: MethodTooLong \u2014 subsystem_request runs 134 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/ssh.rs"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d1bd3c2e847f95ee5b15bc2de31dbfc9e67600e44d50bc002db7a46324843b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: grpc/mod.rs: FileTooLong \u2014 667 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 74% of them inside a single declaration: OpenShellService (3 blocks, 228-938). The bar is 500 significant lines; this is 167 over it, 1.33\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be198034f9176ca5e2ab858845dc29cb881f6f6f8ca9bafe0b693b2591ed38f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::provider_refresh::apply_minted_credential: FunctionTooLong \u2014 openshell_server::provider_refresh::apply_minted_credential runs 133 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/provider_refresh.rs"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"56776cfbbe2b0e3d714fb37cfffd567b38ef03155a9e8bab057ed00cfa7f4e82"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/forward.rs: FileTooLong \u2014 662 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 40 free functions. The bar is 500 significant lines; this is 162 over it, 1.32\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/forward.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da45503e182b65d8df5ebaca535bb74a291f569d3b3a60ca4804a1ec377d6d1a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OpenShellClient: ClassTooLong \u2014 528 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 41 methods, 2 blocks, lines 37-903. The bar is 400 significant lines; this is 128 over it, 1.32\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sdk/src/client.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb895bbf5ec0dd09606a86f5ec8f374c4539515724566529972a7b6ec9632a72"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/sandbox_draft.rs: FileTooLong \u2014 658 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 158 over it, 1.32\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/sandbox_draft.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea0e201a34dd21160ff80e9d10f4c1030fd0ff0377507f223d383d7da1aba97"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_cli::commands::provider::auto_create_provider: FunctionTooLong \u2014 openshell_cli::commands::provider::auto_create_provider runs 131 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a9130f6efb41bc49fc2e0bbea584011171ec17a5411a86fd48483102c1adaa"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::build_compute_runtime: FunctionTooLong \u2014 openshell_server::build_compute_runtime runs 131 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/lib.rs"},"region":{"startLine":1801}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3850ae027e3acd5df2375bf2c2908dfe3cf81169540bd9844254ed5e7edddd6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChainRunner.preflight_websocket: MethodTooLong \u2014 preflight_websocket runs 131 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/websocket.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a92a17194645030c03ff2609821b8cc465264aad809583f705d9e143c9154d1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_tui::ui::sandbox_detail::draw: FunctionTooLong \u2014 openshell_tui::ui::sandbox_detail::draw runs 131 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/sandbox_detail.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"3028798aef9ffbd78985a8784a515108a0e096667747492f10566aef9621b8d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 653 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 32 free functions. The bar is 500 significant lines; this is 153 over it, 1.31\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-db-credstore/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6150502fec73d0d45b49dc7037627322d05c4d06af320d4fb5ad25f77a732c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_driver_podman::isolation::bootstrap_archives: FunctionTooLong \u2014 openshell_driver_podman::isolation::bootstrap_archives runs 130 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/isolation.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dacad1de73708411566350e34b775ad213e7dc5137bf2a8eed3288119ffcf65"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PolicyMergeError.fmt: MethodTooLong \u2014 fmt runs 130 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/merge.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"d218d828eaf0e1dc453953ae0f548d2856dfd509f9c9d841c86c3eeed5ebe511"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::provider::update_provider_record_validating: FunctionTooLong \u2014 openshell_server::grpc::provider::update_provider_record_validating runs 130 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"24399a2290770a14339a7f46ffcbb3356c8f78907a1e1dc7ed11f0fa99f6eda5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OpaEngine: ClassTooLong \u2014 516 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 41 methods, 2 blocks, lines 178-1142. The bar is 400 significant lines; this is 116 over it, 1.29\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"99edcbc521e860e08d51edcadcf2256ec3b20d3cd0895e8cc575a29fa81637c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::auth_rpc::handle_refresh_sandbox_token: FunctionTooLong \u2014 openshell_server::grpc::auth_rpc::handle_refresh_sandbox_token runs 129 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/auth_rpc.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa033479ecef1f6545043357026b379a077d62ff5f968115e23ba399ae070b4b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: grpc/validation.rs: FileTooLong \u2014 641 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 39 free functions. The bar is 500 significant lines; this is 141 over it, 1.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/validation.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba87e597163d18c78f671d2bc3ea069923499d12a6fb830b52e0e01774b497a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChainRunner: ClassTooLong \u2014 510 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 24 methods, 3 blocks, lines 580-2060. The bar is 400 significant lines; this is 110 over it, 1.28\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/lib.rs"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"27580f12e95a73b2b914651de2b4f904b39ac77b89e40b28dca1b5cb4a34423f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ComputeRuntime.reclaim_provisioning_timeout: MethodTooLong \u2014 reclaim_provisioning_timeout runs 127 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/provisioning_deadline.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc0241e55c6ab5ac872157598188f5927489fa65f564c9fd7757cea56b70aeb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConfigRuntime.apply_delivered_sandbox: MethodTooLong \u2014 apply_delivered_sandbox runs 127 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/config_runtime.rs"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5d343fb4dfdaeb6858d97e091369755ae51d099007227adabb48c52c9b7827"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_cli::run::sandbox_policy_update: FunctionTooLong \u2014 openshell_cli::run::sandbox_policy_update runs 126 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"crates/openshell-cli/src/run.rs"},"region":{"startLine":5876}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aedde6c8f83d85cce877295800702c30c28d2df4ad1f4228c54589299d9db55"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor::mechanistic_mapper::generate_proposals: FunctionTooLong \u2014 openshell_supervisor::mechanistic_mapper::generate_proposals runs 126 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"crates/openshell-supervisor/src/mechanistic_mapper.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf4dbe943420e738a7e390c591434dd86e13ea1fb35a263c2a8dac9b5a01588"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.new: MethodTooLong \u2014 new runs 126 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"crates/openshell-tui/src/app.rs"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ad5fc92f2d73342e0a051780686a02bab3710a78a134899997debab5c0820d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/config_file.rs: FileTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 129 over it, 1.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/config_file.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b031d80c059b3f7d804089af58e52b26dbb0c0e53ce8fc0dce4909d3d50692d0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SupervisorSessionRegistry: ClassTooLong \u2014 500 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 46 methods, 3 blocks, lines 376-1181. The bar is 400 significant lines; this is 100 over it, 1.25\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_session.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77ae8e33230553a1cde19dccdb405bf46819e3656979fbf00d1bb51cafe99c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/protobuf.rs: FileTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 125 over it, 1.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox-backend/src/protobuf.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4857bddf7973747ff8a638a4933eafcb0f3ae83edc097992ceade4740019dc15"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::compute::apply_driver_snapshot: FunctionTooLong \u2014 openshell_server::compute::apply_driver_snapshot runs 125 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":7323}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95b7a1480a90313cff04b3030c50e2ece65349ae7616684d4f358a5b4aedcc9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HttpResponseSession: ClassTooLong \u2014 496 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 21 methods, 2 blocks, lines 225-883. The bar is 400 significant lines; this is 96 over it, 1.24\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/response.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f46129454d2df0336d416f12a6e76d6fa04badae9812695c2eca5dccc4735cc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ContainerSpec: TooManyFields \u2014 37 stored fields. The bar is 30 stored fields; this is 7 over it, 1.23\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/container.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5ff6a0f814416487fa0aea57f44229ac955b72b9c7d426ce723ed53c533308"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Args: TooManyFields \u2014 37 stored fields. The bar is 30 stored fields; this is 7 over it, 1.23\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/main.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08c76eb27df26ea2685bc4f5df3b2ae6fe55b0ff2d421450e79b34b283da142"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OpenShellService: ClassTooLong \u2014 493 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 1 methods, 3 blocks, lines 228-938. The bar is 400 significant lines; this is 93 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/mod.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"805ae5d73b809e3c6401e6cb791b230af582860c0b7a7270f0d752907d552d4f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DockerComputeDriver.start_sandbox_with_lifecycle_fence: MethodTooLong \u2014 start_sandbox_with_lifecycle_fence runs 123 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":2473}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f7386c6bcc4e192714830691d909611fbc0eb7ae6ec26346357bc70ede6bc2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::policy::evaluate_proposal_candidate: FunctionTooLong \u2014 openshell_server::grpc::policy::evaluate_proposal_candidate runs 123 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5d7c2cd217e8582e516c3518e5f283157423855cd8cf09c5e1b98ca40ef3bb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MiddlewareRegistry.connect_services_inner: MethodTooLong \u2014 connect_services_inner runs 123 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/lib.rs"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de1cc2e928a3a5c65611cc1373e7fbfc1b522300bc9921d72bed12eb8b92011"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SandboxClient.execInteractive: MethodTooLong \u2014 execInteractive runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8f2b138e8bc1ff655eca690ac68f86f157c45ef9f3ede3d25d3224d4d25595"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/sandbox_runtime.rs: FileTooLong \u2014 614 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 114 over it, 1.23\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/sandbox_runtime.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9605dd53d84b45d7173a52a7d207b97dda05b5d8415bd9b776aa27be55c84f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/config.rs: FileTooLong \u2014 611 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 111 over it, 1.22\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20eb3d31ed0ea02a34b134b0c9f7978f78bf4fc9a24f5ac467add5865eb8a5c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_prover::queries::check_credential_safety: FunctionTooLong \u2014 openshell_prover::queries::check_credential_safety runs 122 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"crates/openshell-prover/src/queries.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"980c8de562c53213dc8df6a0cd55d2ff96384c912083e7eaeec9aed1b2252800"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scenarios/file_transfer.rs: FileTooLong \u2014 609 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 109 over it, 1.22\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-conformance/src/scenarios/file_transfer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e276cb4f5905e6842aacc77f186584d13f8d2bb7a7bde9b735944a1bf21aaca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config_delivery/session.rs: FileTooLong \u2014 606 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 106 over it, 1.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/config_delivery/session.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad215c16122ed32f8de89e5ed99971a622c7cf49515ff81e868bab621b99b75"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KubernetesSandboxRuntimeBoundarySpec.provision: MethodTooLong \u2014 provision runs 121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/isolation.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c1510c9b2889bebea63122e1ff07eb86ce821729f3571bf9f6daa230d22a958"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PodmanClient: ClassTooLong \u2014 483 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 32 methods, 2 blocks, lines 346-1082. The bar is 400 significant lines; this is 83 over it, 1.21\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/client.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b95dc5e9fe3484f0620fed787800aeff38321d78950d6195fd508d4e2c48b19"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LayerApplier: ClassTooLong \u2014 483 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 23 methods, 2 blocks, lines 27-710. The bar is 400 significant lines; this is 83 over it, 1.21\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/layer_applier.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ccf6eaa590acd1c657a5d29230faace8190f2e3d7bc82fdb2438f3632dc954"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/config.rs: FileTooLong \u2014 603 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 103 over it, 1.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"934b04aba1dcb4592d32a9c80033156c552a743568e4a694a7fe807e9466c9a5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ComputeRuntime.set_supervisor_session_state_from_snapshot: MethodTooLong \u2014 set_supervisor_session_state_from_snapshot runs 120 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":5653}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f81945b22d4aa17bc0e7153fa572802590bb0a73fd0d306e08baede88aca14"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AuthGrpcRouter.call: MethodTooLong \u2014 call runs 120 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/multiplex.rs"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7827fcec1246e9a8dbbc38612618f50b94e2d61185de2617f81cc701c00ab0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_cli::commands::provider::provider_update: FunctionTooLong \u2014 openshell_cli::commands::provider::provider_update runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":2739}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c4d41e67a9b28db2a5a67f042ee9b265300e6233e66385b9749373f23ee7fd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VmDriver.restore_persisted_sandbox: MethodTooLong \u2014 restore_persisted_sandbox runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":2367}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c1c0c0ad8baea7d360f83d320e5987a9c814784681eb49650f6afd8fbd9121"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VmDriver.ensure_cached_registry_rootfs_image: MethodTooLong \u2014 ensure_cached_registry_rootfs_image runs 119 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":3351}}}],"partialFingerprints":{"codehealthFindingId/v1":"469aa463f6259bf4089aab5979b3648214fe88003987c470f9534db668940d66"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: fake/sandbox.go: FileTooLong \u2014 594 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 94 over it, 1.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/sandbox.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad19f2ec25de5b18b63f332ac4866d4eb6084cffbe2cb670f4e7d4448b9a690"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: grpc/mutation_replay.rs: FileTooLong \u2014 592 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 92 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/mutation_replay.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb08a39320802c27ca8ec8ddc2463d243755bc4d0b8a1871095ea14d2f2f72f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_driver_kubernetes::driver::sandbox_template_to_k8s_with_validated_config: FunctionTooLong \u2014 openshell_driver_kubernetes::driver::sandbox_template_to_k8s_with_validated_config runs 118 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":7532}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2817db49226261f05165fbacc0edb53450de60a6d01583cc96ae0cc3fe4e8a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::policy::apply_merge_operations_with_retry: FunctionTooLong \u2014 openshell_server::grpc::policy::apply_merge_operations_with_retry runs 118 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":7617}}}],"partialFingerprints":{"codehealthFindingId/v1":"955abf04cfe35aa890e968e5191581697bbe58faea9de380be6e3b4181845434"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor_network::host::start_host_proxy: FunctionTooLong \u2014 openshell_supervisor_network::host::start_host_proxy runs 118 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/host.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5fa69844351041d6216e41f986722e52f7e9167857ce543b2c81ae2dc886e34"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/provider_profile_sources.rs: FileTooLong \u2014 589 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 89 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/provider_profile_sources.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58731f772285e8f0eb3e122c472cc256f1521971baf203ca2dbfaf22f77a5a7f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: auth/oidc.rs: FileTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 85 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/auth/oidc.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa2590d638e82ef9a1b6af378b5d1be6c957f2fb01180df446d1a7c2395441d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_cli::run::sandbox_exec_grpc: FunctionTooLong \u2014 openshell_cli::run::sandbox_exec_grpc runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":1987}}}],"partialFingerprints":{"codehealthFindingId/v1":"b36e947ee177d5fb5266d6aabc8debd0a149e13fed168b12666a588ad480e617"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CredentialRuntime: ClassTooLong \u2014 460 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 20 methods, 2 blocks, lines 139-802. The bar is 400 significant lines; this is 60 over it, 1.15\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/credentials.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1fa736df0ad5bd881e82df3b32a0e2d4d36dee2b4a9e4ae58efb6a1a4ec800"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VmDriver.ensure_prepared_registry_image_disk: MethodTooLong \u2014 ensure_prepared_registry_image_disk runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":3908}}}],"partialFingerprints":{"codehealthFindingId/v1":"2885713163327e59674dd6c520245acceb8d150d155a8619e5f2bc5db9b82964"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ComputeRuntime.complete_sandbox_start: MethodTooLong \u2014 complete_sandbox_start runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":2462}}}],"partialFingerprints":{"codehealthFindingId/v1":"5edc8d4b1be325761da3d35f7646feec460b38a760e7f7dae2ee210ec63addef"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor_process::supervisor_session::run_single_session: FunctionTooLong \u2014 openshell_supervisor_process::supervisor_session::run_single_session runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/supervisor_session.rs"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e02164aebc8ac650e8c6e075c98b4b61fc68a384569d36e40561f3ec549a371"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_tui::apply_sandbox_refresh: FunctionTooLong \u2014 openshell_tui::apply_sandbox_refresh runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":2752}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d9e4b4abaf2c8723be55fc4ba2d4614e2636ba8c58206edddce37e7f883ccd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: compute/provisioning_deadline.rs: FileTooLong \u2014 568 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 68 over it, 1.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/provisioning_deadline.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1481239f011db774e3557879bb7045f34444f9825a2102205fcefdf414df94"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: PodmanComputeConfig: TooManyFields \u2014 34 stored fields beside 11 methods. The bar is 30 stored fields; this is 4 over it, 1.13\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/config.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a99ef5bcf40d9920cadc7d5e7a17e95bb7e2a49772ce046ce743b5f99d95090"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_cli::run::sandbox_list: FunctionTooLong \u2014 openshell_cli::run::sandbox_list runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":2855}}}],"partialFingerprints":{"codehealthFindingId/v1":"84eaae00415de12b3cad26a7d70e7ff10c3b13bf0d869997c13b9883bbe0b3a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::policy::auto_approve_chunk: FunctionTooLong \u2014 openshell_server::grpc::policy::auto_approve_chunk runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":1803}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70e0ed9da3f8e9fdd9eaf24950c4e12a5667a3ad54a085874ed6d9828401266"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::provider::handle_update_provider_profiles: FunctionTooLong \u2014 openshell_server::grpc::provider::handle_update_provider_profiles runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":3054}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f73754946c20af0955f93cde19c94a007b5520a1169bf2ea88db5fe1faeb1e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::workspace::handle_delete_workspace: FunctionTooLong \u2014 openshell_server::grpc::workspace::handle_delete_workspace runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/workspace.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a217cf3febb68c351bbb4d1de23b9add5737e0e9cb0db1717c3af49970e0693"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/upstream_proxy.rs: FileTooLong \u2014 561 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 61 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/upstream_proxy.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72e66ec093213c900ac1aa1d350d6e52832cf0cd5f173f4901d4dd957c51a9e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_cli::commands::gateway::gateway_status: FunctionTooLong \u2014 openshell_cli::commands::gateway::gateway_status runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b9b8b3da6f811cf91330d3e7856436e378306e5890940b64ac315b5ac1dad7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_driver_kubernetes::main: FunctionTooLong \u2014 openshell_driver_kubernetes::main runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/main.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"063ce28ce2c33e12e9877705d09b564a3814689f037296d913fca7861e04e26d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VmDriver.build_cached_registry_image_rootfs_image: MethodTooLong \u2014 build_cached_registry_image_rootfs_image runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":4415}}}],"partialFingerprints":{"codehealthFindingId/v1":"684c89717ab0ee66ce9f73d039936b3700de5327fe50c296b170d672ab9c4294"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_tui::ui::sandbox_draft::draw: FunctionTooLong \u2014 openshell_tui::ui::sandbox_draft::draw runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/sandbox_draft.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"00014aebeee6ecbc8e077895a7bc0add5214e273d35abd7730bd40c8fb890e51"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 51 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes-secrets/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c72b88c9e9d911f4aeeedd5f7ec30b77418c8bb4cc6c24d10201cf8f8aa296"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SandboxClient: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/openshell/sandbox.py"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"a118628d35e749a8ef496134c848ed0768d6fbcbca02f5aa65f9c889ca33f258"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: openshell_policy::ambiguity: TooManyFunctions \u2014 33 free functions. The bar is 30 free functions; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/ambiguity.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"8983f821e392684e7fb9f2166d670eff29b2a0804e79b4e40d0fffd629677b3b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SupervisorHostController: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-control/src/controller.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"afad9caed9d6c5d1ee46d8789f6c90fef6f24d2e61907057ed3d507a77519174"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_driver_docker::stage_docker_supervisor_bundle: FunctionTooLong \u2014 openshell_driver_docker::stage_docker_supervisor_bundle runs 110 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":4994}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d762c0a5d67a4c54fe1e32b1d3a5d834864a920263dad57b05adb8dde48331"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.handle_update_provider_key: MethodTooLong \u2014 handle_update_provider_key runs 110 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":3057}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed9bf7e0936702ede87a1f44c9fdb7b149098885cc36ff9f8de9bf2331bc944"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: RunArgs: TooManyFields \u2014 33 stored fields. The bar is 30 stored fields; this is 3 over it, 1.10\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/cli.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f42a5c647ea6b9ab734b00273a7cd24cafa7c5d45682a9d124caf097ab7058"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: GatewayFileSection: TooManyFields \u2014 33 stored fields. The bar is 30 stored fields; this is 3 over it, 1.10\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/config_file.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9f8334fbad78c27eec39ebac3fd04eddc6e82588e80f1e297c5c45ecf76565"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_policy::to_proto: FunctionTooLong \u2014 openshell_policy::to_proto runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"crates/openshell-policy/src/lib.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e06cc5507faa0d6ce57fd6c63ed885f4094beeb6a25a9c5646ad3034a61b34"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_supervisor::shared::run_platform: FunctionTooLong \u2014 openshell_supervisor::shared::run_platform runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"crates/openshell-supervisor/src/shared.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4170aa074a8bcd6ba550ca22a2abecf8b60baeb9b9c459ecfb57cd0a6f06e2b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config_delivery/mod.rs: FileTooLong \u2014 544 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 44 over it, 1.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/config_delivery/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01958810ce108d4e80551f1a2234adab83a83eeb5dc3b1b5a73dfa3895d464b2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VmDriver.create_sandbox: MethodTooLong \u2014 create_sandbox runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08cc4c7bbc81d6bd34ba34f339a114972d08d53ce5a5a29c0f0b09f7b9f5e1d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PolicyDnsService.answer_query: MethodTooLong \u2014 answer_query runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/policy_dns/mod.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"288ee0b80db3138b354c4bb8a3866f3c8117984ee988c5d6d43c941ad487e654"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.handle_logs_key: MethodTooLong \u2014 handle_logs_key runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":2161}}}],"partialFingerprints":{"codehealthFindingId/v1":"2319128009be28531ecc13e6b8120c68a6cd2f24c8085d55ea536f62e764ede2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/sync_docs_website.py: FileTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 38 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tasks/scripts/sync_docs_website.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1f135db333059a63fa0804b47e1bba6728a1809e0da656985832840a71b7d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/layer_applier.rs: FileTooLong \u2014 535 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 90% of them inside a single declaration: LayerApplier (2 blocks, 27-710). The bar is 500 significant lines; this is 35 over it, 1.07\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/layer_applier.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d124efa28dc8ae956705ba6416e961944e06c5130fe8ada9c98691d329dd0f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KubernetesComputeDriver.delete_sandbox_inner: MethodTooLong \u2014 delete_sandbox_inner runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":4361}}}],"partialFingerprints":{"codehealthFindingId/v1":"0149b407a11061d04e6daa7b09c90b95513369f98e7250b1cd4ebf8389a5f1f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::policy::handle_approve_draft_chunk_inner: FunctionTooLong \u2014 openshell_server::grpc::policy::handle_approve_draft_chunk_inner runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":6019}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d665b4bf946375fa976556f4a251cacd2763f4bd31beea223cf3c01b8687f9c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::provider_profile_sources::build_effective_profiles: FunctionTooLong \u2014 openshell_server::provider_profile_sources::build_effective_profiles runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/provider_profile_sources.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eaadaff0793b7006d5d68b2172c7cf257e973f1894e0dd7b6aa6e559dbf6c56"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_tui::ui::create_provider::draw_detail: FunctionTooLong \u2014 openshell_tui::ui::create_provider::draw_detail runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"c137142ebd74c9860aae4badeb10bf0a2deacf16e719d494b55938fdb11af747"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PodmanClient: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/client.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8db8d99e54268c7377a203b78f6499c24f6b052b4306448350a0220b26d75d9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ServerState: TooManyFields \u2014 32 stored fields beside 2 methods. The bar is 30 stored fields; this is 2 over it, 1.07\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/lib.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5b2d8e452f46b81d637fc3a84f6b0307624cd3b94d851d60211e4d55a12b84"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/main.rs: FileTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 30 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d0de78fdd83e11cb470bd1869eaaf6f62a2608334c01c7aed0ee5c7b43f56f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/runtime.rs: FileTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 30 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/runtime.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6b3cb11d0b9d27082671d1d164abb701e178bd0b39c14a32df56184d6aec15"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: grpc/provider_readiness.rs: FileTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 26 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider_readiness.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f510221a13ac7176d28afbb777450ec258109b953aad41b72416c49a8efe6cf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::gateway_metrics::describe_and_initialize: FunctionTooLong \u2014 openshell_server::gateway_metrics::describe_and_initialize runs 105 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/gateway_metrics.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddcd7c56bfe2a290ba12da767aef0cbb27a19bc4f6a1c30a0cc3c6beac1a032"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/policy_store.rs: FileTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 21 over it, 1.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/policy_store.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0d6134d1b093838ad377bb66a033e22ad024dd5e2a350959dea7a698fdac07"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/sandbox_instance_host.rs: FileTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 21 over it, 1.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/sandbox_instance_host.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a04d88b24684a92839127ba4c8b641048295ed602d3bb99506c4f3aa23c32d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_server::grpc::sandbox::run_exec_with_russh: FunctionTooLong \u2014 openshell_server::grpc::sandbox::run_exec_with_russh runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":4032}}}],"partialFingerprints":{"codehealthFindingId/v1":"470a3b4d795762df2c1914550caf27cc64dd08e24158241728ab4e6b136621cf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/main.rs: FileTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 15 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c90ef4d131cb4dfdbae4da56f1a9f65f2184891a112f4217fcb3fbc66cc8ed6d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openshell_driver_podman::container::build_env: FunctionTooLong \u2014 openshell_driver_podman::container::build_env runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/container.rs"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"799012a888d2d7f3e9086c4746b0ff6e6dca7aec00816e0a085a536bd387bcba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PodmanComputeDriver.start_sandbox: MethodTooLong \u2014 start_sandbox runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/driver.rs"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"09612bf04858b01c9c03c7ea0b42a301f00256af5489a20fb0d5785b02ff29c7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CredentialRuntime.resolve_provider_handles: MethodTooLong \u2014 resolve_provider_handles runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/credentials.rs"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"344c37432750558e9b7f697af0689b477919f58fc9d15a39517e0395a3a6573b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HttpResponseSession.apply_body_result: MethodTooLong \u2014 apply_body_result runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/response.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"b170be50fcad08c5361eab9cc77354c40156f0a64b5329b365817f0ffc0cf832"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/mod.rs: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 4 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"509bae0ddac7cb278b1f0e4594c0afdcd4c060874f782fb5acf9405183d675c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (175 shared lines): crates/openshell-sandbox/src/mechanistic_mapper.rs:60-242 | crates/openshell-supervisor/src/mechanistic_mapper.rs:60-243 \u2014 These two members are variants of one another: 175 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/mechanistic_mapper.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc5d0501c66e8d2197a1cd89075f43f24c0408e4ca569dc406aece0dc1c8fb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (84 shared lines): crates/openshell-server/src/grpc/sandbox.rs:3779-3979 | crates/openshell-server/src/grpc/sandbox.rs:4040-4182 \u2014 These two members are variants of one another: 84 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":3779}}}],"partialFingerprints":{"codehealthFindingId/v1":"2147c1ad5f9944e91c36867b29cc12f56cd74b4c7224f78730d50fe867e5b2c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (62 shared lines): crates/openshell-sandbox/src/process.rs:483-631 | crates/openshell-sandbox/src/process.rs:643-752 \u2014 These two members are variants of one another: 62 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/process.rs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"890b104961e76ef7b4435e2aeed447a15b94612861d858b1b13c97f4106b2760"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (59 shared lines): crates/openshell-driver-vm/src/driver.rs:4298-4412 | crates/openshell-driver-vm/src/driver.rs:4423-4557 \u2014 These two members are variants of one another: 59 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":4298}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc38e7bdf839305f95ad25eba743351592ec4c724b190009424125580f72e47"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (57 shared lines): crates/openshell-server/src/persistence/postgres.rs:1604-1698 | crates/openshell-server/src/persistence/sqlite.rs:1429-1526 \u2014 These two members are variants of one another: 57 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"1626429343cfc8b82266632624a6ca7de559163db7e63d8a00df49fe0e96163f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (54 shared lines): crates/openshell-server/src/grpc/sandbox.rs:1359-1549 | crates/openshell-server/src/grpc/sandbox.rs:1554-1677 \u2014 These two members are variants of one another: 54 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"df50e6701ef12cd652d78dd639aec473c3636544afdb3598bb8a60a1743f5dd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (53 shared lines): crates/openshell-tui/src/lib.rs:948-1069 | crates/openshell-tui/src/lib.rs:1083-1198 \u2014 These two members are variants of one another: 53 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d8197681e5a6c91168aeac7d10334b785080a34292ed66f221ab289154899c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (52 shared lines): crates/openshell-sandbox/src/boundary_exec.rs:208-296 | crates/openshell-sandbox/src/boundary_exec.rs:298-391 \u2014 These two members are variants of one another: 52 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/boundary_exec.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"78509e6a603a55d3c29046427c49641de1583ce37452b6e64e65f82bb8304345"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (42 shared lines): crates/openshell-cli/src/commands/provider.rs:144-217 | crates/openshell-cli/src/commands/provider.rs:227-296 \u2014 These two members are variants of one another: 42 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"663beb8bba2b3275ec031c8dc395a1de79e53b2dfdcd8d2a4d3eca79d1c6a772"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (39 shared lines): sdk/go/openshell/v1/ssh_client.go:55-140 | sdk/go/openshell/v1/tcp_client.go:30-84 \u2014 These two members are variants of one another: 39 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/ssh_client.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ec323aff544bf261cbf0646c9f71fc339de72aad39c17c89cced112c9fa77b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (24 shared lines): crates/openshell-server/src/persistence/postgres.rs:358-392 | crates/openshell-server/src/persistence/sqlite.rs:328-356 \u2014 These two members are variants of one another: 24 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"779db60af9d8a626ac1164c4174a2ec47520b76e4311d588353524e03c03f4b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): crates/openshell-server/src/persistence/postgres.rs:1165-1184 | crates/openshell-server/src/persistence/postgres.rs:1191-1209 | crates/openshell-server/src/persistence/postgres.rs:1342-1369 | crates/openshell-server/src/persistence/postgres.rs:1379-1414 | crates/openshell-server/src/persistence/postgres.rs:1422-1441 | crates/openshell-server/src/persistence/postgres.rs:1450-1476 | crates/openshell-server/src/persistence/postgres.rs:1484-1509 | crates/openshell-server/src/persistence/sqlite.rs:960-979 | crates/openshell-server/src/persistence/sqlite.rs:986-1004 | crates/openshell-server/src/persistence/sqlite.rs:1171-1198 | crates/openshell-server/src/persistence/sqlite.rs:1277-1296 \u2014 These 11 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 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"06183d82858e4c4844ed32d30b8fec45c320f34a591e5815eec8db0a805a5fc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): crates/openshell-server/src/grpc/sandbox.rs:1305-1354 | crates/openshell-server/src/grpc/sandbox.rs:1554-1677 | crates/openshell-server/src/grpc/sandbox.rs:1767-1786 | crates/openshell-server/src/grpc/sandbox.rs:1808-1841 | crates/openshell-server/src/grpc/sandbox.rs:1863-1882 | crates/openshell-server/src/grpc/sandbox.rs:1904-1938 | crates/openshell-server/src/grpc/sandbox.rs:2036-2594 | crates/openshell-server/src/grpc/sandbox.rs:3305-3392 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":1305}}}],"partialFingerprints":{"codehealthFindingId/v1":"0862050d310aef5e5c02d24d306ca131d5f77f3ca45a580c9992cafba04b5e80"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): crates/openshell-server/src/compute/mod.rs:1534-1775 | crates/openshell-server/src/grpc/provider.rs:148-277 | crates/openshell-server/src/grpc/provider.rs:382-571 | crates/openshell-server/src/grpc/provider.rs:2962-3052 | crates/openshell-server/src/grpc/sandbox.rs:3305-3392 | crates/openshell-server/src/grpc/sandbox.rs:3397-3472 | crates/openshell-server/src/grpc/workspace.rs:484-575 \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":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab103af89c283d03e154e37e79fc785cdcdc8a08d046c5d4da74caa2e883357"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): crates/openshell-server/src/grpc/policy.rs:6022-6154 | crates/openshell-server/src/grpc/policy.rs:6170-6260 | crates/openshell-server/src/grpc/policy.rs:6276-6575 | crates/openshell-server/src/grpc/policy.rs:6580-6640 | crates/openshell-server/src/grpc/policy.rs:6656-6741 | crates/openshell-server/src/grpc/policy.rs:6746-6778 \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":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":6022}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6432caad1a17e81cf5cea4384a190c750148a298795d67c4ad9a89aa37ecd25"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): sdk/go/openshell/v1/fake/sandbox.go:490-514 | sdk/go/openshell/v1/fake/sandbox.go:517-541 | sdk/go/openshell/v1/fake/sandbox.go:583-613 | sdk/go/openshell/v1/fake/sandbox.go:616-658 | sdk/go/openshell/v1/fake/sandbox.go:804-841 | sdk/go/openshell/v1/fake/sandbox.go:847-892 \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":"sdk/go/openshell/v1/fake/sandbox.go"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5fae7e83ecfc8bbc852ff0dea1019d543e3f52af8380bebc6d53018a777103"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crates/openshell-sdk/src/client.rs:201-226 | crates/openshell-sdk/src/client.rs:240-265 | crates/openshell-sdk/src/client.rs:315-344 | crates/openshell-sdk/src/client.rs:505-534 | crates/openshell-sdk/src/client.rs:583-611 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sdk/src/client.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"df860799bc84f02b1b8c5666745999d34d28b24d8178818a1f61dcd46d3253c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crates/openshell-supervisor-network/src/l7/relay.rs:1161-1637 | crates/openshell-supervisor-network/src/l7/relay.rs:2030-2363 | crates/openshell-supervisor-network/src/l7/relay.rs:2448-2715 | crates/openshell-supervisor-network/src/l7/relay.rs:2727-3003 | crates/openshell-supervisor-network/src/l7/relay.rs:3516-3733 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d34cf35cb4065bbbaf944c9fb59524a6e06f8ee3813b311d0dfae43b80561ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): sdk/go/openshell/v1/internal/converter/provider.go:15-58 | sdk/go/openshell/v1/internal/converter/sandbox.go:19-55 | sdk/go/openshell/v1/internal/converter/sandbox.go:403-423 | sdk/go/openshell/v1/internal/converter/workspace.go:13-38 | sdk/go/openshell/v1/internal/converter/workspace.go:53-73 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/internal/converter/provider.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc33858d00c8332cc371bd30622286f913ad1892b4e969398289cd5fca3aa191"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/openshell-driver-kubernetes/src/driver.rs:4901-4957 | crates/openshell-driver-kubernetes/src/driver.rs:4966-5000 | crates/openshell-driver-kubernetes/src/driver.rs:5007-5052 | crates/openshell-driver-kubernetes/src/driver.rs:5155-5189 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":4901}}}],"partialFingerprints":{"codehealthFindingId/v1":"d686ee9827c1211970a37fe48cace48ccbc56090f5f050a86a77f54441185973"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/openshell-ocsf/src/events/api_activity.rs:57-85 | crates/openshell-ocsf/src/events/http_activity.rs:71-96 | crates/openshell-ocsf/src/events/network_activity.rs:67-91 | crates/openshell-ocsf/src/events/ssh_activity.rs:61-85 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-ocsf/src/events/api_activity.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f557d859d24cca0ce4785118a43834bc6862022d3ee1a8005dd9b003b0c7e84b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/openshell-sandbox/src/boundary_server.rs:3003-3122 | crates/openshell-sandbox/src/boundary_server.rs:3144-3209 | crates/openshell-sandbox/src/boundary_server.rs:3344-3357 | crates/openshell-sandbox/src/boundary_server.rs:3721-3769 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/boundary_server.rs"},"region":{"startLine":3003}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06f1d6d154b6a110724000c0bc5538fe1858552bae60f01fbe356f671666136"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/openshell-sandbox/src/boundary_server.rs:3211-3251 | crates/openshell-sandbox/src/sandbox/linux/landlock.rs:243-408 | crates/openshell-sandbox/src/sandbox/linux/landlock.rs:419-450 | crates/openshell-sandbox/src/sandbox/linux/mod.rs:113-215 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/boundary_server.rs"},"region":{"startLine":3211}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac93f83aebd1ce719b2fa2c9e4d6d2bdbe3916ef1abba44ed976c3effaec0416"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/openshell-server/src/grpc/provider.rs:2811-2866 | crates/openshell-server/src/grpc/sandbox.rs:974-1026 | crates/openshell-server/src/grpc/sandbox.rs:1157-1209 | crates/openshell-server/src/grpc/service.rs:216-293 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":2811}}}],"partialFingerprints":{"codehealthFindingId/v1":"218fe5d38f659aeebc0274827a715acd130d2063f76ae5be81b214debaba3c0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/openshell-server/src/persistence/postgres.rs:1244-1333 | crates/openshell-server/src/persistence/sqlite.rs:1083-1162 | crates/openshell-server/src/persistence/sqlite.rs:1304-1323 | crates/openshell-server/src/persistence/sqlite.rs:1331-1349 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c70624ca51dd321276bd1de6e240ac616d6f6998a1da7ad0a3b3d9a9d0a29a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/openshell-tui/src/ui/global_settings.rs:13-99 | crates/openshell-tui/src/ui/providers.rs:16-110 | crates/openshell-tui/src/ui/providers.rs:112-216 | crates/openshell-tui/src/ui/sandboxes.rs:11-133 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/global_settings.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e817bb947324e1d4cb6079c86a80f230248ed6682a8ce1d0e2ae7e7fdadd64"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): sdk/go/openshell/v1/fake/config.go:25-33 | sdk/go/openshell/v1/fake/exec.go:27-35 | sdk/go/openshell/v1/fake/exec.go:38-46 | sdk/go/openshell/v1/fake/exec.go:49-57 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/config.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34fbc099f366b6e6dd74ef9e3e135f44777e86f58d11901d5347b239b0c533b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (93 lines \u00D7 2): crates/openshell-sandbox/src/mechanistic_mapper.rs:62-154 | crates/openshell-supervisor/src/mechanistic_mapper.rs:62-154 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/mechanistic_mapper.rs\u0060 and \u0060crates/openshell-supervisor/src/mechanistic_mapper.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/mechanistic_mapper.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c689876873c6e0d8533f5b0b1b630778f15cabf1e8cfa233a2daebaa28b03a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (76\u201377 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/relay.rs:1454-1529 | crates/openshell-supervisor-network/src/l7/relay.rs:2197-2273 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b554dcbee89c5733669439b476a0803a789e0c7d2e78689fcf941a06481890"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67\u201368 lines \u00D7 2): crates/openshell-cli/src/run.rs:5805-5872 | crates/openshell-cli/src/run.rs:5977-6043 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/run.rs"},"region":{"startLine":5805}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bfb1dd46ea4e3981b7e6244e1ab1292db29ba60b1c220a409644d16a6198f16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (65 lines \u00D7 2): crates/openshell-sandbox/src/mechanistic_mapper.rs:158-222 | crates/openshell-supervisor/src/mechanistic_mapper.rs:159-223 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/mechanistic_mapper.rs\u0060 and \u0060crates/openshell-supervisor/src/mechanistic_mapper.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/mechanistic_mapper.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"b114bc41bb4258712ececcbead5091d8dc2e8b0f3c94ea5319b9d3d8817a3373"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): crates/openshell-sandbox/src/activity_aggregator.rs:56-104 | crates/openshell-supervisor/src/activity_aggregator.rs:56-104 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/activity_aggregator.rs\u0060 and \u0060crates/openshell-supervisor/src/activity_aggregator.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/activity_aggregator.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f50f644ef7c486f3bc0ee982798c2cf572cda7bc694cd95e2ba16e5a3ec6415"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47\u201348 lines \u00D7 2): crates/openshell-tui/src/ui/providers.rs:61-107 | crates/openshell-tui/src/ui/providers.rs:166-213 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/providers.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2e7398a85a001910fdb74a8f98e02fb8093dc6bb391384c14cfa3394fb08c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44\u201345 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/relay.rs:1531-1574 | crates/openshell-supervisor-network/src/l7/relay.rs:2274-2318 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3916c3143bd9aef36c795cd84b0cbec5978b3700a25b7ef635c3b4d313d8d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): crates/openshell-sandbox/src/mechanistic_mapper.rs:286-328 | crates/openshell-supervisor/src/mechanistic_mapper.rs:287-329 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/mechanistic_mapper.rs\u0060 and \u0060crates/openshell-supervisor/src/mechanistic_mapper.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/mechanistic_mapper.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"063c244ab74ba1e1ae75236cf3eb97d57603ab1fca266b54bb719924e3d3f050"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:3784-3822 | crates/openshell-server/src/grpc/sandbox.rs:4044-4082 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":3784}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55cef25f24c8bed864905202df1ca3ba34da1a92ebb67b80b674ba864db8d37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): crates/openshell-sandbox/src/denial_aggregator.rs:77-113 | crates/openshell-supervisor/src/denial_aggregator.rs:77-113 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/denial_aggregator.rs\u0060 and \u0060crates/openshell-supervisor/src/denial_aggregator.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/denial_aggregator.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"244de2d4e0c455dfd6ddb4eaa58f57e4e1e469bc77058c41a1a4818c821808f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:3620-3656 | crates/openshell-server/src/grpc/sandbox.rs:3698-3734 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":3620}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b48e2410d7393ad15a9c9bb09154e17797f903e6d4e36b64e6fcfa1de1a31fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/relay.rs:2653-2689 | crates/openshell-supervisor-network/src/l7/relay.rs:2932-2968 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2653}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3a6ca8c9e4d1ece4006b4cdf1f148a92da03c1006d05347a6b879587b17691"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): crates/openshell-providers/src/profiles.rs:2821-2855 | crates/openshell-providers/src/profiles.rs:2907-2941 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":2821}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e070af17899a5c0bc73b918086bd4b449e10a048a85f2d5d4fa85022a1ba9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201335 lines \u00D7 2): crates/openshell-server/src/compute/mod.rs:2043-2077 | crates/openshell-server/src/compute/mod.rs:2410-2442 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":2043}}}],"partialFingerprints":{"codehealthFindingId/v1":"a39a0538eef89caa60a13b6d66e39f5e2b41ba1e5c4af8b967a7661435386752"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): crates/openshell-supervisor/src/endpoint_status.rs:167-201 | crates/openshell-supervisor/src/endpoint_status.rs:233-267 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/endpoint_status.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49b5bef62b883b147a2a6c4d5594cbead378c813b3e9af5a74cce76951c7476"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 2): crates/openshell-tui/src/app.rs:2644-2677 | crates/openshell-tui/src/app.rs:2704-2738 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/app.rs"},"region":{"startLine":2644}}}],"partialFingerprints":{"codehealthFindingId/v1":"74be208b5cbada8a7bf5c6c11579ed72aa9d35dfcdebd756a312138fb326f051"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): crates/openshell-sandbox/src/boundary_exec.rs:226-259 | crates/openshell-sandbox/src/boundary_exec.rs:336-369 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox/src/boundary_exec.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19920eee06991edf0a862bdb0950723bcd26edabd1e595a5af003c05be96d53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): crates/openshell-sandbox/src/mechanistic_mapper.rs:339-371 | crates/openshell-supervisor/src/mechanistic_mapper.rs:340-372 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/mechanistic_mapper.rs\u0060 and \u0060crates/openshell-supervisor/src/mechanistic_mapper.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/mechanistic_mapper.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"327fb770533c7cd95a03b21b7b1775d611e7d1d71a3dd0bc5251c4c74d8b4dfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201332 lines \u00D7 2): crates/openshell-sandbox/src/process.rs:505-536 | crates/openshell-sandbox/src/process.rs:667-696 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox/src/process.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"569f7b1603539416cef14ea25108cacad0621706f7359e7404812adbbd2f227e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): crates/openshell-sdk/src/client.rs:669-700 | crates/openshell-sdk/src/client.rs:1284-1315 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sdk/src/client.rs"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4dc8903a56dd545f3f4b42a461feb102b6243d75b7af9074f58ea61a6c236c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): crates/openshell-sandbox/src/denial_aggregator.rs:129-157 | crates/openshell-supervisor/src/denial_aggregator.rs:129-157 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/denial_aggregator.rs\u0060 and \u0060crates/openshell-supervisor/src/denial_aggregator.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/denial_aggregator.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"d909d42f3a44da3f5a47df3b16e639f589abc06b1a209ed454c67c78f9cc8b35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201328 lines \u00D7 2): crates/openshell-driver-vm/src/runtime.rs:82-105 | crates/openshell-driver-vm/src/runtime.rs:302-329 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/runtime.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e54c15a5cb3b478a41c99cfa4a2825b1aa3ceca09b6b6b7c7a2d01f019d72d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:3825-3852 | crates/openshell-server/src/grpc/sandbox.rs:4085-4112 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":3825}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce9b04b0876e7dd0b853b2ba3ac49cd53de2c459cc0f00666e06dd987d4df421"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/relay.rs:2598-2625 | crates/openshell-supervisor-network/src/l7/relay.rs:2880-2907 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2598}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd19902d00b517ef5a22d71862bd11a29785369f655ed8f7924b5514f83b2b0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): crates/openshell-supervisor-network/src/proxy.rs:2635-2662 | crates/openshell-supervisor-network/src/proxy.rs:5466-5493 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":2635}}}],"partialFingerprints":{"codehealthFindingId/v1":"9edaa516c5c453d5695e5c6efbf277752277b190b3c624a2a6a15d79287023cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): crates/openshell-tui/src/ui/sandbox_draft.rs:899-926 | crates/openshell-tui/src/ui/sandbox_draft.rs:929-956 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/sandbox_draft.rs"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"633e0d335e836382e57764c0fcbcfc8cc8ac7c564fb650f34e86ce06511130b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201327 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:2635-2661 | crates/openshell-server/src/grpc/sandbox.rs:3214-3237 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":2635}}}],"partialFingerprints":{"codehealthFindingId/v1":"8525d219769602d371f44b8c569cb43e82df0f068b2f168885bc0a29d156efe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): crates/openshell-supervisor-network/src/proxy.rs:2671-2697 | crates/openshell-supervisor-network/src/proxy.rs:5496-5522 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":2671}}}],"partialFingerprints":{"codehealthFindingId/v1":"033eb9836c2433ec2b5348db35c89cb6a5d8c3458b56342ba57f0de2387bae5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): crates/openshell-driver-docker/src/lib.rs:2040-2065 | crates/openshell-driver-docker/src/lib.rs:2102-2127 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":2040}}}],"partialFingerprints":{"codehealthFindingId/v1":"35af5ee183d6a166fca253e47cf61ad36859eabd92f023ef66be8f80d8bb5edd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): crates/openshell-tui/src/app.rs:1580-1605 | crates/openshell-tui/src/app.rs:1861-1886 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/app.rs"},"region":{"startLine":1580}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c72c6a15c7ebc904cfce12de1cc68243e88e6b4ce5ff0cb698b7dbb7401b65c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): crates/openshell-supervisor-network/src/l7/rest/http_response.rs:422-446 | crates/openshell-supervisor-network/src/l7/rest/http_response.rs:624-648 | crates/openshell-supervisor-network/src/l7/rest/http_response.rs:682-706 \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":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"87bba1af15fd5fc54d2937265df9e3fd4286c13577b55c426cbda64956e25d21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): crates/openshell-sandbox/src/main_session.rs:273-297 | crates/openshell-supervisor-process/src/main_session.rs:142-166 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/main_session.rs\u0060 and \u0060crates/openshell-supervisor-process/src/main_session.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db9542ef7d93c63a69896afcef0955ba2ce74cb99d333d6d3c5958dbba77b97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): crates/openshell-server/src/grpc/policy.rs:4474-4498 | crates/openshell-server/src/grpc/policy.rs:4520-4544 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":4474}}}],"partialFingerprints":{"codehealthFindingId/v1":"035a3b32fcc7a19854cdfd79d735fb909aeab9bef79ac6692e2052e7eb31c817"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): crates/openshell-supervisor-network/src/proxy.rs:1548-1572 | crates/openshell-supervisor-process/src/ssh.rs:271-295 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":1548}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d48c52cceb6b177088acce4ab854d7e17e618186c4d1c3f0b733ac4da4df5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/openshell-driver-vm/src/driver.rs:4303-4326 | crates/openshell-driver-vm/src/driver.rs:4427-4450 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":4303}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e0a5f53948f0fe3d3cb441de02d38fc60538caf03a9e150658a3c81c4d02331"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): crates/openshell-tui/src/lib.rs:1015-1038 | crates/openshell-tui/src/lib.rs:1149-1170 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f427b88479d74d790153cc6eb04c1ae0381e4e86cbc5415ef0e353e4ba2fd32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crates/openshell-driver-kubernetes-secrets/src/main.rs:80-102 | crates/openshell-driver-vault/src/main.rs:132-154 \u2014 before extracting anything, compare \u0060crates/openshell-driver-kubernetes-secrets/src/main.rs\u0060 and \u0060crates/openshell-driver-vault/src/main.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes-secrets/src/main.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb75c4b9a90e22ce8d55fca64b4b1b0dd24569d9865f2b8b19d104feb3ac0d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crates/openshell-providers/src/profiles.rs:3584-3606 | crates/openshell-server/src/grpc/provider.rs:1884-1906 \u2014 before extracting anything, compare \u0060crates/openshell-providers/src/profiles.rs\u0060 and \u0060crates/openshell-server/src/grpc/provider.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":3584}}}],"partialFingerprints":{"codehealthFindingId/v1":"399a32a2e73b5eeb23e9948c0919ddf00b3d3aafb27f404c139895bda371f342"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:2180-2202 | crates/openshell-server/src/persistence/sqlite.rs:2009-2031 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":2180}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27ec5c9f3780a16dca0c5664f2d8ccc44b1151e5d1ae620871dd9719bb65480"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): crates/openshell-supervisor-network/src/proxy.rs:2787-2809 | crates/openshell-supervisor-network/src/proxy.rs:2830-2851 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":2787}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8202a15ae3bbcb8a816a9455a4fddb16098c37957f9df7d319108d8405b58e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201323 lines \u00D7 2): crates/openshell-tui/src/ui/create_provider.rs:58-77 | crates/openshell-tui/src/ui/create_provider.rs:166-188 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"18972877283e843489f3784c24bb5f4a8046d17f6db16d7c2474bb9be5245770"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): crates/openshell-tui/src/ui/providers.rs:59-80 | crates/openshell-tui/src/ui/providers.rs:164-189 | crates/openshell-tui/src/ui/sandboxes.rs:82-111 \u2014 before extracting anything, compare \u0060crates/openshell-tui/src/ui/providers.rs\u0060 and \u0060crates/openshell-tui/src/ui/sandboxes.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/providers.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6f80fac72986199b91c81f7618f6aa76f0f2434f7df955b558cab5f9146adc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): crates/openshell-cli/src/run.rs:2128-2146 | crates/openshell-cli/src/run.rs:2811-2832 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/run.rs"},"region":{"startLine":2128}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca2692b6868be8ea74c5309f2c0cc90d0b9bcca58d90c40092a3c622137cc9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): crates/openshell-server/src/grpc/policy.rs:3310-3331 | crates/openshell-server/src/grpc/policy.rs:3375-3396 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":3310}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4017f7353b532bc804c96f9f29ada089f25751dede858e2e269535c6bedcbd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): crates/openshell-server/src/grpc/policy.rs:4857-4878 | crates/openshell-server/src/grpc/policy.rs:4921-4942 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":4857}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d5813205874bab3c9a92f1a90d6c4762ef3cc2fb8e96c6f81ce8da641faf18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1310-1331 | crates/openshell-server/src/persistence/sqlite.rs:1139-1160 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b343313cf42196645d8e8dedcebdc397653a547a97099cc111cf08d1b0cc9db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): crates/openshell-supervisor-network/src/proxy.rs:4408-4429 | crates/openshell-supervisor-network/src/proxy.rs:4449-4468 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":4408}}}],"partialFingerprints":{"codehealthFindingId/v1":"6207d7a7274a3a8c5f6b269de67083be967b5b9cd239d20c9d3da5c16121a7b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): crates/openshell-core/src/provider_credentials.rs:701-721 | crates/openshell-core/src/provider_credentials.rs:797-815 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-core/src/provider_credentials.rs"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"85efe05e3d76b06ebd3609631c6f53ce796e519bbbab1020988b75ba0ef8c6d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/openshell-driver-kubernetes/src/config.rs:785-805 | crates/openshell-driver-vm/src/driver.rs:528-548 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/config.rs"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"af209ec1a09688ea89f1773473809db11570893aa39dd42b848a217319b29db8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): crates/openshell-prover/src/containment.rs:1161-1181 | crates/openshell-supervisor-network/src/l7/token_grant_injection.rs:637-655 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-prover/src/containment.rs"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"4708e198e04011f18440de82eaa1efa1cb14c3db73882d87cacd85f1b4978c96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/openshell-sandbox/src/main_session.rs:806-826 | crates/openshell-supervisor-process/src/main_session.rs:352-372 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/main_session.rs\u0060 and \u0060crates/openshell-supervisor-process/src/main_session.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba643be3db26003c30a0ad87676a406addc011430cdf3c5b3484a3ce70b78137"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/openshell-sandbox/src/mechanistic_mapper.rs:262-282 | crates/openshell-supervisor/src/mechanistic_mapper.rs:263-283 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/mechanistic_mapper.rs\u0060 and \u0060crates/openshell-supervisor/src/mechanistic_mapper.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/mechanistic_mapper.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c39aa05eeb9ff4f1cdf4d3026913fd54ae2e807f887146519da251c3d979b74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/openshell-supervisor-network/src/proxy.rs:6163-6184 | crates/openshell-supervisor-network/src/proxy.rs:6201-6221 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":6163}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c553ff5b075ebefe6c17f16d587e6620cc17119e21582e38d8b98dd5715da5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): crates/openshell-tui/src/lib.rs:900-920 | crates/openshell-tui/src/lib.rs:2905-2924 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"9365cc9b540b7de0310fb3021fe67e1f23e9ce3886b31124ed2181f8a6bae6d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201320 lines \u00D7 3): crates/openshell-server/src/certgen.rs:861-880 | crates/openshell-server/src/certgen.rs:906-922 | crates/openshell-server/src/certgen.rs:939-952 \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":"crates/openshell-server/src/certgen.rs"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e3b16f32bb99499f95159faceec35d07fbbf113b6200a628c810873a297557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/openshell-cli/src/commands/provider.rs:169-188 | crates/openshell-cli/src/commands/provider.rs:252-271 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c786efe8983a0bb2e3b7acba9115edc2bbf392ee7c1877f744c205c93104897"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/openshell-driver-vm/src/driver.rs:4381-4400 | crates/openshell-driver-vm/src/driver.rs:4521-4540 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":4381}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d6b9e775d53e2e10c67e3e9d65e735a2b5d650231449eae9ea370028371ea5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/openshell-sdk/src/client.rs:472-491 | crates/openshell-sdk/src/client.rs:1240-1259 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sdk/src/client.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17b71650dbe2aacc08b5ba5fb286e828bb623162691efbd00c75a358f776819"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 2): crates/openshell-sdk/src/client.rs:649-668 | crates/openshell-sdk/src/client.rs:1267-1282 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sdk/src/client.rs"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b52aab85926b64c9694cd852dd7d00a97aa50292430da1d995a723644ffa300"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:975-994 | crates/openshell-server/src/grpc/sandbox.rs:1158-1177 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"4386f28cc64e8028ed5252f25c8efe4d0b0dece00f1d9f6ff50c8c8334afda5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:1479-1498 | crates/openshell-server/src/grpc/sandbox.rs:1610-1629 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":1479}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a796c9e5af36ef1c0a0b244b111520a8a6e06f6c998bf5c2be5543df072904"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/relay.rs:2074-2093 | crates/openshell-supervisor-network/src/l7/relay.rs:2805-2822 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2074}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf4db8aaa2f1d6e58748bd62f501b2c1dc9715f2e349ff868a64ef02ab80d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/relay.rs:2754-2770 | crates/openshell-supervisor-network/src/l7/relay.rs:2787-2806 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2754}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ec4e6eb88301e750aee0594930cc5b0863386895c4d540b078eaf12508f20c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 4): crates/openshell-tui/src/ui/create_provider.rs:58-74 | crates/openshell-tui/src/ui/create_provider.rs:166-184 | crates/openshell-tui/src/ui/create_provider.rs:555-569 | crates/openshell-tui/src/ui/create_sandbox.rs:266-280 \u2014 before extracting anything, compare \u0060crates/openshell-tui/src/ui/create_provider.rs\u0060 and \u0060crates/openshell-tui/src/ui/create_sandbox.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36be68543132f8efaefcf578bb15160561283e0191126c508b340786faa0284"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): crates/openshell-server/src/persistence/postgres.rs:642-660 | crates/openshell-server/src/persistence/postgres.rs:714-732 | crates/openshell-server/src/persistence/postgres.rs:939-956 \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":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"69daff0d34d9d3d727f5c37259c3ca5bdd36da36be76a2f69898aeca09549bfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/openshell-core/src/secrets.rs:1044-1062 | crates/openshell-core/src/secrets.rs:1353-1371 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/secrets.rs"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d27c235000eaf536af771c111a128c9c0fca47e61b8eabffd7e3fccac476f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/openshell-providers/src/profiles.rs:1883-1901 | crates/openshell-providers/src/profiles.rs:1932-1950 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":1883}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7ea63c57d902eceb2fbdbe6df013560757dd576621172bc134fa4eecc40029"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/openshell-sandbox/src/main_session.rs:100-118 | crates/openshell-supervisor-process/src/main_session.rs:76-94 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/main_session.rs\u0060 and \u0060crates/openshell-supervisor-process/src/main_session.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff52af4af07e6370d5f192bfaa359bbac6a86afd0c4441c74843697f7dd698e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:2116-2134 | crates/openshell-server/src/persistence/sqlite.rs:1945-1963 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":2116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24acb4aa012fbfd55637189f0a03b6f15abb44270875a84dfaafd9a82be4658"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 5): crates/openshell-tui/src/ui/create_provider.rs:60-75 | crates/openshell-tui/src/ui/create_provider.rs:168-185 | crates/openshell-tui/src/ui/create_provider.rs:557-570 | crates/openshell-tui/src/ui/create_sandbox.rs:268-281 | crates/openshell-tui/src/ui/splash.rs:73-86 \u2014 before extracting anything, compare \u0060crates/openshell-tui/src/ui/create_provider.rs\u0060 and \u0060crates/openshell-tui/src/ui/create_sandbox.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c84fa39ae559269c0743790a8396d5b61c4cc0928e6749d2ad99e2ce08afc41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/openshell-driver-vm/src/driver.rs:3387-3404 | crates/openshell-driver-vm/src/driver.rs:3918-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":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":3387}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f8f86fdf7d513e0223a7a53fdb9e1615313974046fb1cedcd68be36b65f274"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/openshell-driver-vm/src/layer_applier.rs:116-133 | crates/openshell-driver-vm/src/layer_applier.rs:192-209 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/layer_applier.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"e607c2dcd655aeb1d346235fcf5cd7e44cd881f96b0971d2f985c6e17c154581"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/openshell-providers/src/profiles.rs:2857-2874 | crates/openshell-providers/src/profiles.rs:2943-2960 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":2857}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ad1eef79f000ef04ce580e415deed7b26db659a9c008089844c1f6d4a3b52d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/openshell-providers/src/profiles.rs:3609-3626 | crates/openshell-server/src/grpc/provider.rs:1909-1926 \u2014 before extracting anything, compare \u0060crates/openshell-providers/src/profiles.rs\u0060 and \u0060crates/openshell-server/src/grpc/provider.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":3609}}}],"partialFingerprints":{"codehealthFindingId/v1":"86807be8fe5e5c992ec73f9540835f2d68eaa5c1f85813d0b75d48c22994fade"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/openshell-sandbox/src/mechanistic_mapper.rs:382-399 | crates/openshell-supervisor/src/mechanistic_mapper.rs:383-400 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/mechanistic_mapper.rs\u0060 and \u0060crates/openshell-supervisor/src/mechanistic_mapper.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/mechanistic_mapper.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"876285388e0c7263674504f9002a0d11be206e4bdd7945412bde9b96e14f1836"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/openshell-sandbox/src/mechanistic_mapper.rs:403-420 | crates/openshell-supervisor/src/mechanistic_mapper.rs:404-421 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/mechanistic_mapper.rs\u0060 and \u0060crates/openshell-supervisor/src/mechanistic_mapper.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/mechanistic_mapper.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95f4f1e614115c6843c490235187534e7f49dcd875d5f22d7f9abd111afd7a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): crates/openshell-sdk/src/edge_tunnel.rs:207-224 | crates/openshell-server/src/ws_tunnel.rs:104-120 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sdk/src/edge_tunnel.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"90622239be7dbe4e79b76eafdc2bbc6256037b390fb08b9aa94f365ad8da1278"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:559-576 | crates/openshell-server/src/grpc/sandbox.rs:1449-1466 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed387433d1c310329e7d4207f8aacb6cc8f5ba863686aad77ed035a32782b287"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:818-835 | crates/openshell-server/src/persistence/sqlite.rs:610-627 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a6e95ecfa29ab5e02c1b410db008372c9270c542bf5b0e33ccad498c9c0441"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1248-1265 | crates/openshell-server/src/persistence/sqlite.rs:1085-1102 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffdf8b5370cc2f8dc7bf40a96d7894e2b876822b961bcdb89db3d7666852ba00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): crates/openshell-tui/src/lib.rs:975-992 | crates/openshell-tui/src/lib.rs:1106-1122 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7115cd0df144992150379c910c04c07a107944dbec19400a24c7a12be30940"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/openshell-vfio/src/gpu.rs:28-45 | crates/openshell-vfio/src/pci.rs:224-241 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"crates/openshell-vfio/src/gpu.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"49db29afef70b0353a62502a28754ab9f7a3d3d29eb015a79fcf9e40f2659392"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): crates/openshell-supervisor-network/src/l7/relay.rs:1457-1473 | crates/openshell-supervisor-network/src/l7/relay.rs:2201-2217 | crates/openshell-supervisor-network/src/l7/relay.rs:2912-2928 \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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1457}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c009fc6c2468d8fcb994f75be5a8baaca4206bcaa032f189bcb5b65528bd2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): crates/openshell-core/src/provider_credentials.rs:277-293 | crates/openshell-core/src/provider_credentials.rs:612-627 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/provider_credentials.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e14ba7dabb09dcefe03ed6d19af29d71b2305f0b794715b168e317e877835c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/openshell-driver-mxc/src/policy_map/map.rs:214-230 | crates/openshell-driver-mxc/src/policy_map/map.rs:267-283 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/policy_map/map.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca095dcd008a60ff635fbc7b30f1efa83b84f5ebe9d2fb37c4fc7d75684bf914"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/openshell-policy/src/lib.rs:285-301 | crates/openshell-policy/src/lib.rs:306-322 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-policy/src/lib.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"b90167a7474bf2c4415600468a5c3e23f51e66242ffcbc5e9ed62cbdd41c8fa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/openshell-sandbox/src/mechanistic_mapper.rs:226-242 | crates/openshell-supervisor/src/mechanistic_mapper.rs:227-243 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/mechanistic_mapper.rs\u0060 and \u0060crates/openshell-supervisor/src/mechanistic_mapper.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/mechanistic_mapper.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd412e2fe118558d9d4fddaa3ee1184a4801d9e8992f676e3e4f982db9fac7fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/openshell-server/src/compute/lease.rs:90-106 | crates/openshell-server/src/compute/lease.rs:130-146 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/lease.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ca3f648fd6862466a5db62b1833857799f248440ad40632ead4b60cea5e836"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/openshell-server/src/compute/lease.rs:134-150 | crates/openshell-server/src/compute/lease.rs:176-192 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/compute/lease.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e3d5ac15a335ca97c70542762cfa6b227df5fb60c4b4c01b09de5ee62dc071"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:3896-3912 | crates/openshell-server/src/grpc/sandbox.rs:4126-4142 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":3896}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2901771673ce01a05a188b15f20f04dfc8d613e1871803e0ad9bfcb1ce89b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1617-1633 | crates/openshell-server/src/persistence/sqlite.rs:1445-1461 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1617}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc98c99b9819d8dadc4a92823c6ff0ef6b19a124d53a0cf21bca22c96438a232"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1641-1657 | crates/openshell-server/src/persistence/sqlite.rs:1469-1485 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1641}}}],"partialFingerprints":{"codehealthFindingId/v1":"525e25c46d5523a107bb82732bf5ccdc3820b8fe7bb4e07a86ed5b240a6a1ea1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/openshell-supervisor-network/src/proxy.rs:1842-1858 | crates/openshell-supervisor-network/src/proxy.rs:1871-1887 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":1842}}}],"partialFingerprints":{"codehealthFindingId/v1":"913a8c02f7a8581097db34f0c8072c4a3c9cc1cdc683a7d43a6543f103a7dfcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): crates/openshell-tui/src/app.rs:2824-2840 | crates/openshell-tui/src/app.rs:3137-3152 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/app.rs"},"region":{"startLine":2824}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf4598796767f72c1b4fc6237bc49708712a03fba7325bd3e6ccfbb1c05fd91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/openshell-tui/src/ui/create_provider.rs:497-513 | crates/openshell-tui/src/ui/create_provider.rs:966-982 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"4174c3fd0fb1a0b670d087cf629ed28d9bdeab43fd2985fd3c91d65f3abf0fbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): crates/openshell-supervisor-network/src/l7/relay.rs:1285-1300 | crates/openshell-supervisor-network/src/l7/relay.rs:2750-2764 | crates/openshell-supervisor-network/src/l7/relay.rs:2783-2797 \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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"7251920f00c2674ea69938287b01938eab26986bf64ac3cc340e4caad3e2bcc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): crates/openshell-driver-mxc/src/driver.rs:683-698 | crates/openshell-driver-mxc/src/driver.rs:753-767 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/driver.rs"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d9d25b4e158e8fae230d84837be85ce7e33a476ac36292edb9d8d5f8158baf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-driver-vm/src/driver.rs:3406-3421 | crates/openshell-driver-vm/src/driver.rs:3937-3952 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":3406}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4eea79af16f893d889484e4678ae43ab34f51a78d24c8e2ededa811035e3887"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-driver-vm/src/driver.rs:3601-3616 | crates/openshell-driver-vm/src/driver.rs:3639-3654 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":3601}}}],"partialFingerprints":{"codehealthFindingId/v1":"70adb61508aee17b242bacdd414ba13b5547d29eea6292564f6606c29a8b8e01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-driver-vm/src/driver.rs:3726-3741 | crates/openshell-driver-vm/src/driver.rs:4328-4343 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":3726}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b4746801cb45c85678ebc7b01d10e8ec30405777df227145285d60424cb877"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): crates/openshell-sandbox/src/main.rs:916-931 | crates/openshell-sandbox/src/main.rs:1152-1165 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox/src/main.rs"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"842043b0a4edab73e4860b8219f157195a7175bc13fce2b7b94af94081eaa874"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-sandbox/src/main_session.rs:885-900 | crates/openshell-supervisor-process/src/main_session.rs:431-446 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/main_session.rs\u0060 and \u0060crates/openshell-supervisor-process/src/main_session.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44e21a9c8b5d2680f8bf6ad5633d2b89edfd48896d406e63b70abcfc5b08338"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-server/src/grpc/policy.rs:6179-6194 | crates/openshell-server/src/grpc/policy.rs:6665-6680 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":6179}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8df5192a141515ab36ed9fca34c3b9bd7d5c9a857a8af44577beebae9a728a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-server/src/grpc/provider.rs:3877-3892 | crates/openshell-server/src/grpc/provider.rs:3946-3961 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":3877}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e2b8ef11a854c16bba5bcbbe0aacf597d5cb45c8cfbf4a406a038705bff5b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1084-1099 | crates/openshell-server/src/persistence/sqlite.rs:863-878 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a605c7f1a79407d9f647574c7eba4ae81c85de26235bb34b26b95b3ea587d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1520-1535 | crates/openshell-server/src/persistence/sqlite.rs:1359-1374 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"08670b5cafabeea2c635dd417e49f78df63e5cc94eaab6d9ce3402c5b945703c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-supervisor-middleware/src/lib.rs:1782-1797 | crates/openshell-supervisor-middleware/src/lib.rs:1852-1867 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-middleware/src/lib.rs"},"region":{"startLine":1782}}}],"partialFingerprints":{"codehealthFindingId/v1":"5116a617e8b02b3d9a6b67d203f77b56a10d0379762cd8d32bbcb99ab65e0549"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-supervisor-middleware/src/lib.rs:1833-1848 | crates/openshell-supervisor-middleware/src/lib.rs:1970-1986 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-middleware/src/lib.rs"},"region":{"startLine":1833}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02556cd361793e2795d6c1a6c8952575c3cd66848efce2fac816406fcb00201"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-supervisor-middleware/src/lib.rs:1901-1916 | crates/openshell-supervisor-middleware/src/lib.rs:2000-2015 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-middleware/src/lib.rs"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"752b0a567e23485d9a0f13576f97bf5446e0fd08d0f5ed244a2cea2ee58987ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/relay.rs:2034-2048 | crates/openshell-supervisor-network/src/l7/relay.rs:2728-2743 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2034}}}],"partialFingerprints":{"codehealthFindingId/v1":"067ebafc41e43eee9ade78fd4f3d573e44745f5f2234fc6aeefa174d404c1c35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/rest.rs:1135-1150 | crates/openshell-supervisor-network/src/l7/rest.rs:1236-1247 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"9213f9ccf5d1effb026e0c50412fb9489adeda1d33caff5fc874234a8f12053d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-supervisor-network/src/opa.rs:505-520 | crates/openshell-supervisor-network/src/opa.rs:1707-1722 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85b0904a4758250afdddf9d83c682f4953238bf0e8e60503d6d2c5cd76cb725"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-supervisor-network/src/opa.rs:1784-1799 | crates/openshell-supervisor-network/src/opa.rs:1910-1925 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":1784}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1cad9bc700c8f8a58549d7d6d41dd25bb8c6803ade4bbee7c57fd933cdd407d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): crates/openshell-supervisor-network/src/proxy.rs:1132-1147 | crates/openshell-supervisor-network/src/proxy.rs:1202-1216 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d62fb46f8cf59bf80d133ee40beef329094725688d729b7a347f62dc867e5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-supervisor/src/endpoint_status.rs:114-129 | crates/openshell-supervisor/src/endpoint_status.rs:261-276 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/endpoint_status.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"390d5c2ba877250411341446e3d6131ae3508320e0666e3f902fb7e10561ee18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): crates/openshell-supervisor-network/src/l7/relay.rs:1457-1471 | crates/openshell-supervisor-network/src/l7/relay.rs:2201-2215 | crates/openshell-supervisor-network/src/l7/relay.rs:2912-2926 | crates/openshell-supervisor-network/src/l7/relay.rs:3622-3636 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1457}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c78dfef038e5203337c3dc6bb4b8a1eef35768832ef970079fa2df254f279e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): crates/openshell-cli/src/output.rs:274-288 | crates/openshell-cli/src/output.rs:318-332 | crates/openshell-cli/src/output.rs:365-379 \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":"crates/openshell-cli/src/output.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b760ccc741eb45513880aa1e03d3bfcc36ec23187a7947d6423a65b3ba4693"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): crates/openshell-sdk/src/client.rs:330-344 | crates/openshell-sdk/src/client.rs:520-534 | crates/openshell-sdk/src/client.rs:1084-1098 \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":"crates/openshell-sdk/src/client.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c0c437fd9af3dafcdd44f41b9493a1face64f90e6fd565ab71944a70637983"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): crates/openshell-supervisor-network/src/l7/relay.rs:2138-2152 | crates/openshell-supervisor-network/src/l7/relay.rs:2849-2861 | crates/openshell-supervisor-network/src/proxy.rs:6051-6063 \u2014 before extracting anything, compare \u0060crates/openshell-supervisor-network/src/l7/relay.rs\u0060 and \u0060crates/openshell-supervisor-network/src/proxy.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2138}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6836287d656f5d011dc26fe9ea4d904ce43725ffde30acde16d951f57625959"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): crates/openshell-supervisor/src/endpoint_status.rs:114-128 | crates/openshell-supervisor/src/endpoint_status.rs:195-208 | crates/openshell-supervisor/src/endpoint_status.rs:261-275 \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":"crates/openshell-supervisor/src/endpoint_status.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3dbbe532f64ca1fdb190cbfd4aef613bee57dae3fb3c5059640ea1eb373c33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/openshell-cli/src/commands/provider.rs:145-159 | crates/openshell-cli/src/commands/provider.rs:228-242 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd0468f2fe9244c24d6e179a60d6e7434728177620bf61740b4e184da4e5e84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/openshell-driver-kubernetes/src/driver.rs:5018-5032 | crates/openshell-driver-kubernetes/src/driver.rs:5157-5171 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":5018}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bfef07c4b745184287380fdffa2b1768ccbae7ff79bcaf1e215a5eae46d9d26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): crates/openshell-driver-vm/src/driver.rs:1951-1964 | crates/openshell-driver-vm/src/driver.rs:2157-2171 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":1951}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b14225c4b435f9b47fc2e1c3c64cd6428102161d651f2e8f732bfe47897353"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/openshell-providers/src/profiles.rs:3528-3542 | crates/openshell-server/src/grpc/provider.rs:1828-1842 \u2014 before extracting anything, compare \u0060crates/openshell-providers/src/profiles.rs\u0060 and \u0060crates/openshell-server/src/grpc/provider.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":3528}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d795919bf6f42f000473fcbc47e39dc86511e417902bf3471b196b8ddad716"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/openshell-sandbox/src/main_session.rs:867-881 | crates/openshell-supervisor-process/src/main_session.rs:413-427 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/main_session.rs\u0060 and \u0060crates/openshell-supervisor-process/src/main_session.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"9690094bfd2d2445f5fae6016c17d83e761f900244d0e0cfc24c783fa5393085"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/openshell-sandbox/src/main_session.rs:905-919 | crates/openshell-supervisor-process/src/main_session.rs:451-465 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/main_session.rs\u0060 and \u0060crates/openshell-supervisor-process/src/main_session.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff67119d9331ea44f19503084016568aad865047ea7d71375dc55bfcc34ad69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/openshell-server/src/compute/mod.rs:1997-2011 | crates/openshell-server/src/compute/mod.rs:2263-2277 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"851298b4b374a80e1655de3643e8b1f108c8115e7a2ecd6a59a061617056f155"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/openshell-server/src/grpc/provider.rs:1742-1756 | crates/openshell-server/src/grpc/provider.rs:2302-2316 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":1742}}}],"partialFingerprints":{"codehealthFindingId/v1":"968bf15426a1d3168cae266db87ae7cd19d78fc49c333655515964a538a6f3f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): crates/openshell-server/src/grpc/service.rs:193-207 | crates/openshell-server/src/grpc/service.rs:305-316 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/service.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc780e2b41997b1a037773e35aa84e1ed3320b26437419069aa5f579878ee7d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:2017-2031 | crates/openshell-server/src/persistence/sqlite.rs:1846-1860 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":2017}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08943a37355b9cc1756512d6887fc328eebbe38f6b5903692f1386caef28625"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): crates/openshell-supervisor-middleware/src/websocket.rs:1143-1157 | crates/openshell-supervisor-middleware/src/websocket.rs:1211-1222 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-middleware/src/websocket.rs"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eba52fc765f90eb8d021fa63a5b5932f2b0604108c42c9eef2af59ae1d4f24c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/rest.rs:1628-1642 | crates/openshell-supervisor-network/src/l7/rest.rs:1792-1806 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":1628}}}],"partialFingerprints":{"codehealthFindingId/v1":"44867b91522668725b96fccf216bcb199e1280121798d501990ee7b2be702a8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): crates/openshell-supervisor-network/src/policy_dns/runtime.rs:163-176 | crates/openshell-supervisor-network/src/policy_dns/runtime.rs:277-291 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/policy_dns/runtime.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ef775fcadbb65337432052d165073829bab284d83502c7ac4091f97709ea96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): crates/openshell-tui/src/app.rs:2884-2898 | crates/openshell-tui/src/app.rs:3191-3203 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/app.rs"},"region":{"startLine":2884}}}],"partialFingerprints":{"codehealthFindingId/v1":"5579d1fe2dcc7fb51a3eb63ca4eccf5ac8fd2ea3a6f92d67d5b650bfc6d24650"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 5): crates/openshell-supervisor-network/src/l7/relay.rs:1680-1693 | crates/openshell-supervisor-network/src/l7/relay.rs:2143-2155 | crates/openshell-supervisor-network/src/l7/relay.rs:2852-2864 | crates/openshell-supervisor-network/src/l7/websocket.rs:2087-2099 | crates/openshell-supervisor-network/src/proxy.rs:6054-6066 \u2014 before extracting anything, compare \u0060crates/openshell-supervisor-network/src/l7/relay.rs\u0060 and \u0060crates/openshell-supervisor-network/src/proxy.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0553389b377aaadadf5e12ba93493ee766405b735792bad146b73c59694b8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): crates/openshell-server/src/grpc/provider.rs:2824-2837 | crates/openshell-server/src/grpc/sandbox.rs:989-1002 | crates/openshell-server/src/grpc/sandbox.rs:1172-1185 | crates/openshell-server/src/grpc/service.rs:246-259 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/grpc/provider.rs\u0060 and \u0060crates/openshell-server/src/grpc/sandbox.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":2824}}}],"partialFingerprints":{"codehealthFindingId/v1":"965267a9727ab1c572353856b8250c8f6c243c27f68f0d47201bdafc4eb2a0dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 3): crates/openshell-supervisor-middleware/src/lib.rs:1094-1104 | crates/openshell-supervisor-middleware/src/websocket.rs:1152-1165 | crates/openshell-supervisor-middleware/src/websocket.rs:1220-1230 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/lib.rs"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f8c4b2168911f3373f160591f185ef8832e75b1067bdec23f2af339b14be3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): crates/openshell-supervisor-network/src/l7/relay.rs:1624-1637 | crates/openshell-supervisor-network/src/l7/relay.rs:2702-2715 | crates/openshell-supervisor-network/src/l7/relay.rs:2990-3003 \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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1624}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1ff98b216a16deef5614bb473678841aec9aa1f1bf12e684c6a1dcd2aacb5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/openshell-cli/src/commands/provider.rs:1191-1203 | crates/openshell-cli/src/commands/provider.rs:2828-2841 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ea9ba25134f4c421c85dbad2df0bf1eb1b3a29aa95e8f28d277fc57cf48e3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-cli/src/commands/provider.rs:1450-1463 | crates/openshell-cli/src/run.rs:3645-3658 \u2014 before extracting anything, compare \u0060crates/openshell-cli/src/commands/provider.rs\u0060 and \u0060crates/openshell-cli/src/run.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":1450}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65f10ad67c5789311f5a64d66bcc0f4381f03950e6f83ddd3b22602e06382e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-cli/src/run.rs:3444-3457 | crates/openshell-cli/src/run.rs:3511-3524 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/run.rs"},"region":{"startLine":3444}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3a1261ef3991f4dbd768b536a4e158905f2ebdb157646a63c82b7a84a8d30a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/openshell-driver-docker/src/lib.rs:5020-5032 | crates/openshell-driver-docker/src/lib.rs:5382-5395 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":5020}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ecba5f849b2ddfa302653650eeb03a2852216d5c57bdf3007aa1551453f8de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-driver-vm/src/driver.rs:5599-5612 | crates/openshell-driver-vm/src/driver.rs:5682-5695 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":5599}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7babb4d2a973e917fb917a7d520c26c109fc5112983379344d85c95d1fdf64b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201314 lines \u00D7 2): crates/openshell-ocsf/src/format/shorthand.rs:279-292 | crates/openshell-ocsf/src/format/shorthand.rs:332-339 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-ocsf/src/format/shorthand.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0163a2ccf12f4d1d522bdee4ca99adbdbb9f9719684f566b2d73ee750307db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-providers/src/profiles.rs:1866-1879 | crates/openshell-providers/src/profiles.rs:1915-1928 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":1866}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12fa6575319e39e15dce2ed07068837711825ba7cf457667ced3cd18376e0e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-sandbox/src/activity_aggregator.rs:117-130 | crates/openshell-supervisor/src/activity_aggregator.rs:117-130 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/activity_aggregator.rs\u0060 and \u0060crates/openshell-supervisor/src/activity_aggregator.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/activity_aggregator.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb20986f9336b411441d2661a422ea26b425aa03abbe312ba06a0e7eb81102f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/openshell-server/src/grpc/policy.rs:4299-4311 | crates/openshell-server/src/grpc/policy.rs:4356-4369 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":4299}}}],"partialFingerprints":{"codehealthFindingId/v1":"1000be8ace8bfd5bf9ee8f868e0e1e8793523a2fa163b71bf9e1667c24cc4ed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-server/src/grpc/provider.rs:4826-4839 | crates/openshell-server/src/grpc/provider.rs:5323-5336 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":4826}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eabcb4298f0a345a4b5fa93f6ad38cc78a07f834093e5ee3d34e5594f739f41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:1004-1017 | crates/openshell-server/src/grpc/sandbox.rs:1187-1200 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3d66c190e9d895472e8349dd1d768eba755423ec867449b975bc7e29c492ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:848-861 | crates/openshell-server/src/persistence/sqlite.rs:640-653 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6cd373f990f0e3e49c4cfc8a4d9baef17711f0212aa494d2bc098a7bd3eeb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:2235-2248 | crates/openshell-server/src/persistence/sqlite.rs:2109-2122 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":2235}}}],"partialFingerprints":{"codehealthFindingId/v1":"a533d4d15776a6d67c49e8353889d43a16b19a6185d91c5a7d01900ea1aa3b03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/mod.rs:1843-1856 | crates/openshell-supervisor-network/src/opa.rs:1828-1841 \u2014 before extracting anything, compare \u0060crates/openshell-supervisor-network/src/l7/mod.rs\u0060 and \u0060crates/openshell-supervisor-network/src/opa.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/mod.rs"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"284fb31179d189255944d2e8d15a2c74241c48342911f10c29390ff1181dcf51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/relay.rs:1342-1355 | crates/openshell-supervisor-network/src/l7/relay.rs:2511-2524 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"7192ce88acf1f22a71ee358a50b92f503e86704f1b7b881ee4bdda744b72227d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/rest.rs:2922-2935 | crates/openshell-supervisor-network/src/proxy.rs:6959-6972 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":2922}}}],"partialFingerprints":{"codehealthFindingId/v1":"2054cb3adedde2f941102da41947d73b4f36a1f3e475758c8aad251256910caa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/rest/http_response.rs:1428-1441 | crates/openshell-supervisor-network/src/l7/rest/http_response.rs:1484-1496 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":1428}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa4eb47ea9b6e9f01d14110d83b10d04439d9b013244637537c71d2d49aecda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-supervisor-network/src/proxy.rs:600-613 | crates/openshell-supervisor-network/src/proxy.rs:641-654 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"882b160ef8497de8fd1f86d6f852e430967dcc1a9ad39b147327b622c223a1c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-tui/src/lib.rs:2971-2984 | crates/openshell-tui/src/lib.rs:3068-3081 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":2971}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7d30b8ab39be006e8945b980e0fb439c20780a020ab6ed9855cbf649d83643"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-tui/src/ui/create_provider.rs:431-444 | crates/openshell-tui/src/ui/create_provider.rs:900-913 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"7204fb7d6f273ab6239dc1e25f7dcdfaa1d63430de7448c1385a626feffe4d8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201313 lines \u00D7 5): crates/openshell-server/src/grpc/provider.rs:4057-4069 | crates/openshell-server/src/grpc/provider.rs:4824-4831 | crates/openshell-server/src/grpc/provider.rs:5251-5258 | crates/openshell-server/src/grpc/provider.rs:5321-5328 | crates/openshell-server/src/grpc/sandbox.rs:1223-1231 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/grpc/provider.rs\u0060 and \u0060crates/openshell-server/src/grpc/sandbox.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":4057}}}],"partialFingerprints":{"codehealthFindingId/v1":"c859a35a6ed40365592b460c6c85c7b4b7b40f950350a3662d1fc9ebd2f0910a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): crates/openshell-supervisor/src/endpoint_status.rs:80-92 | crates/openshell-supervisor/src/endpoint_status.rs:111-123 | crates/openshell-supervisor/src/endpoint_status.rs:192-204 | crates/openshell-supervisor/src/endpoint_status.rs:258-270 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/endpoint_status.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"438cde75fea7aea9576d3228dc9bbde209dbcf2f2b5fe0a30f2dca0a809e5aca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crates/openshell-cli/src/commands/provider.rs:1540-1552 | crates/openshell-cli/src/run.rs:2909-2921 | crates/openshell-cli/src/run.rs:3575-3587 \u2014 before extracting anything, compare \u0060crates/openshell-cli/src/commands/provider.rs\u0060 and \u0060crates/openshell-cli/src/run.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"62bcce02a207d4224b82b532fb916f41b2a24a7aa5bc15df1d09e390f8f2e8b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): crates/openshell-core/src/provider_credentials.rs:272-284 | crates/openshell-core/src/provider_credentials.rs:703-715 | crates/openshell-core/src/provider_credentials.rs:798-809 \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":"crates/openshell-core/src/provider_credentials.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"e103e9ec0b2b2ca531cfca737737e81eb48c45262516bb4fd5ec98e0e112f7cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crates/openshell-driver-vm/src/rootfs.rs:1108-1120 | crates/openshell-driver-vm/src/rootfs.rs:1137-1149 | crates/openshell-driver-vm/src/rootfs.rs:1167-1179 \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":"crates/openshell-driver-vm/src/rootfs.rs"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be220da5d58f987ebab3429fc82638cb152729d083b647f4f2ff76ba4cdab12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): crates/openshell-server/src/certgen.rs:188-199 | crates/openshell-server/src/certgen.rs:257-268 | crates/openshell-server/src/certgen.rs:278-290 \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":"crates/openshell-server/src/certgen.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa0976b9bfd8cdcb9b5adcdde4b05ad06c86f69f8633ab14426cb92943c2ba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crates/openshell-supervisor-network/src/l7/relay.rs:1475-1487 | crates/openshell-supervisor-network/src/l7/relay.rs:2219-2231 | crates/openshell-supervisor-network/src/l7/relay.rs:2930-2942 \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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1475}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58b2b1adda9cb0cebce2bc6ad286382004c8f0f6c0c0dff09b26332d6bf0c05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crates/openshell-tui/src/ui/create_provider.rs:51-63 | crates/openshell-tui/src/ui/create_provider.rs:159-171 | crates/openshell-tui/src/ui/create_provider.rs:260-272 \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":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24e7dd9b69e98c04a830db855010aca7198a36a59b5858bbafad5ce14d690ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-cli/src/commands/provider.rs:575-587 | crates/openshell-cli/src/commands/provider.rs:625-637 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd75f82ced4990ad4a7155b2102f749f571fb8b566bd63b796012e62390580f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-cli/src/run.rs:873-885 | crates/openshell-cli/src/run.rs:895-907 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/run.rs"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eed77687dfe365f86ebbff21be3be15c9eb822bc08e07f40c96a64e7ca30f22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-cli/src/run.rs:3746-3758 | crates/openshell-cli/src/run.rs:4781-4793 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/run.rs"},"region":{"startLine":3746}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb3d919aa99afd8b54cd78c48c0ffd8258261bcaad7c7b3b932437970c337ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-driver-docker/src/lib.rs:3339-3351 | crates/openshell-driver-vm/src/driver.rs:4932-4944 \u2014 before extracting anything, compare \u0060crates/openshell-driver-docker/src/lib.rs\u0060 and \u0060crates/openshell-driver-vm/src/driver.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":3339}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba937ce50493a2d0c305cf2067a0a581a355d44ca2d533e692e32a9282cf550"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-driver-vm/src/driver.rs:1307-1319 | crates/openshell-driver-vm/src/driver.rs:2510-2522 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":1307}}}],"partialFingerprints":{"codehealthFindingId/v1":"62be4c28bd11b476b666a51e79b5dcc2bc300888e4c7f6453d1aede2580cfae1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-driver-vm/src/rootfs.rs:897-909 | crates/openshell-driver-vm/src/rootfs.rs:991-1003 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/rootfs.rs"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e99c0b4dff32b924836636e9eded9ae4c64503536086ee410c6890242f4dd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-providers/src/profiles.rs:3513-3525 | crates/openshell-server/src/grpc/provider.rs:1813-1825 \u2014 before extracting anything, compare \u0060crates/openshell-providers/src/profiles.rs\u0060 and \u0060crates/openshell-server/src/grpc/provider.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":3513}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6f0fcb251edb6588546edbb94a8d0a6aa65206a4a155dafb5bb14e8eae482b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/openshell-sandbox/src/boundary_exec.rs:275-287 | crates/openshell-sandbox/src/boundary_exec.rs:371-382 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox/src/boundary_exec.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e21ba2d88e574e9e3f57be2b1909271b66395d014e60925e26f385245efc74b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-sandbox/src/denial_aggregator.rs:173-185 | crates/openshell-supervisor/src/denial_aggregator.rs:173-185 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/denial_aggregator.rs\u0060 and \u0060crates/openshell-supervisor/src/denial_aggregator.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/denial_aggregator.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c2636aa70d3fbded9406a1a0331cad8e4e1de014402e5dc0c83ead9614d8ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-sandbox/src/main_session.rs:524-536 | crates/openshell-sandbox/src/main_session.rs:550-562 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c703284b6b74ef60067f18314d09ec084dfe8072f7a32afbc49b417ced853b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-server/src/compute/mod.rs:6351-6363 | crates/openshell-server/src/compute/mod.rs:6400-6412 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":6351}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b05bf8611cdc4d597c228ad27e5e82a412f27060fe5884f3af54a5d99b7a66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-server/src/grpc/policy/endpoint_status.rs:455-467 | crates/openshell-server/src/grpc/policy/endpoint_status.rs:518-530 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/policy/endpoint_status.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d36827d8190c36ea7edc2059f5015557dc05597c6d528d2a4f6cbac6f377bab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:1379-1391 | crates/openshell-server/src/grpc/sandbox.rs:1566-1577 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f353a0cb76508501360c89aae524fb7b7558e62aa97aeb42711cc61599814d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:1416-1428 | crates/openshell-server/src/grpc/sandbox.rs:1587-1599 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":1416}}}],"partialFingerprints":{"codehealthFindingId/v1":"2250004613c4a1eb84d9a62426b8bdb24460a7c96125e2092b9cff6137b056aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:579-591 | crates/openshell-server/src/persistence/postgres.rs:901-912 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc204ff47b822c9332286d3f282dba4aa19683431d6182ece1dfe8ca0670450c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1686-1698 | crates/openshell-server/src/persistence/sqlite.rs:1514-1526 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0effc430b2d814c55065143acc138c1664ea4cedb7ec67e6839fe3abf52979c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1981-1993 | crates/openshell-server/src/persistence/sqlite.rs:1810-1822 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1981}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8435bd19a6e8279d0bef197887a9908cbf1cccf68bc6394829d589f6696236"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:2054-2066 | crates/openshell-server/src/persistence/sqlite.rs:1883-1895 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":2054}}}],"partialFingerprints":{"codehealthFindingId/v1":"33aa7cf4549705b32d89a825686d0cf91a88f34874bfe5525d9225c612ece043"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-server/src/supervisor_session.rs:2652-2664 | crates/openshell-server/src/supervisor_session.rs:2675-2687 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/supervisor_session.rs"},"region":{"startLine":2652}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f99063d8367244f19a458bc79f671a3d407f75b3ff0e3119c0dccaa093504ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-supervisor-middleware/src/lib.rs:114-126 | crates/openshell-supervisor-middleware/src/lib.rs:172-184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/lib.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"78bc40c60de67d199a497bd125194183fcbd437c5f2cb7b90119b0b5b0479ee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/relay.rs:199-207 | crates/openshell-supervisor-network/src/l7/relay.rs:3251-3263 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7d2afbff54807aa740febacd5f118973c06108155adca1cc3849fa5a337185"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/rest/http_response.rs:1675-1687 | crates/openshell-supervisor-network/src/l7/rest/http_response.rs:1817-1829 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":1675}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44edceb4f411b6d8e4b86efe7a512a7589654749660e977d03669fd33f55b9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): crates/openshell-tui/src/lib.rs:627-639 | crates/openshell-tui/src/lib.rs:660-670 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d64461fd91ecbf4c272694db0acddb8f03468ec5d48ed18a283962f40a8108"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): crates/openshell-server/src/grpc/policy.rs:6026-6037 | crates/openshell-server/src/grpc/policy.rs:6174-6185 | crates/openshell-server/src/grpc/policy.rs:6584-6595 | crates/openshell-server/src/grpc/policy.rs:6660-6671 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":6026}}}],"partialFingerprints":{"codehealthFindingId/v1":"67235e5e63f8f451f45c2a590a09b6bfeaf59c2e704aa19ba15366c226bd48d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): crates/openshell-cli/src/run.rs:5454-5464 | crates/openshell-cli/src/run.rs:5910-5920 | crates/openshell-cli/src/run.rs:6200-6211 \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":"crates/openshell-cli/src/run.rs"},"region":{"startLine":5454}}}],"partialFingerprints":{"codehealthFindingId/v1":"1386b5bf037b6b2bacd41532cf1886838af12e8338ae2335857f303b5f6c2a4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): crates/openshell-supervisor-network/src/l7/relay.rs:1209-1218 | crates/openshell-supervisor-network/src/l7/relay.rs:2078-2089 | crates/openshell-supervisor-network/src/l7/relay.rs:2809-2818 \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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"151911cab99aa3e48dd3e3a37e999b15bc0e27a54cbefc0cfbd9e42eb052d1d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/openshell-supervisor-network/src/l7/relay.rs:1401-1412 | crates/openshell-supervisor-network/src/l7/relay.rs:2556-2567 | crates/openshell-supervisor-network/src/l7/relay.rs:2838-2849 \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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"52caf6f60f7a557bf523dcbba29262586c1ad1450abe72de07a8d6ff0a6a0922"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-cli/src/auth.rs:411-422 | crates/openshell-cli/src/oidc_auth.rs:635-646 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"crates/openshell-cli/src/auth.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cc412c077cb704a3fa85cb886e5700a6eb53f887a45db250c6037941482084"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-cli/src/commands/gateway.rs:944-955 | crates/openshell-cli/src/commands/gateway.rs:1153-1164 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5036d0d176972da6f1500b71026322d001fcd75a15421226c037a1d3bcaae2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-cli/src/commands/provider.rs:317-328 | crates/openshell-cli/src/commands/provider.rs:1564-1575 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d27d342c31f19502ed2c2b95d64bb8c56ada0402bbad654daba61998b7a6385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-cli/src/commands/provider.rs:559-570 | crates/openshell-cli/src/commands/provider.rs:610-621 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebea8f002f432fb0e60ae4541363e13c2ca0ee78c80151f75f956f312a8f14c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): crates/openshell-cli/src/commands/provider.rs:1418-1429 | crates/openshell-cli/src/run.rs:3633-3642 \u2014 before extracting anything, compare \u0060crates/openshell-cli/src/commands/provider.rs\u0060 and \u0060crates/openshell-cli/src/run.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d523f54305edece866d340829c876431246c500950006e6914774b502f4501e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/openshell-cli/src/commands/provider.rs:1512-1522 | crates/openshell-cli/src/run.rs:2874-2885 \u2014 before extracting anything, compare \u0060crates/openshell-cli/src/commands/provider.rs\u0060 and \u0060crates/openshell-cli/src/run.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":1512}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4616d9e229a5a2e57ddf73213d76cd21c90cf5f9160eeff710070d9eb44ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-cli/src/commands/provider.rs:1554-1565 | crates/openshell-cli/src/run.rs:3825-3836 \u2014 before extracting anything, compare \u0060crates/openshell-cli/src/commands/provider.rs\u0060 and \u0060crates/openshell-cli/src/run.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":1554}}}],"partialFingerprints":{"codehealthFindingId/v1":"916335a10f12ebbd791de03759d5c0471c00c82171e2864eebef08b33fa7412b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-cli/src/commands/provider.rs:1681-1692 | crates/openshell-cli/src/commands/provider.rs:1720-1731 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7d89a6b5cc9d051d2dc2caebbf11aeb413ad5953bae87a615c068ed47a75c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-conformance/src/scenarios/sandbox_lifecycle.rs:315-326 | crates/openshell-conformance/src/scenarios/smoke.rs:174-185 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"crates/openshell-conformance/src/scenarios/sandbox_lifecycle.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"787a17a2d94346647beea0c77a42730bf1d003b0498900b19f44e2b9db6c6558"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-driver-docker/src/main.rs:121-132 | crates/openshell-driver-kubernetes/src/main.rs:214-225 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/main.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"692a98f9b49d52cd8a0455fc1cac0c3ebcf8cc9acc5b5629ce72918927b5cf71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-driver-mxc/src/policy_map/map.rs:134-145 | crates/openshell-driver-mxc/src/policy_map/map.rs:244-255 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/policy_map/map.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"771f29301cd5c82b19c234e74031730bab449cc12959179b9ee0914bb5170d8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-driver-podman/src/container.rs:867-878 | crates/openshell-driver-podman/src/container.rs:889-900 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-podman/src/container.rs"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6a904695ec0364813b103ecab020dadd911b87898b21a34f31f6da59eecbb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-driver-vm/src/layer_applier.rs:343-354 | crates/openshell-driver-vm/src/layer_applier.rs:650-661 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/layer_applier.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c3a77e4c011259c0d0b17ef254892c6319a2dbe3fd9dddcdfd482b9185bbb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-prover/src/containment.rs:2066-2077 | crates/openshell-prover/src/containment.rs:2080-2091 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-prover/src/containment.rs"},"region":{"startLine":2066}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20d5bcc63573f8c9d165f18a4451b589292f3b34191588186f7ede7d60c8591"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-providers/src/profiles.rs:3570-3581 | crates/openshell-server/src/grpc/provider.rs:1870-1881 \u2014 before extracting anything, compare \u0060crates/openshell-providers/src/profiles.rs\u0060 and \u0060crates/openshell-server/src/grpc/provider.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":3570}}}],"partialFingerprints":{"codehealthFindingId/v1":"68498e955694ee0357951af453c6a88a323797694171b5d8b0c240c3dd7aa012"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 2): crates/openshell-sandbox/src/network_broker.rs:888-899 | crates/openshell-sandbox/src/network_broker.rs:1308-1315 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox/src/network_broker.rs"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2fe91f3b4c6a08b3423877dd62a7edc5558a7a1fe4562bd609c29bcd4e34ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-sdk/src/client.rs:1432-1443 | crates/openshell-sdk/src/client.rs:1473-1484 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sdk/src/client.rs"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b6e1cc79f514784cbcea229c7ffdec4a28fd1d405513c270b3ffa2881d5a0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-server/src/grpc/policy.rs:8163-8174 | crates/openshell-server/src/grpc/policy.rs:8176-8187 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":8163}}}],"partialFingerprints":{"codehealthFindingId/v1":"92367a06afa98dfc9417d5ac1449ff9a284531a29a678a8c5998dd8e10d69536"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-server/src/grpc/provider.rs:1329-1340 | crates/openshell-server/src/grpc/provider.rs:1408-1419 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":1329}}}],"partialFingerprints":{"codehealthFindingId/v1":"b656dd034bd89df224ff15e1ee0ddcb1550e8d99ad338b80fc591bbdd4be6e65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/openshell-server/src/grpc/provider.rs:4257-4267 | crates/openshell-supervisor-network/src/token_grant.rs:361-372 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":4257}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d33e7cf4df078609849977fbd7bba9e53dd3722cd42466eb69867667de76ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 2): crates/openshell-server/src/grpc/provider.rs:4752-4759 | crates/openshell-supervisor-network/src/token_grant.rs:446-457 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":4752}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9bb1640d4e891c83f83ea48c90c3d9ce2db2e796f4100b4a09344da5f55cce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:1811-1822 | crates/openshell-server/src/grpc/sandbox.rs:1907-1918 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd1412fb975db9c737b60256cb586538e303468c66ed8b4405289fcb4032527"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-server/src/grpc/workspace.rs:486-497 | crates/openshell-server/src/grpc/workspace.rs:582-593 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/workspace.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"960134cd54349d8940b229a5bbd88b5b9d9aa0ff5de55f47f306be6789b18ad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1544-1555 | crates/openshell-server/src/persistence/sqlite.rs:1383-1394 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1544}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a597b7c2357045c390c598c62dc14c1d20b3347b6c48d7699372b7889ba15d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1842-1853 | crates/openshell-server/src/persistence/sqlite.rs:1670-1681 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1842}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b9d5fe6f648044d23a1216e716063bba8bb46ebbdf4fd9607212ca88ded08b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/openshell-server/src/persistence/sqlite.rs:1311-1321 | crates/openshell-server/src/persistence/sqlite.rs:1336-1347 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/persistence/sqlite.rs"},"region":{"startLine":1311}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0878031273816afed767e3270e1703b20b5c30f9421084781935aa291e5cfca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-supervisor-network/src/host.rs:149-160 | crates/openshell-supervisor-network/src/host.rs:178-189 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/host.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f091239699c0be4ddd3a666787141e1b968b857d858e84699040d324c5e6738"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/relay.rs:1199-1210 | crates/openshell-supervisor-network/src/l7/relay.rs:2061-2072 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1199}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a2cfc3b10179be99bd2fd8753e1f8d84acf99c159864ea7918d3cc9d9c1920"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-supervisor-network/src/sigv4.rs:284-295 | crates/openshell-supervisor-network/src/sigv4.rs:351-362 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/sigv4.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7a6f8aced38d1feaff1a82b3f0cb7a6e9afbd14f968395ff4be8b01ef928a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): crates/openshell-server/src/grpc/policy.rs:6023-6033 | crates/openshell-server/src/grpc/policy.rs:6171-6181 | crates/openshell-server/src/grpc/policy.rs:6277-6287 | crates/openshell-server/src/grpc/policy.rs:6581-6591 | crates/openshell-server/src/grpc/policy.rs:6657-6667 | crates/openshell-server/src/grpc/policy.rs:6747-6757 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":6023}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56071eaea1817a2aaa24fe17a8eb23ae1e83df0a29f46f251c2bbda74819b14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 6): crates/openshell-server/src/grpc/provider.rs:2705-2714 | crates/openshell-server/src/grpc/provider.rs:4052-4061 | crates/openshell-server/src/grpc/provider.rs:5316-5325 | crates/openshell-server/src/grpc/provider.rs:5400-5409 | crates/openshell-server/src/grpc/workspace.rs:485-495 | crates/openshell-server/src/grpc/workspace.rs:581-591 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/grpc/provider.rs\u0060 and \u0060crates/openshell-server/src/grpc/workspace.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":2705}}}],"partialFingerprints":{"codehealthFindingId/v1":"9daefb3b111e895969c9c10745c6e990c641b755f252488e7bf76a360ddedf86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): crates/openshell-server/src/grpc/provider.rs:2787-2796 | crates/openshell-server/src/grpc/provider.rs:4765-4774 | crates/openshell-server/src/grpc/sandbox.rs:326-336 | crates/openshell-server/src/grpc/workspace.rs:619-629 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/grpc/provider.rs\u0060 and \u0060crates/openshell-server/src/grpc/sandbox.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":2787}}}],"partialFingerprints":{"codehealthFindingId/v1":"356e6d15147c99ca6d38b14523d107cb325312bcceb7b6e7e49646de2b26b140"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/openshell-cli/src/commands/provider.rs:1177-1186 | crates/openshell-cli/src/commands/provider.rs:2804-2814 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3688c921439851aa475b4f52836e09fdb34d026b3699a9a5b946e8850fd527"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-cli/src/commands/provider.rs:1258-1268 | crates/openshell-cli/src/commands/provider.rs:1355-1365 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9e6b8390c05ae669e1041d5fe9879ef6cd2f0ae9304b7963f72bc8d09f524d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-cli/src/run.rs:3651-3661 | crates/openshell-cli/src/run.rs:5105-5115 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/run.rs"},"region":{"startLine":3651}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e2357a733d6aabd7414fa63cd58263958925025e741ecfa393a3490adb43a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-core/src/paths.rs:121-131 | crates/openshell-core/src/paths.rs:137-147 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/paths.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"0acf9153b16958d57b7292d0cc6917c0fd3185405500e7b7b89e4e3e69891b9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-driver-docker/src/lib.rs:1708-1718 | crates/openshell-driver-docker/src/lib.rs:1727-1737 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":1708}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4e1a4e09e8b4cf95c8319cbfd085ae3977f3ac64f00800c003273a58cebbb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-driver-docker/src/lib.rs:1796-1806 | crates/openshell-driver-docker/src/lib.rs:1818-1828 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ced31e12446782f11e1cfd104dc909a2eca60f9e2b638307dcc1d6c7d3e267"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-driver-docker/src/lib.rs:1853-1863 | crates/openshell-driver-docker/src/lib.rs:1929-1939 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":1853}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0aaaf675237dab3609d50d3dbfe89c3c2440de2d6f53e52e8eb6d64f792da9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 2): crates/openshell-driver-docker/src/lib.rs:6085-6095 | crates/openshell-driver-kubernetes/src/driver.rs:5895-5901 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":6085}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97c452656cc950f8102cdef1ec6beaf1311e4d36937b76d7ad3ec4fb589705a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/openshell-driver-kubernetes-secrets/src/main.rs:56-66 | crates/openshell-driver-vault/src/main.rs:77-86 \u2014 before extracting anything, compare \u0060crates/openshell-driver-kubernetes-secrets/src/main.rs\u0060 and \u0060crates/openshell-driver-vault/src/main.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes-secrets/src/main.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a3c2b0d9c383cff27018efe9b894390733ae24bf207ea369d31f6d10baf805"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-driver-vm/src/driver.rs:7467-7477 | crates/openshell-driver-vm/src/layer_applier.rs:158-168 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":7467}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c23a4204fdb9fbd8f9705fab1d2aeefed973a50381d6d4c27c848b31c83f1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): crates/openshell-sandbox-backend/src/runtime.rs:2034-2044 | crates/openshell-sandbox-backend/src/runtime.rs:2327-2335 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox-backend/src/runtime.rs"},"region":{"startLine":2034}}}],"partialFingerprints":{"codehealthFindingId/v1":"bccc80cefe733485e90df8f2231fbc5966288ec05825c551d9534575c18b6f04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-sandbox-backend/src/runtime_initiated.rs:120-130 | crates/openshell-sandbox-backend/src/runtime_routed.rs:461-471 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"crates/openshell-sandbox-backend/src/runtime_initiated.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"57872899c0b1da50fcfa29542d46b4b94e1bd0eab3bc37cdfa5647aa56b8dd53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-sandbox/src/denial_aggregator.rs:118-128 | crates/openshell-supervisor/src/denial_aggregator.rs:118-128 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/denial_aggregator.rs\u0060 and \u0060crates/openshell-supervisor/src/denial_aggregator.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/denial_aggregator.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"34305c90b19dec18155d802eb9123c23fbe28ae50a49518c35508dc7120cb9e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-sandbox/src/main_session.rs:567-577 | crates/openshell-sandbox/src/main_session.rs:680-690 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a59b14bb153b55734e0364539a8d4730be7829e4ee7316c7f6da899dfc0ac08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-server/src/grpc/policy.rs:4558-4568 | crates/openshell-server/src/grpc/policy.rs:4660-4670 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":4558}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa610b352650d130aa511b2f03470496d26c2995c6394d95e65af17f026da807"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-server/src/grpc/provider.rs:2963-2973 | crates/openshell-server/src/grpc/provider.rs:3058-3068 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":2963}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba91825e18cb3dd160877061ab3cc1812f1f16a33bd1e7cb578538955f2dac99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-server/src/grpc/provider.rs:3014-3024 | crates/openshell-server/src/grpc/workspace.rs:536-546 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/grpc/provider.rs\u0060 and \u0060crates/openshell-server/src/grpc/workspace.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":3014}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fedc194d3061b5159be93670adcedda534a47e39e71eb498bd66475f8c41e6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/openshell-server/src/grpc/provider_credentials.rs:264-273 | crates/openshell-server/src/grpc/provider_credentials.rs:323-333 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider_credentials.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"525e716970985114b5518be474fbf26d8887c7886c683a09d937bc8ea2c9f1a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:1368-1378 | crates/openshell-server/src/grpc/service.rs:42-52 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d60ac957284c9a18c70495649fedb3664265d7717ced73e38c8305b988ebff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:1769-1779 | crates/openshell-server/src/grpc/sandbox.rs:1865-1875 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":1769}}}],"partialFingerprints":{"codehealthFindingId/v1":"ececf9540aaff9cd95afd6d592ffb4686daeedaaf546ac8f3852db685cc0c9f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:985-995 | crates/openshell-server/src/persistence/sqlite.rs:762-772 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b9432d5cd5684bd33aced0b7b783934fff4714fa4cf4b5bbcb71096aef23bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1780-1790 | crates/openshell-server/src/persistence/sqlite.rs:1608-1618 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"207e09c53a9271aba70c9918630184eef8c3336f68e50a3e759f5bc39b7f50dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1806-1816 | crates/openshell-server/src/persistence/sqlite.rs:1634-1644 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1806}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d7a36fd7c5c757113ce153387837abd182ecf7c4246cd8e13d60571a16d7ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1826-1836 | crates/openshell-server/src/persistence/sqlite.rs:1654-1664 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1826}}}],"partialFingerprints":{"codehealthFindingId/v1":"60926516b63e1f792d3851758440d9bd879c7b74c5cd7724ff207f33f1ce952c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1999-2009 | crates/openshell-server/src/persistence/sqlite.rs:1828-1838 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1999}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b63abe7ec7f5df090d68ef9f4a54a8c3938417ed84ccd750275b4a806b4aa8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:2037-2047 | crates/openshell-server/src/persistence/sqlite.rs:1866-1876 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":2037}}}],"partialFingerprints":{"codehealthFindingId/v1":"286ee0aa3a2de6fedbf4536df84a71ca00f88c17dedc499225e6bf7b73e28500"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:2141-2151 | crates/openshell-server/src/persistence/sqlite.rs:1970-1980 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":2141}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b796cf11254510bedf285329ba19f25da43e49e6fc444495229e06bb5a4787"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/middleware.rs:91-101 | crates/openshell-supervisor-network/src/l7/relay.rs:865-875 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"crates/openshell-supervisor-network/src/l7/middleware.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fcaf50585c1938d3bf7c76f814c64eed89e668d89e57675ec8b0720e5df7229"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/relay.rs:1187-1194 | crates/openshell-supervisor-network/src/l7/relay.rs:2743-2753 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0485b24a928b5f5178fe798684dbab41bd5f71ce763b8be70b1d62045e91cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/relay.rs:2041-2051 | crates/openshell-supervisor-network/src/l7/relay.rs:3526-3536 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2041}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3b6c45ad28cc5a41190c5e6b322e1ca9d2c93d45d3b9d4274a58edfee6f123"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/relay.rs:2066-2075 | crates/openshell-supervisor-network/src/l7/relay.rs:2763-2773 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2066}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b61ba8ccd001bfb68a3d567b8cc7e9e33354dd5ca37d275071d8a812e2e101"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/relay.rs:2074-2085 | crates/openshell-supervisor-network/src/l7/relay.rs:2507-2517 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2074}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7801fe76cdb7d83608d782bf6fdad8b8cf85ff3e7a627f82ebb22a43dd0d1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/rest.rs:2940-2950 | crates/openshell-supervisor-network/src/l7/rest.rs:2971-2981 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":2940}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba49b4b6cb33840c0e57bd191bf2034d6231b1ddb122f975c6279d20746459c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-supervisor-network/src/policy_dns/runtime.rs:104-114 | crates/openshell-supervisor-network/src/policy_dns/runtime.rs:194-204 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/policy_dns/runtime.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cebcd38a0b0f9573c6e91a326ab1b3980901ede3a09647311d0422c9340791e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-supervisor-network/src/proxy.rs:2558-2568 | crates/openshell-supervisor-network/src/proxy.rs:5384-5394 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":2558}}}],"partialFingerprints":{"codehealthFindingId/v1":"950e97afb4be2dff7978a60081ef2a109cac311e7287fba23df1490f8e6eb1d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): crates/openshell-server/src/grpc/sandbox.rs:1306-1315 | crates/openshell-server/src/grpc/sandbox.rs:1555-1564 | crates/openshell-server/src/grpc/sandbox.rs:1768-1777 | crates/openshell-server/src/grpc/sandbox.rs:1809-1818 | crates/openshell-server/src/grpc/sandbox.rs:1864-1873 | crates/openshell-server/src/grpc/sandbox.rs:1905-1914 | crates/openshell-server/src/grpc/sandbox.rs:2037-2046 | crates/openshell-server/src/grpc/sandbox.rs:3306-3315 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"4030f0d35bb398936f09414f7df87ce0192b385563c4e3307eef06f8b7d5087d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): crates/openshell-server/src/grpc/provider.rs:2707-2716 | crates/openshell-server/src/grpc/provider.rs:4054-4063 | crates/openshell-server/src/grpc/provider.rs:4821-4830 | crates/openshell-server/src/grpc/provider.rs:5248-5257 | crates/openshell-server/src/grpc/provider.rs:5318-5327 | crates/openshell-server/src/grpc/sandbox.rs:1038-1047 | crates/openshell-server/src/grpc/sandbox.rs:1220-1229 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/grpc/provider.rs\u0060 and \u0060crates/openshell-server/src/grpc/sandbox.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":2707}}}],"partialFingerprints":{"codehealthFindingId/v1":"169f382c017cf8c78557b5984b9d514631f19216946d75ea9e310f99f2ebeeec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): crates/openshell-server/src/grpc/provider.rs:2789-2798 | crates/openshell-server/src/grpc/provider.rs:4767-4776 | crates/openshell-server/src/grpc/sandbox.rs:329-338 | crates/openshell-server/src/grpc/sandbox.rs:471-480 | crates/openshell-server/src/grpc/sandbox.rs:1132-1141 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/grpc/provider.rs\u0060 and \u0060crates/openshell-server/src/grpc/sandbox.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":2789}}}],"partialFingerprints":{"codehealthFindingId/v1":"626897683a9ad37f321536963b70073946967a5921d249c498ef596b4e6b4654"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): crates/openshell-server/src/grpc/policy.rs:6041-6050 | crates/openshell-server/src/grpc/policy.rs:6187-6196 | crates/openshell-server/src/grpc/policy.rs:6600-6609 | crates/openshell-server/src/grpc/policy.rs:6673-6682 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":6041}}}],"partialFingerprints":{"codehealthFindingId/v1":"09252fa40a15687b8680a79e092eb5ad38e2b7c09a867495c5058908815c938f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 4): crates/openshell-server/src/persistence/postgres.rs:1324-1333 | crates/openshell-server/src/persistence/sqlite.rs:1153-1162 | crates/openshell-server/src/persistence/sqlite.rs:1316-1323 | crates/openshell-server/src/persistence/sqlite.rs:1342-1349 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e318701beefe0673a19cb7bbc846d83ce9e342302e8c948a24ec7764d26f4e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/openshell-driver-kubernetes/src/driver.rs:5023-5032 | crates/openshell-driver-kubernetes/src/driver.rs:5119-5128 | crates/openshell-driver-kubernetes/src/driver.rs:5162-5171 \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":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":5023}}}],"partialFingerprints":{"codehealthFindingId/v1":"94df708f9718bd7f3fd26d8e7cfe745c3ad9a66e640c0d08dc08a27702be1619"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/openshell-server/src/grpc/provider_readiness.rs:310-319 | crates/openshell-server/src/grpc/service.rs:39-48 | crates/openshell-server/src/grpc/service.rs:192-201 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider_readiness.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7efa30d5151355670f41f15206215bb3c7c075af6577785af60a97e7d4d560"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-binary-identity/src/lib.rs:267-276 | crates/openshell-binary-identity/src/lib.rs:293-302 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-binary-identity/src/lib.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b2b1d40643939d3394e26816b2c25c697b98befcef0cfbc59d05d1922e8d5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-bootstrap/src/metadata.rs:333-342 | crates/openshell-bootstrap/src/metadata.rs:364-373 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-bootstrap/src/metadata.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2da2df86e9aa6555f6a18572c02f837651c28e7ae3635741f1e2199e140225"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-cli/src/run.rs:5483-5492 | crates/openshell-cli/src/run.rs:5527-5536 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/run.rs"},"region":{"startLine":5483}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34cbb09adb7964d90a8d2d100d22481c0f796da32a3ea3f136ccc91bdb0a97f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/openshell-cli/src/run.rs:6114-6123 | crates/openshell-cli/src/run.rs:6306-6314 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/run.rs"},"region":{"startLine":6114}}}],"partialFingerprints":{"codehealthFindingId/v1":"e837013bd6114292e072255b6ce59eaf7ec4547b009cd19ff27b6b06d04ac5cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-driver-docker/src/lib.rs:575-584 | crates/openshell-driver-docker/src/lib.rs:613-622 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac04956d4cf4b48f533e9cf2ea884e929735715f516dba07828324d19369acc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/openshell-driver-kubernetes/src/sandbox_runtime.rs:96-105 | crates/openshell-supervisor-network/src/l7/tls.rs:46-54 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/sandbox_runtime.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4ef91e24bedb3a788d173488de0986dd2ee53cf814110427fabf91394cdfd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-driver-vault/src/lib.rs:229-238 | crates/openshell-driver-vault/src/lib.rs:255-264 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vault/src/lib.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4c4026e763501234c6e527b7ebc56957fa14057166b7e40e751691645beb35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-prover/src/credentials.rs:347-356 | crates/openshell-prover/src/registry.rs:227-236 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"crates/openshell-prover/src/credentials.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6d3c6d3cc43d74b99abc3484098c627ef619916eb14899ff261a80d552327b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-providers/src/profiles.rs:738-747 | crates/openshell-providers/src/profiles.rs:763-772 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c25ff135c3f14594f3e066ed01816927cdeb5b73e1c64632853cc8272a0025b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-providers/src/profiles.rs:1855-1864 | crates/openshell-providers/src/profiles.rs:1904-1913 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":1855}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad1a13c6b6e09490805e0dc7668547a3d111f15f49d49526b7b47bb5842a9f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-sandbox/src/main.rs:1635-1644 | crates/openshell-sandbox/src/main.rs:1688-1697 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox/src/main.rs"},"region":{"startLine":1635}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb886f0eb16d5416298566365f4a3805a6587ddf5fc64ee14e08d6e7acf4dba6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-sdk/src/client.rs:924-933 | crates/openshell-sdk/src/client.rs:941-950 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sdk/src/client.rs"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d7983ed4c506259901c61d0d59deeaa34872f079da9e906848d72fc1d338a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-sdk/src/client.rs:991-1000 | crates/openshell-sdk/src/client.rs:1068-1077 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sdk/src/client.rs"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"5563a0338f7baa90c81fb4c4ebeebde3c9cfc29743e07004eaffb1ad170e7388"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-server/src/compute/mod.rs:760-769 | crates/openshell-server/src/compute/mod.rs:796-805 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6b6ceb7f3bdcd851b9edcdb9dd060f8809bec0e0fcec5b90a28e53889b162d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-server/src/compute/mod.rs:5925-5934 | crates/openshell-server/src/compute/mod.rs:5990-5999 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":5925}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad95cad4192e92bbf48bfe415c7053cc719ec8ff279c66897fdd53c94c34307"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-server/src/gateway_members.rs:126-135 | crates/openshell-server/src/supervisor_pool.rs:1067-1076 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"crates/openshell-server/src/gateway_members.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29d34b24472f7adeb11482f200d55b83d7418a581b517e42a6ddd1494389f8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-server/src/grpc/policy.rs:5358-5367 | crates/openshell-server/src/grpc/policy.rs:6784-6793 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":5358}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3df9a5dd5346bd1ee6663424d3d02d10741f05e588a2c7a10de02a0508ecd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-server/src/grpc/policy.rs:5954-5963 | crates/openshell-server/src/grpc/policy.rs:6785-6794 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":5954}}}],"partialFingerprints":{"codehealthFindingId/v1":"941aa1a44f4193b62d306ec47320de33c23d8ab687c6da76b5f3aaccf8bffac0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): crates/openshell-server/src/grpc/policy.rs:7643-7652 | crates/openshell-server/src/grpc/policy.rs:7673-7679 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":7643}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f75bf46792ee46359609b0a07709acaf29bfbc6bfb9ab7502ffd3eaa80f78b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-server/src/grpc/provider.rs:2976-2985 | crates/openshell-server/src/grpc/provider.rs:3073-3082 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":2976}}}],"partialFingerprints":{"codehealthFindingId/v1":"05cf300a428b3dc29dc87664c754c6b664d86d2289dced6a18a423d811292fb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-server/src/grpc/provider.rs:3689-3698 | crates/openshell-server/src/grpc/provider.rs:3789-3798 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":3689}}}],"partialFingerprints":{"codehealthFindingId/v1":"718419a941e3ebb50a281f773199d8fa5b14a04076248f5ab630d07b569cd266"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:1127-1136 | crates/openshell-server/src/grpc/sandbox.rs:1215-1224 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb7435d317b9568b8a372fdde438f8daf7e63dc4eae5fe2d8e6c053425fd020"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:1826-1835 | crates/openshell-server/src/grpc/sandbox.rs:1923-1932 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":1826}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb92a3757c4ccd74bf55ef4bf2e316b003789835f4fd35882a3384e3cc4aa05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:3354-3363 | crates/openshell-server/src/grpc/sandbox.rs:3447-3456 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":3354}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e9ec5daa6572921768e43ecd0b41bda64615946be1c55c27bcab6da0812c7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1668-1677 | crates/openshell-server/src/persistence/sqlite.rs:1496-1505 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"673c87015fc300a244cf6ac90c875a686e57c13657c8aa7cbd61b464560e7757"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1908-1917 | crates/openshell-server/src/persistence/sqlite.rs:1737-1746 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1908}}}],"partialFingerprints":{"codehealthFindingId/v1":"603b4790dca73163b08b93d1820cd1be907c97c7adff2b779e4d1a0b851fb833"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:2094-2103 | crates/openshell-server/src/persistence/sqlite.rs:1923-1932 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":2094}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4a5b8d1c95551c5418cd74ef8b88c5759c1ec63f40f01303442df576acf59a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-server/src/persistence/sqlite.rs:403-412 | crates/openshell-server/src/persistence/sqlite.rs:690-699 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/persistence/sqlite.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14f3f15325e7c66b831c6c4fadba71a265c36d663de1d890f5f2339dc370423"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-server/src/supervisor_session.rs:2098-2107 | crates/openshell-server/src/supervisor_session.rs:2161-2170 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_session.rs"},"region":{"startLine":2098}}}],"partialFingerprints":{"codehealthFindingId/v1":"624422a5fbcfcdba9c4a1c9df659811ffd9a3bc01b5442d1e0c4a008184b0bc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/relay.rs:2153-2162 | crates/openshell-supervisor-network/src/l7/relay.rs:3334-3343 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2153}}}],"partialFingerprints":{"codehealthFindingId/v1":"1efc9bf111283115a610a7d4d5a5c7a52efa7988c84099321b59bed1f6109c13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/rest.rs:2999-3008 | crates/openshell-supervisor-network/src/l7/rest.rs:3021-3030 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":2999}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb309a1b3092ea9abb52aae8d267cb28aed54cd977ac7d8f9c31b0aa6a3363b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-supervisor/src/config_runtime.rs:1279-1288 | crates/openshell-supervisor/src/config_runtime.rs:1318-1327 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor/src/config_runtime.rs"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eea0117d00a02c844b182f3339a93bb62dd76bc6d7964b1b997d7bd5e9107b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-tui/src/app.rs:1724-1733 | crates/openshell-tui/src/app.rs:2035-2044 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/app.rs"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a4dcf2860454bfa36cadd7265f5cb361a608a27abc5b4f6029cf3d52f6a5a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-tui/src/ui/mod.rs:201-210 | crates/openshell-tui/src/ui/mod.rs:415-424 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/ui/mod.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef99df8d49a416cdd9a1f189331b7f4f314bf7830a5e5228ddafc034dedc61e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-tui/src/ui/mod.rs:421-430 | crates/openshell-tui/src/ui/mod.rs:450-459 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/ui/mod.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8ccd1fed5495f72164e7cdd763888b33de0546702284f1f598d4594394cacd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-tui/src/ui/sandbox_draft.rs:986-995 | crates/openshell-tui/src/ui/sandbox_logs.rs:390-399 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/sandbox_draft.rs"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b2dcc55fae7a714636cbbf68cc7dbfdbeccdaa157451197b4d419a24bd9dac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): crates/openshell-server/src/compute/mod.rs:1581-1589 | crates/openshell-server/src/grpc/provider.rs:226-234 | crates/openshell-server/src/grpc/provider.rs:3013-3021 | crates/openshell-server/src/grpc/sandbox.rs:3353-3361 | crates/openshell-server/src/grpc/sandbox.rs:3446-3454 | crates/openshell-server/src/grpc/workspace.rs:535-543 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/grpc/provider.rs\u0060 and \u0060crates/openshell-server/src/grpc/sandbox.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":1581}}}],"partialFingerprints":{"codehealthFindingId/v1":"baedb09cf3b34269862b9d09d4f48d377c19cf7e44cd32adec21528f82255383"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): crates/openshell-sdk/src/client.rs:202-210 | crates/openshell-sdk/src/client.rs:241-249 | crates/openshell-sdk/src/client.rs:316-324 | crates/openshell-sdk/src/client.rs:506-514 | crates/openshell-sdk/src/client.rs:584-592 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sdk/src/client.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bfbcd4717f29543c57ace2712ff73aa8925c618e058eeab4a1c07cf5b1f05f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): crates/openshell-driver-kubernetes/src/driver.rs:4939-4947 | crates/openshell-driver-kubernetes/src/driver.rs:4982-4990 | crates/openshell-driver-kubernetes/src/driver.rs:5034-5042 | crates/openshell-driver-kubernetes/src/driver.rs:5173-5181 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":4939}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee0884d18c3da8529f121f4eeb1b9f542af605158a177bd429f2a26a2552750"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 4): crates/openshell-tui/src/ui/global_settings.rs:67-74 | crates/openshell-tui/src/ui/providers.rs:97-105 | crates/openshell-tui/src/ui/providers.rs:204-211 | crates/openshell-tui/src/ui/sandboxes.rs:120-128 \u2014 before extracting anything, compare \u0060crates/openshell-tui/src/ui/providers.rs\u0060 and \u0060crates/openshell-tui/src/ui/sandboxes.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/global_settings.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"7121b00cbee9305523737f0e4ce6952d3a6f74b129543e3029c0dae7167c6733"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/openshell-sandbox/src/boundary_server.rs:3062-3070 | crates/openshell-sandbox/src/boundary_server.rs:3163-3171 | crates/openshell-sandbox/src/boundary_server.rs:3345-3353 \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":"crates/openshell-sandbox/src/boundary_server.rs"},"region":{"startLine":3062}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa7f293c6d97896afa32616a681fde6b6d32c0907fc3d92ebc9316a90194a10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/openshell-server/src/compute/mod.rs:4819-4827 | crates/openshell-server/src/compute/mod.rs:5926-5934 | crates/openshell-server/src/compute/mod.rs:5991-5999 \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":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":4819}}}],"partialFingerprints":{"codehealthFindingId/v1":"2acd10a96e93eba98a2d9debb86f0d6139fb627d3be90ae0632a515b990305d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/openshell-server/src/compute/mod.rs:6351-6359 | crates/openshell-server/src/compute/mod.rs:6374-6382 | crates/openshell-server/src/compute/mod.rs:6400-6408 \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":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":6351}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8f1f666c344d3d9c4aaf2b1c21ee3eb4eacb516cfd59c68bbd11ffc2b8a994"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/openshell-server/src/grpc/policy.rs:5359-5367 | crates/openshell-server/src/grpc/policy.rs:5954-5962 | crates/openshell-server/src/grpc/policy.rs:6785-6793 \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":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":5359}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efe32554911f90bacd34728df524aa4bc216a3060d0bd57e24eb3ca8e245622"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/openshell-server/src/persistence/sqlite.rs:402-410 | crates/openshell-server/src/persistence/sqlite.rs:689-697 | crates/openshell-server/src/persistence/sqlite.rs:722-730 \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":"crates/openshell-server/src/persistence/sqlite.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d679c6183b012edda4be86cf1cc8c9823e60c9e2999323467834a26f30d4aca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/openshell-supervisor-network/src/l7/relay.rs:2156-2164 | crates/openshell-supervisor-network/src/l7/relay.rs:2580-2588 | crates/openshell-supervisor-network/src/l7/relay.rs:2866-2874 \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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2156}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cd43313a755c0a970b8cd152f939ca011fea9b6d675ce550b67f4727aa6566"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/openshell-tui/src/ui/providers.rs:17-25 | crates/openshell-tui/src/ui/providers.rs:113-121 | crates/openshell-tui/src/ui/sandboxes.rs:12-20 \u2014 before extracting anything, compare \u0060crates/openshell-tui/src/ui/providers.rs\u0060 and \u0060crates/openshell-tui/src/ui/sandboxes.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/providers.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3dd2149146200c147dc6fff46d69c93e1e1f1959ba70e799e0320ab3db01ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-cli/src/commands/common.rs:979-987 | crates/openshell-server/src/grpc/provider.rs:2520-2528 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/common.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f229197ba4d92964232a3222c632f1efe2477b86431de7cac6b051ac60de2ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-core/src/auth.rs:77-85 | crates/openshell-sdk/src/auth.rs:103-111 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/auth.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c0e38d4ef843da2773e8299e4ff57f3369a8fad432fd535f601c870ca8b3bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-core/src/paths.rs:52-60 | crates/openshell-core/src/paths.rs:92-100 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/paths.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af147929265f8ae837cfdb4f4f435405a7170208a90bd0719903c002c76c25a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/openshell-core/src/provider_credentials.rs:723-730 | crates/openshell-core/src/provider_credentials.rs:821-829 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-core/src/provider_credentials.rs"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03d75bab4bed9fab8ff9606890268e3eadb5052d07eced925bf05d6fe390455"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-driver-docker/src/lib.rs:154-162 | crates/openshell-driver-vm/src/driver.rs:723-731 \u2014 before extracting anything, compare \u0060crates/openshell-driver-docker/src/lib.rs\u0060 and \u0060crates/openshell-driver-vm/src/driver.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"92abc4bc37e2ab91ebfaa3419b8eae625c5e74b23c54b9f09f47e11d9674483c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-driver-kubernetes/src/grpc.rs:114-122 | crates/openshell-driver-podman/src/grpc.rs:109-117 \u2014 before extracting anything, compare \u0060crates/openshell-driver-kubernetes/src/grpc.rs\u0060 and \u0060crates/openshell-driver-podman/src/grpc.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/grpc.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"b96d2103d4b6fe93a8a30bac122444b82b1536c28777f7576ee732b06b21cc32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-driver-kubernetes/src/grpc.rs:183-191 | crates/openshell-driver-podman/src/grpc.rs:171-179 \u2014 before extracting anything, compare \u0060crates/openshell-driver-kubernetes/src/grpc.rs\u0060 and \u0060crates/openshell-driver-podman/src/grpc.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/grpc.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f3925b184457ee96908cd8d5c07d01c74b03944bbf4727ce4d71441516bc08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-driver-kubernetes/src/grpc.rs:231-239 | crates/openshell-driver-podman/src/grpc.rs:213-221 \u2014 before extracting anything, compare \u0060crates/openshell-driver-kubernetes/src/grpc.rs\u0060 and \u0060crates/openshell-driver-podman/src/grpc.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/grpc.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a7db2c9e16fe0a6823010f6b009eb5585617123bcaf578b67c62d89bc9677b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/openshell-driver-mxc/src/etw_consumer.rs:1024-1031 | crates/openshell-driver-mxc/src/etw_consumer.rs:1041-1049 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-mxc/src/etw_consumer.rs"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a93878706b4be4fa325a72985029319f72050ba62ffe93b8fd312fe50c1f268"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): crates/openshell-driver-podman/src/driver.rs:1718-1724 | crates/openshell-driver-podman/src/driver.rs:1769-1777 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-podman/src/driver.rs"},"region":{"startLine":1718}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9cf87e416d0e91d51e1ebeaa42ce98749db19dc196acfe5811252bd8dc4c37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-driver-vm/src/driver.rs:4404-4412 | crates/openshell-driver-vm/src/driver.rs:4549-4557 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":4404}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa63d10e16a0c30f69a7fd9b3aef8ea977ad65f1c38108be7087e567bcb7550d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-prover/src/model.rs:122-130 | crates/openshell-prover/src/model.rs:143-151 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-prover/src/model.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1d3672948b1e88d69a77265e0507f4c055b3be92c3e25ee273547fd00052d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-sandbox/src/boundary_server.rs:3345-3353 | crates/openshell-sandbox/src/boundary_server.rs:3722-3730 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox/src/boundary_server.rs"},"region":{"startLine":3345}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92daf3123a9b01d776c6d652bad643bc5722a0990ce437ac57b0220db295d99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-sandbox/src/boundary_server.rs:3916-3924 | crates/openshell-sandbox/src/boundary_server.rs:4022-4030 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox/src/boundary_server.rs"},"region":{"startLine":3916}}}],"partialFingerprints":{"codehealthFindingId/v1":"437f13082015b574e627af2778cb718299a12c4c5ce5229d632f425d76cf5f47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-sandbox/src/denial_aggregator.rs:161-169 | crates/openshell-supervisor/src/denial_aggregator.rs:161-169 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/denial_aggregator.rs\u0060 and \u0060crates/openshell-supervisor/src/denial_aggregator.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/denial_aggregator.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"606e3f4733953b3d81784b73cb79611443d6b9139b4afc2e1ee42e8154801142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-sandbox/src/main_session.rs:535-543 | crates/openshell-supervisor-process/src/main_session.rs:271-279 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/main_session.rs\u0060 and \u0060crates/openshell-supervisor-process/src/main_session.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e45c30bceacfc5aff36035620f82ea8fc7613cf44163cd3401fdb47185800b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-sandbox/src/main_session.rs:642-650 | crates/openshell-sandbox/src/main_session.rs:660-668 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"1535ee9bcb0a22834a56ac909d8af55d2e14af548f6e13a900c1714431c08d52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-sandbox/src/process.rs:489-497 | crates/openshell-sandbox/src/process.rs:650-658 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox/src/process.rs"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50111d561c82b1c187ee915dbd54f49596520bed356903323fd9748218991a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-sandbox/src/process.rs:610-618 | crates/openshell-sandbox/src/process.rs:735-743 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/process.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd1ec659e31bb7cbbf1449e2b6349bb57df2b02845a91a7e7e7723d528e4a27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-sandbox/src/process.rs:778-786 | crates/openshell-sandbox/src/process.rs:795-803 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox/src/process.rs"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f58e2c1716b7cee038d3567255e3b8a602589658a8a47fff9451120c668bb20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-sdk/src/client.rs:363-371 | crates/openshell-sdk/src/client.rs:1115-1123 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sdk/src/client.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"9043b53eb87f0821f9ac080a88e0074b50e4d39628142b23d11399ce3c1a27cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-server/src/compute/mod.rs:4069-4077 | crates/openshell-server/src/compute/mod.rs:4323-4331 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":4069}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca78c95fd4e13dcc7ba8d301ca2be7ee79263077ee1854f3ab2e68cd529722a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-server/src/config_file.rs:750-758 | crates/openshell-server/src/config_file.rs:772-780 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/config_file.rs"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cbaf1084793fd40185fefa159d025a9a18531e3e1bb954251b7f6cf6e1c98b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): crates/openshell-server/src/grpc/policy/endpoint_status.rs:446-454 | crates/openshell-server/src/grpc/policy/endpoint_status.rs:511-517 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy/endpoint_status.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c837cf8385abd4306bf39da976e7226368c8e9f0c3453bd9254ac4dfacade53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/openshell-server/src/grpc/provider.rs:3707-3714 | crates/openshell-server/src/grpc/provider.rs:3721-3729 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":3707}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0323897a2358e801fc5ac27c58654604d197ee4d8452b2c45c2bd23815b678"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:1519-1527 | crates/openshell-server/src/grpc/sandbox.rs:1650-1658 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":1519}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf2f058e4b325db27865d7137d63cd86643e954abf121235a430a8f694e5b5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-server/src/multiplex.rs:870-878 | crates/openshell-server/src/multiplex.rs:896-904 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/multiplex.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f8ac762e1a8b8813c761ac28fd952b7eeb52ba4eb54f5ca419cdc1e4e7b112"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-server/src/multiplex.rs:1417-1425 | crates/openshell-server/src/multiplex.rs:1443-1451 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/multiplex.rs"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad9e575901f0c14f626bbc77e9450bed62b1f109bf126f550f079ea1869f3287"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1358-1366 | crates/openshell-server/src/persistence/sqlite.rs:1187-1195 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51b1a236388eaf4a5f7f4a337ecb8f35fcc84fbb79a9d5a40af936b94b61187"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1404-1411 | crates/openshell-server/src/persistence/postgres.rs:1465-1473 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1404}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf34fee5b6de7e2643cdef8755107367c0e163f1016d0951021e89ccd3dbe1d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-server/src/provider_profile_sources.rs:112-120 | crates/openshell-server/src/provider_profile_sources.rs:133-141 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/provider_profile_sources.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0ae065bcf736e0ac8569756f28368ee197018a9b6bcf6b9d920e82d512e0a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/mod.rs:514-522 | crates/openshell-supervisor-network/src/opa.rs:1167-1175 \u2014 before extracting anything, compare \u0060crates/openshell-supervisor-network/src/l7/mod.rs\u0060 and \u0060crates/openshell-supervisor-network/src/opa.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/mod.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"303df7c5ee6100cc0007c13cd14e76c458446883c54c50494f3a3fb089f2ba05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/rest/http_response.rs:1974-1982 | crates/openshell-supervisor-network/src/l7/rest/http_response.rs:2003-2011 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":1974}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd410df39d06c15db7b167b23de759233ce9d81eed836675968d15d2abe70a66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/websocket.rs:2172-2179 | crates/openshell-supervisor-network/src/proxy.rs:2133-2141 \u2014 before extracting anything, compare \u0060crates/openshell-supervisor-network/src/l7/websocket.rs\u0060 and \u0060crates/openshell-supervisor-network/src/proxy.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/websocket.rs"},"region":{"startLine":2172}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c952256dc50b38933815af6c1d393c9785d7342025aedee991e395658d9be8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/openshell-supervisor-network/src/proxy.rs:1293-1300 | crates/openshell-supervisor-network/src/proxy.rs:1471-1479 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7e5a490516381d72edcd3b1fda4d58c795b12a6e762fd904fa5c2dc0aa9fbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-supervisor-network/src/proxy.rs:5911-5919 | crates/openshell-supervisor-network/src/proxy.rs:5965-5973 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":5911}}}],"partialFingerprints":{"codehealthFindingId/v1":"b115552382e8aeb56880fdef205daca2460c40b36bc9fa438fb8f79e65bf4e5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-tui/src/lib.rs:1927-1935 | crates/openshell-tui/src/lib.rs:1973-1981 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":1927}}}],"partialFingerprints":{"codehealthFindingId/v1":"de8b84fd04bf73092f54cad85cc8713d7bcc31421293f055689810e042eb604b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/openshell-tui/src/ui/create_provider.rs:576-583 | crates/openshell-tui/src/ui/create_sandbox.rs:288-296 \u2014 before extracting anything, compare \u0060crates/openshell-tui/src/ui/create_provider.rs\u0060 and \u0060crates/openshell-tui/src/ui/create_sandbox.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c946194c180336ac0a4e010cff50944fda45c8d2e29b2bdeafb1cc7ec72e87c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-tui/src/ui/mod.rs:242-250 | crates/openshell-tui/src/ui/mod.rs:264-272 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/mod.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e2e4abed41d93797bb94fbd56701a09abc56b1e14c581d33be8de93e41648e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 11): crates/openshell-server/src/persistence/postgres.rs:1177-1184 | crates/openshell-server/src/persistence/postgres.rs:1202-1209 | crates/openshell-server/src/persistence/postgres.rs:1362-1369 | crates/openshell-server/src/persistence/postgres.rs:1407-1414 | crates/openshell-server/src/persistence/postgres.rs:1434-1441 | crates/openshell-server/src/persistence/postgres.rs:1469-1476 | crates/openshell-server/src/persistence/postgres.rs:1502-1509 | crates/openshell-server/src/persistence/sqlite.rs:972-979 | crates/openshell-server/src/persistence/sqlite.rs:997-1004 | crates/openshell-server/src/persistence/sqlite.rs:1191-1198 | crates/openshell-server/src/persistence/sqlite.rs:1289-1296 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f41ef76492d6ca7fbff0983f9d3caa8145f932fe15160d29d16818d9fdf938"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/openshell-supervisor-network/src/l7/relay.rs:1189-1196 | crates/openshell-supervisor-network/src/l7/relay.rs:2051-2058 | crates/openshell-supervisor-network/src/l7/relay.rs:2468-2478 | crates/openshell-supervisor-network/src/l7/relay.rs:2748-2755 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90408afbe1b7dc0eff8e65d0d007d6eb86a6c9d60e38cd771abede35544da0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/openshell-supervisor-network/src/l7/relay.rs:2380-2387 | crates/openshell-supervisor-network/src/l7/websocket.rs:2130-2137 | crates/openshell-supervisor-network/src/proxy.rs:1479-1486 \u2014 before extracting anything, compare \u0060crates/openshell-supervisor-network/src/l7/relay.rs\u0060 and \u0060crates/openshell-supervisor-network/src/proxy.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2380}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb651a82062d0956525a48c5add223a104c5a77d239166a5bcb5237f4f87e80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): crates/openshell-supervisor-network/src/proxy.rs:5637-5644 | crates/openshell-supervisor-network/src/proxy.rs:5914-5920 | crates/openshell-supervisor-network/src/proxy.rs:5968-5974 \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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":5637}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23e1af6abed12e5ec907db8d77c74ae5a82cbb02156fd7cb83d9636256876e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/openshell-core/src/oauth.rs:293-299 | crates/openshell-providers/src/profiles.rs:3712-3719 \u2014 before extracting anything, compare \u0060crates/openshell-core/src/oauth.rs\u0060 and \u0060crates/openshell-providers/src/profiles.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/oauth.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b99121ec47d765335a422a4daf045a63d879bee52cf6d4bfb17f2a712e3bb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-driver-kubernetes-secrets/src/lib.rs:586-593 | crates/openshell-driver-vault/src/lib.rs:838-845 \u2014 before extracting anything, compare \u0060crates/openshell-driver-kubernetes-secrets/src/lib.rs\u0060 and \u0060crates/openshell-driver-vault/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes-secrets/src/lib.rs"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a94bc9e538440c3ef41a74047cd1c2994b1af001f58787ef33cfa52022f06d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-driver-kubernetes/src/sandbox_runtime.rs:678-685 | crates/openshell-driver-kubernetes/src/sandbox_runtime.rs:704-711 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-kubernetes/src/sandbox_runtime.rs"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c92ccc5d8fe205fa15a6f3529228ae38b136b7d0e8f07cb5a0060aaa274d170"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-driver-mxc/src/driver.rs:270-277 | crates/openshell-driver-podman/src/driver.rs:2110-2117 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/driver.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc49917844d7b79826d98b90ec756cf4bf3d1e87acc3b74861def4c1cb38bb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-driver-mxc/src/driver.rs:1146-1153 | crates/openshell-driver-mxc/src/driver.rs:1174-1181 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-mxc/src/driver.rs"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8cf4e32007be7a52fb60910e7725f268a368dc18ab90dd60581a4ffa384b4a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-gateway/src/lib.rs:319-326 | crates/openshell-gateway/src/lib.rs:451-458 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-gateway/src/lib.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"7caa2746a152c5c8ac638b021653b6c3215496706efbd1e2f240be9b2e1fafdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-gateway/src/vm.rs:759-766 | crates/openshell-server/src/credentials.rs:1864-1871 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-gateway/src/vm.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"82dd7b8c0141539aff1e8cdfee6931fde2479a60c23c78b69e44551f2b8fd2ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-ocsf/src/format/shorthand.rs:238-245 | crates/openshell-ocsf/src/format/shorthand.rs:309-316 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-ocsf/src/format/shorthand.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9ec69bb3f0252c6f311ab24e80b85da88204ac265306aa6363a468d3810c98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-sandbox/src/boundary_server.rs:3183-3190 | crates/openshell-sandbox/src/boundary_server.rs:4712-4719 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox/src/boundary_server.rs"},"region":{"startLine":3183}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71cb0b108dd966e7d34e3fc729d7d93016ad18c75026820ee0a2f2ef7b0ef98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-sandbox/src/linux/seccomp_notify.rs:548-555 | crates/openshell-sandbox/src/linux/seccomp_notify.rs:565-572 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox/src/linux/seccomp_notify.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b736ac4ece83e79f8e71a8f2e4abc2ba0af5a80731f3f433ce57a739ad6e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-sandbox/src/main_session.rs:510-517 | crates/openshell-supervisor-process/src/main_session.rs:259-266 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/main_session.rs\u0060 and \u0060crates/openshell-supervisor-process/src/main_session.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"2441698fbd67c72e522ef727ad565b6147fbc9d0002c8aa5d01cbe957b5d3a10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-sandbox/src/main_session.rs:925-932 | crates/openshell-supervisor-process/src/main_session.rs:468-475 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/main_session.rs\u0060 and \u0060crates/openshell-supervisor-process/src/main_session.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"1581b146447dc50c11310501da10656baf9a41cf699161e36a497a21c0bfe0dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-sandbox/src/network_broker.rs:917-924 | crates/openshell-sandbox/src/network_broker.rs:946-953 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox/src/network_broker.rs"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d297928c680a8903e27722a28d77283332e0034fde4e8d08caf0dd14e9cbf24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-sandbox/src/process.rs:563-570 | crates/openshell-sandbox/src/process.rs:707-714 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/process.rs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5d8adfc33356ebbce331fffa2e395b45e5e2800b57549a4f34fa9076710083"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-server/src/certgen.rs:824-831 | crates/openshell-server/src/certgen.rs:887-894 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/certgen.rs"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"670574565e466954f272c3860d98e228c0e5874477a210e7e82b24f5f1a53e41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-server/src/config_delivery/mod.rs:356-363 | crates/openshell-server/src/config_delivery/mod.rs:395-402 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/config_delivery/mod.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9e1364f7163492dc9cb4b46abe3e44ef309d059bcaeedf09c436bf16611810"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-server/src/grpc/policy.rs:6079-6086 | crates/openshell-server/src/grpc/policy.rs:6338-6345 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":6079}}}],"partialFingerprints":{"codehealthFindingId/v1":"71938006ba81e38e46d686a0d2956d08d522374f8fc0fd70c78566f78dc5f8da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-server/src/grpc/provider.rs:2981-2988 | crates/openshell-server/src/grpc/provider.rs:3206-3213 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":2981}}}],"partialFingerprints":{"codehealthFindingId/v1":"750589b3e62548510240b6eed9222aa10426c567038fa6e4a145fe11dc91adf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-server/src/persistence/mod.rs:1178-1185 | crates/openshell-server/src/persistence/mod.rs:1384-1391 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/persistence/mod.rs"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c8d542c50087e1e294ccbd0b00da435947c6a3bb1747eb06d880304ff6dca7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:374-381 | crates/openshell-server/src/persistence/sqlite.rs:338-345 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"889168302a6c280ae9cd8fa8bcf123298dd53afdc90bd16efe1c35b1b4d9881d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:798-805 | crates/openshell-server/src/persistence/sqlite.rs:590-597 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0f79ab7fbae333c48b858aa3525e010a333c4413a95d62d4a72c28ace2e677"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:2208-2215 | crates/openshell-server/src/persistence/sqlite.rs:2082-2089 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":2208}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b6349958a12265db25d70951a8796ac88919bd03d4b0958a154e98f6668457"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-server/src/provider_refresh.rs:1329-1336 | crates/openshell-server/src/provider_refresh.rs:1388-1395 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/provider_refresh.rs"},"region":{"startLine":1329}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bcd5175a79c54af4e0fac51a53178675983b894c2f87f377bf0d8ccffe6d3ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-server/src/tracing_bus.rs:318-325 | crates/openshell-server/src/tracing_bus.rs:999-1006 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/tracing_bus.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f10a7550f1c2abca8200c25d40bf583e7968f2a494ca2e23b1655051493b21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/openshell-supervisor-network/src/host.rs:126-133 | crates/openshell-supervisor-network/src/run.rs:491-497 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"crates/openshell-supervisor-network/src/host.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"5409f555976f6e26c78209e3de698ccf2d1f7fb0eb31ddef1a595ce7c3b062e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-supervisor-network/src/opa.rs:724-731 | crates/openshell-supervisor-network/src/opa.rs:790-798 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11b7f79e8a2f19ea39ec0007e92e37ecd2a505de8a9bcf3e1731b7ebdcb4952"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-supervisor-network/src/proxy.rs:5899-5906 | crates/openshell-supervisor-network/src/proxy.rs:5950-5957 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":5899}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8bd1ad9e922fd567f46bd3b2bff491f99763c2e510e6c7a595e158f47693dcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-tui/src/app.rs:1446-1453 | crates/openshell-tui/src/app.rs:1498-1505 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/app.rs"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a779cac79fd49e49bc1fd76a6f0e7a5ba89fc334c85f12e4ff755c294f0c3f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-tui/src/lib.rs:1004-1014 | crates/openshell-tui/src/lib.rs:1140-1147 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53a76a6041b65539f84a9fa892d3a7d066839fb6ddd418f6381ad8feab0a971"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-tui/src/lib.rs:1767-1774 | crates/openshell-tui/src/lib.rs:1875-1882 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":1767}}}],"partialFingerprints":{"codehealthFindingId/v1":"882bbe2b28a0ea4e4d6078d1e6a40a688183eee16e166f19882cae46c4979ce1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-tui/src/ui/mod.rs:195-202 | crates/openshell-tui/src/ui/mod.rs:217-224 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/ui/mod.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d3044c99aa902a54b1797e911182c6cff7fc7f2b3f374e9f6565a5803303c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 10): crates/openshell-server/src/grpc/provider.rs:2705-2711 | crates/openshell-server/src/grpc/provider.rs:2787-2793 | crates/openshell-server/src/grpc/provider.rs:4052-4058 | crates/openshell-server/src/grpc/provider.rs:4765-4771 | crates/openshell-server/src/grpc/provider.rs:5316-5322 | crates/openshell-server/src/grpc/provider.rs:5400-5406 | crates/openshell-server/src/grpc/sandbox.rs:326-333 | crates/openshell-server/src/grpc/workspace.rs:485-492 | crates/openshell-server/src/grpc/workspace.rs:581-588 | crates/openshell-server/src/grpc/workspace.rs:619-626 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/grpc/provider.rs\u0060 and \u0060crates/openshell-server/src/grpc/sandbox.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":2705}}}],"partialFingerprints":{"codehealthFindingId/v1":"291f03b4fdb3c432d3d15c484a4ae22f85349d68f8214ca9fb8ecfeb7aa81576"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): crates/openshell-sandbox/src/boundary_server.rs:3231-3237 | crates/openshell-sandbox/src/sandbox/linux/landlock.rs:268-275 | crates/openshell-sandbox/src/sandbox/linux/landlock.rs:383-390 | crates/openshell-sandbox/src/sandbox/linux/landlock.rs:423-430 | crates/openshell-sandbox/src/sandbox/linux/mod.rs:198-205 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/boundary_server.rs"},"region":{"startLine":3231}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71524a7e2b43b8fc0cefdeb20532014194641cb9a01622ae649da806ec2f4a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/openshell-core/src/oauth.rs:298-304 | crates/openshell-providers/src/profiles.rs:3718-3724 | crates/openshell-server/src/auth/oidc.rs:106-115 \u2014 before extracting anything, compare \u0060crates/openshell-core/src/oauth.rs\u0060 and \u0060crates/openshell-providers/src/profiles.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/oauth.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e094a50bd0b45a96460890e5532858d23554a925c0019e41fc6e94a02cb3c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): crates/openshell-driver-docker/src/lib.rs:6084-6090 | crates/openshell-driver-kubernetes/src/driver.rs:5895-5900 | crates/openshell-driver-kubernetes/src/driver.rs:6005-6011 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":6084}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af07edda9d87e5647889dff93411018e19177fee707a0050f9aca62a6594135"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/openshell-driver-vm/src/rootfs.rs:1098-1104 | crates/openshell-driver-vm/src/rootfs.rs:1128-1134 | crates/openshell-driver-vm/src/rootfs.rs:1157-1165 \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":"crates/openshell-driver-vm/src/rootfs.rs"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c2882b90c7e9077cbddc1b5ec1d52a909cb453d15b13f645d6c0d478acff10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/openshell-server/src/compute/mod.rs:1096-1102 | crates/openshell-server/src/compute/mod.rs:8032-8038 | crates/openshell-server/src/grpc/sandbox.rs:1948-1954 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe56a02f9cab1e165a70aa6ebd45c580b677c3ab87b650c2633a7c1923db558e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-cli/src/main.rs:3854-3860 | crates/openshell-cli/src/main.rs:3920-3926 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/main.rs"},"region":{"startLine":3854}}}],"partialFingerprints":{"codehealthFindingId/v1":"df880b0a93dffae8a162c0d049162e933049640806e4a543c7de5fad5c9af448"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-conformance/src/scenarios/policy_behavior.rs:291-297 | crates/openshell-conformance/src/scenarios/policy_behavior.rs:366-372 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-conformance/src/scenarios/policy_behavior.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"209170d6686f84ee3f6e174830b9b7afa21be5478d79eece7303fc9cf8621c95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-driver-mxc/src/mxc.rs:330-336 | crates/openshell-driver-mxc/src/mxc.rs:401-407 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-mxc/src/mxc.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"32eea86665af03f2800f8fa2feec988ac808f34f3447c2fe6884aca5e448a45e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-driver-mxc/src/mxc.rs:497-503 | crates/openshell-driver-mxc/src/mxc.rs:601-607 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/mxc.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a0de9d63435dedfd3ef3970c713bd9e3eca84639de369e8866320ace73f831"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-driver-podman/src/container.rs:1441-1447 | crates/openshell-driver-podman/src/container.rs:1489-1495 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-podman/src/container.rs"},"region":{"startLine":1441}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eee7fca695286063f5069c202fe54481eec0ee2958016c9656e92254ff82b11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-driver-podman/src/container.rs:1459-1465 | crates/openshell-driver-podman/src/container.rs:1477-1483 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-podman/src/container.rs"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3a09779df221e5daae8f377afb3823b0f8cd49eae7725bb38ad9ce1d10df75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-sandbox-backend/src/boundary_protocol.rs:1506-1512 | crates/openshell-sandbox-backend/src/boundary_protocol.rs:1527-1533 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox-backend/src/boundary_protocol.rs"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff91e40db85350699f865a3c5de7bbf3ab3b78d59b472f6410987c69363ccde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-sandbox/src/activity_aggregator.rs:108-114 | crates/openshell-supervisor/src/activity_aggregator.rs:108-114 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/activity_aggregator.rs\u0060 and \u0060crates/openshell-supervisor/src/activity_aggregator.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/activity_aggregator.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa37ab20bdb7f6b31f6e1d4d7ac8756f232a4d52b4d01c797a89ee2a74b106b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-sandbox/src/main_session.rs:981-987 | crates/openshell-supervisor-process/src/main_session.rs:485-491 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/main_session.rs\u0060 and \u0060crates/openshell-supervisor-process/src/main_session.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1dcbc79b7ee159f29eeed0589f8a954d6df8cea6130aef101bfa8f9048558e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-server/src/grpc/provider_credentials.rs:222-228 | crates/openshell-server/src/grpc/provider_credentials.rs:292-298 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/provider_credentials.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb5e0cc17eeca2a59f535271ef2d7615d2c519895b1f49867b81da2ee3c1ec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-server/src/persistence/legacy_time_wire.rs:62-68 | crates/openshell-server/src/persistence/legacy_time_wire.rs:188-194 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/legacy_time_wire.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdea845d54625f6c86b30d55910bc4763ebf64bdd3cfb4f664af5040e536f91b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-server/src/tracing_bus.rs:258-264 | crates/openshell-server/src/tracing_bus.rs:1017-1023 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/tracing_bus.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b593f1a6e9a807302e1c97b921130928331533b82c633a5f8d331cffc611bda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/relay.rs:2629-2635 | crates/openshell-supervisor-network/src/l7/relay.rs:2647-2653 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":2629}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c55482007dc10e8c64a5af6e46ecc1da925622006fdd04e94f3c28d582c85e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/rest.rs:1414-1420 | crates/openshell-supervisor-network/src/l7/rest.rs:3196-3202 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"02cad42a059af8a21135473eca0d6bfdf0afaf1cc644a62785f6244dcf337847"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/rest.rs:2392-2398 | crates/openshell-supervisor-network/src/l7/rest.rs:2472-2478 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":2392}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc09e794d2aa21eeb0f4cb025f48c798ecd4d864bd06a189249f3ffdfb544d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/rest.rs:2665-2671 | crates/openshell-supervisor-network/src/l7/rest.rs:3462-3468 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":2665}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb451036767ea77c8b09df12ae92762a65870d6bae32df154225a98f37d1818"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-tui/src/ui/mod.rs:232-238 | crates/openshell-tui/src/ui/mod.rs:254-260 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/mod.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"6491ff72b3e804a8b158f3abce8a25a2cea45d4bd941d423fdcf5235b2d0352e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): crates/openshell-tui/src/ui/create_provider.rs:51-56 | crates/openshell-tui/src/ui/create_provider.rs:159-164 | crates/openshell-tui/src/ui/create_provider.rs:548-553 | crates/openshell-tui/src/ui/create_provider.rs:799-804 | crates/openshell-tui/src/ui/create_sandbox.rs:41-46 \u2014 before extracting anything, compare \u0060crates/openshell-tui/src/ui/create_provider.rs\u0060 and \u0060crates/openshell-tui/src/ui/create_sandbox.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be7455cd02186b021359510a194ac7fff57926b2fe4e29f537ceafa16a3fbd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crates/openshell-driver-docker/src/lib.rs:1800-1805 | crates/openshell-driver-docker/src/lib.rs:1822-1827 | crates/openshell-driver-docker/src/lib.rs:1857-1862 | crates/openshell-driver-docker/src/lib.rs:1933-1938 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":1800}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9172b24ed5870e4900a4860c2bb3143ea84221b70c91c11400792f07e01696"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crates/openshell-tui/src/ui/mod.rs:210-215 | crates/openshell-tui/src/ui/mod.rs:235-240 | crates/openshell-tui/src/ui/mod.rs:257-262 | crates/openshell-tui/src/ui/mod.rs:273-278 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/mod.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b69eb6f993da57fa4e5a27bace9781b2f0ac3da7b6b7d7d12cb76ab5162f862"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/openshell-cli/src/main.rs:3853-3858 | crates/openshell-cli/src/main.rs:3919-3924 | crates/openshell-cli/src/main.rs:4098-4103 \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":"crates/openshell-cli/src/main.rs"},"region":{"startLine":3853}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f3da7c3b4ed08ee6f98a523d689ffc5935ccdb73b3444b5b177d710f9755fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/openshell-gateway/src/lib.rs:282-287 | crates/openshell-gateway/src/lib.rs:360-365 | crates/openshell-gateway/src/lib.rs:427-432 \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":"crates/openshell-gateway/src/lib.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b6b747f9b4ba8248b7b48fa5ae5dc799d31a7b5b627d06e9460d75a876bfd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/openshell-providers/src/profiles.rs:3551-3556 | crates/openshell-server/src/grpc/provider.rs:1851-1856 | crates/openshell-supervisor-network/src/l7/token_grant_injection.rs:573-578 \u2014 before extracting anything, compare \u0060crates/openshell-providers/src/profiles.rs\u0060 and \u0060crates/openshell-server/src/grpc/provider.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":3551}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dfb1a1e66b4c7f54c0f23b5709cce206412217ab572e3625370b9aafdaaf2fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/openshell-supervisor-network/src/proxy.rs:2867-2872 | crates/openshell-supervisor-network/src/proxy.rs:2905-2910 | crates/openshell-supervisor-network/src/proxy.rs:3161-3166 \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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":2867}}}],"partialFingerprints":{"codehealthFindingId/v1":"4795b5337ee854d7c97d8f4edb18b90d25e65604f6c583026dfc4697f146349b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/openshell-tui/src/ui/mod.rs:199-204 | crates/openshell-tui/src/ui/mod.rs:221-226 | crates/openshell-tui/src/ui/mod.rs:413-418 \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":"crates/openshell-tui/src/ui/mod.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"4170233ce658e661311a9737d4dfa1a4044d99053d07cdd11aa0932ff2b91081"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-cli/src/run.rs:1756-1761 | crates/openshell-cli/src/run.rs:1767-1772 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/run.rs"},"region":{"startLine":1756}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8241ebb555618d9c08b35c704bdada19e8946036299c0ba90214d686c11ad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-core/src/host_pattern.rs:182-187 | crates/openshell-policy/src/ambiguity.rs:577-583 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/host_pattern.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"6efd5ff99d37a37e67d55bdb3186d6bf715ce539cbe44826b4f882ef2c480ce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-core/src/jwt.rs:23-28 | crates/openshell-server/src/auth/peer.rs:386-391 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/jwt.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"77481b90b548c1047b28a58fe33bedf84c8f044ad253b929b754229fc65b9af1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-driver-docker/src/lib.rs:4910-4915 | crates/openshell-driver-docker/src/lib.rs:4954-4959 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":4910}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd00257d0b4233f9e9d80b9e8ff15aea95151aba36c5b353042ff68fb6bde8b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-driver-docker/src/lib.rs:5819-5824 | crates/openshell-driver-vm/src/driver.rs:6277-6282 \u2014 before extracting anything, compare \u0060crates/openshell-driver-docker/src/lib.rs\u0060 and \u0060crates/openshell-driver-vm/src/driver.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":5819}}}],"partialFingerprints":{"codehealthFindingId/v1":"5095fb449fc5449a2a7b7f9d8913287530487976fcbe5a5eb2160332c47e8460"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-driver-kubernetes-secrets/src/lib.rs:165-170 | crates/openshell-driver-vault/src/lib.rs:180-185 \u2014 before extracting anything, compare \u0060crates/openshell-driver-kubernetes-secrets/src/lib.rs\u0060 and \u0060crates/openshell-driver-vault/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes-secrets/src/lib.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"3983c4387aae73f39c7f7b63d89fc6ba0194a467ac047547cfa77ad294afbc8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-driver-podman/src/isolation.rs:86-93 | crates/openshell-driver-podman/src/isolation.rs:99-104 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-podman/src/isolation.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f0872aac1e34e396aae5cc3b6baac0c3b207963347018dab7f199d93fc5e5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-driver-vm/src/driver.rs:4348-4353 | crates/openshell-driver-vm/src/driver.rs:4484-4489 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":4348}}}],"partialFingerprints":{"codehealthFindingId/v1":"64bb77c646a4ee227b4bbb73eaf6954be9e123633b563c8bb2fae91abb902b37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-driver-vm/src/driver.rs:5945-5950 | crates/openshell-driver-vm/src/driver.rs:6048-6053 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":5945}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b732ecbe5ccdb1202d269302531ce988a127baf1ff10282730e6af284bc0c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-ocsf/src/events/network_activity.rs:71-76 | crates/openshell-ocsf/src/events/ssh_activity.rs:67-72 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-ocsf/src/events/network_activity.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb2ebd96adeac95b91c54016dad0ae4d1b81926a50353063da47c01af0e80c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 2): crates/openshell-sandbox/src/process.rs:499-503 | crates/openshell-sandbox/src/process.rs:660-665 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/process.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01c6ac5aacd148dd3b315cbe39abf393e0a17847ee52711930cfb2139416701"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-server/src/certgen.rs:834-839 | crates/openshell-server/src/certgen.rs:895-900 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/certgen.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43918e38984b814ab0a2b23fb36b3e2a35352ccd52219a50e4054d9257da042"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:367-372 | crates/openshell-server/src/persistence/sqlite.rs:331-336 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ea5047992dbc66c4214df5bccff16df060a4c3c5e8b667a62cb5ee3cdfa6bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-server/src/supervisor_session.rs:2072-2077 | crates/openshell-server/src/supervisor_session.rs:2135-2140 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/supervisor_session.rs"},"region":{"startLine":2072}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd9b138dd300787d25c1a54ee3952280b857d3179d618f469010f1531731394"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/rest.rs:2538-2543 | crates/openshell-supervisor-network/src/l7/rest.rs:3570-3575 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":2538}}}],"partialFingerprints":{"codehealthFindingId/v1":"336834eb675ae7d337a0bfbcd53c96c960a2b69f7889bd0438028cfc57822c8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-supervisor-network/src/proxy.rs:2704-2709 | crates/openshell-supervisor-network/src/proxy.rs:3232-3237 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":2704}}}],"partialFingerprints":{"codehealthFindingId/v1":"03dfd3d9a4b6b699a97890acd6849e7cb74a3a43c72dee2ce1ba0bda98cddad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-tui/src/lib.rs:2447-2453 | crates/openshell-tui/src/lib.rs:2547-2552 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":2447}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be76381dac393e1ffe040980a45ef6c2d776ae64e721d8f20140f70b67885b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-tui/src/lib.rs:2811-2816 | crates/openshell-tui/src/lib.rs:2821-2826 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":2811}}}],"partialFingerprints":{"codehealthFindingId/v1":"6065d53a43d6ef03106e1661309d3763a106e5a0bbef19c2bf8d1b8dcc437a70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-tui/src/ui/create_provider.rs:195-200 | crates/openshell-tui/src/ui/create_provider.rs:328-333 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"0835fc1b3ac4bb9aec61737a544c69fcd4674928b4f24b747c56e108b1c0aeec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-tui/src/ui/mod.rs:224-229 | crates/openshell-tui/src/ui/mod.rs:316-321 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/mod.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"c719a6a82a867fcaac3b89fa72b80e646784bba655dbe759e4a9713a0609298f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-vfio/src/gpu.rs:121-128 | crates/openshell-vfio/src/gpu.rs:145-150 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-vfio/src/gpu.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f49e3b36824849a19decc64f8f8afe283661fd3a2a2ff46970b9f2b3dc843a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): crates/openshell-tui/src/ui/mod.rs:201-205 | crates/openshell-tui/src/ui/mod.rs:223-227 | crates/openshell-tui/src/ui/mod.rs:245-249 | crates/openshell-tui/src/ui/mod.rs:267-271 | crates/openshell-tui/src/ui/mod.rs:415-419 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/mod.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7fca00c3ac648ac12abbfec285407479eec3d809cc3e72816265cfa6e46f51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/openshell-ocsf/src/events/api_activity.rs:58-62 | crates/openshell-ocsf/src/events/http_activity.rs:72-76 | crates/openshell-ocsf/src/events/network_activity.rs:68-72 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-ocsf/src/events/api_activity.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba7d3ee9d7f9ed9082288e5d2d46ec424eb7564b90af621ef112b2c7471cb45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/openshell-tui/src/ui/mod.rs:224-228 | crates/openshell-tui/src/ui/mod.rs:316-320 | crates/openshell-tui/src/ui/mod.rs:359-363 \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":"crates/openshell-tui/src/ui/mod.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a904e059b9fd4125c3ecfccae30f9f1369ff3bd68940a420b5c19027612346b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-cli/src/commands/common.rs:901-905 | crates/openshell-cli/src/commands/common.rs:940-944 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/commands/common.rs"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"d87b9f3f690b64f0e20c5ca58a45d52e891d399c87995e1c8a18c3f829051cd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-core/src/secrets.rs:575-579 | crates/openshell-core/src/secrets.rs:1142-1148 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/secrets.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd9e650d8cebb9b20920e9d7ba4cfabbb8036ff3b572c5c67280b20f6a8298f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-driver-docker/src/lib.rs:4126-4130 | crates/openshell-driver-docker/src/lib.rs:4145-4149 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":4126}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b915ffcfe6150a5bb6c1a3b39f81d98ef9a6891760b0d66dce1e3fed40bf52a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-driver-kubernetes-secrets/src/main.rs:127-131 | crates/openshell-driver-vault/src/main.rs:179-183 \u2014 before extracting anything, compare \u0060crates/openshell-driver-kubernetes-secrets/src/main.rs\u0060 and \u0060crates/openshell-driver-vault/src/main.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes-secrets/src/main.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a98ab2737bcb1e27fef7db857a0a45e136257c21fdf788cc99c6a60a76f57b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-driver-kubernetes/src/driver.rs:2036-2040 | crates/openshell-driver-kubernetes/src/driver.rs:4512-4516 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":2036}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c1aaf38584c82a9da9b4bab8ab2ac16f7cbdee4b52f1443f4839b1cb15bf83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-driver-kubernetes/src/driver.rs:6610-6614 | crates/openshell-driver-kubernetes/src/driver.rs:6653-6657 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":6610}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed9ba68ad8935cdfb46b55f3343db1b7a79a646fc5566a8c6ef1202569bcfcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-driver-kubernetes/src/main.rs:341-345 | crates/openshell-driver-podman/src/main.rs:281-285 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/main.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4fe1c4743b47d43b19d800c81417b84119db36cd7cf9d8c05991f53b6542b6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-driver-podman/src/container.rs:1680-1684 | crates/openshell-driver-podman/src/container.rs:1741-1745 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-podman/src/container.rs"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"b70009ccc9d10dc26cc41be1ea91d259eceedba0d8a1409c9a160912ee2bcf46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-ocsf/src/events/detection_finding.rs:67-71 | crates/openshell-ocsf/src/events/process_activity.rs:53-57 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"crates/openshell-ocsf/src/events/detection_finding.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbc5ad0308221a626ad9b1e98e5159a7717bc4179c42fa45b0f78a36ad78db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-ocsf/src/events/http_activity.rs:81-85 | crates/openshell-ocsf/src/events/network_activity.rs:75-79 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-ocsf/src/events/http_activity.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"db61a0013f4c704bfae1432f2ec2b3126b736c1d89a975c7d207b3712764fba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-server/src/credentials.rs:453-457 | crates/openshell-server/src/credentials.rs:500-504 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/credentials.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"73cf9c6c6b9fff6daf0d57a208d05838174f5be0eebdb42bb9bc28695ad840dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:2225-2229 | crates/openshell-server/src/persistence/sqlite.rs:2099-2103 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":2225}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd799c8e3f0f82c83904b6233d9c8dcab49141c170b46ee3c810fcd3084c5f7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-supervisor-network/src/proxy.rs:5893-5897 | crates/openshell-supervisor-network/src/proxy.rs:5944-5948 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":5893}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef09799287ef8dc659949c833037675e2c9746c26bdccef18723ba6743328e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-supervisor-process/src/ssh.rs:1064-1068 | crates/openshell-supervisor-process/src/ssh.rs:1085-1089 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-process/src/ssh.rs"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a0bfdac897afabb0ea0893db64965af5c8664cf4ec279e5fefccc7aafb6ea8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-supervisor/src/config_runtime.rs:1602-1606 | crates/openshell-tui/src/app.rs:212-216 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/config_runtime.rs"},"region":{"startLine":1602}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5c609c3939f2dd7e553a85de3fd23830962c81b70d83e85e6de20910ab431f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-tui/src/app.rs:917-921 | crates/openshell-tui/src/app.rs:932-937 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9e4d692bb8e7ccf4902a7ae5bb7f404fed7e652506359cfc5267fe4cc9216a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-tui/src/lib.rs:959-963 | crates/openshell-tui/src/lib.rs:1089-1094 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6719fc7463c893d3ef3bf1c9fc81bb00a7ec85f694ddf7a5f0a015d77a3fd3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-tui/src/ui/create_provider.rs:985-989 | crates/openshell-tui/src/ui/create_sandbox.rs:233-237 \u2014 before extracting anything, compare \u0060crates/openshell-tui/src/ui/create_provider.rs\u0060 and \u0060crates/openshell-tui/src/ui/create_sandbox.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c35a17b5fefddf9e2c311f209717bd0a52c3eb4e57cf19dff9ca0e552cf98db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-tui/src/ui/global_settings.rs:14-18 | crates/openshell-tui/src/ui/sandbox_settings.rs:13-17 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"crates/openshell-tui/src/ui/global_settings.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e49aaedbcb402e5bc0c4e656e3b0589a6490dfc67be541f08cf0b3a0069b86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-cli/src/commands/provider.rs:73-85 | crates/openshell-cli/src/run.rs:142-154 \u2014 before extracting anything, compare \u0060crates/openshell-cli/src/commands/provider.rs\u0060 and \u0060crates/openshell-cli/src/run.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3defbbf9980c0dd0916dab7d8eda8615f3b4d4f1eaa176ae6f4692ae69fc7b34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-cli/src/commands/provider.rs:2153-2163 | crates/openshell-providers/src/profiles.rs:1419-1429 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":2153}}}],"partialFingerprints":{"codehealthFindingId/v1":"d501b02fba37dcbb0253d68757a09c761a9c5762491bedaf0ba03351df95388e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-cli/src/oidc_auth.rs:95-102 | crates/openshell-sdk/src/oidc.rs:141-148 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/oidc_auth.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"939a5d60a98f7d651d593ef1250fc75d2aec8e1628ebfcd4e0399860610c8aef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/openshell-core/src/grpc_client.rs:729-735 | crates/openshell-supervisor-control/src/controller.rs:1281-1287 | crates/openshell-supervisor-control/src/coordinator.rs:409-415 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/grpc_client.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fec79dbb0de11f4880f0ab174e38562ca7b4c73bb0b7d695501a3a030aab49e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-core/src/jwt.rs:643-650 | crates/openshell-server/src/auth/sandbox_jwt.rs:565-572 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/jwt.rs"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f9a0abf8c6da7bc15bdc1ff60294e09715eff120d35fe23f39c65a7cdf1ef9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-core/src/oauth.rs:282-290 | crates/openshell-providers/src/profiles.rs:3701-3709 \u2014 before extracting anything, compare \u0060crates/openshell-core/src/oauth.rs\u0060 and \u0060crates/openshell-providers/src/profiles.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/oauth.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"522f666ad23e67da07ffeb4f53d0682e5f3ac54bbb4a1a6bb73c349fe5597996"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-core/src/spiffe.rs:52-59 | crates/openshell-supervisor-network/src/spiffe_endpoint.rs:11-18 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/spiffe.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"559516e88b5fe164820268ca5aed07030f070bae96953ed81d0145534e8fed26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-driver-docker/src/lib.rs:2744-2752 | crates/openshell-driver-vm/src/driver.rs:4721-4729 \u2014 before extracting anything, compare \u0060crates/openshell-driver-docker/src/lib.rs\u0060 and \u0060crates/openshell-driver-vm/src/driver.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":2744}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21f1d8ff32e6bbaa3a5ded503cc9cce9c0c7556ed2caf9abc812b0a86b9efc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-driver-docker/src/lib.rs:2754-2760 | crates/openshell-driver-vm/src/driver.rs:4731-4737 \u2014 before extracting anything, compare \u0060crates/openshell-driver-docker/src/lib.rs\u0060 and \u0060crates/openshell-driver-vm/src/driver.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":2754}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb10602e713ca09b68a4f58fc7d7f25c8754fb9f7e7d479c2810eb30f34c277e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-driver-docker/src/lib.rs:2762-2771 | crates/openshell-driver-vm/src/driver.rs:4739-4748 \u2014 before extracting anything, compare \u0060crates/openshell-driver-docker/src/lib.rs\u0060 and \u0060crates/openshell-driver-vm/src/driver.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":2762}}}],"partialFingerprints":{"codehealthFindingId/v1":"30daec351e048f55c5e031aed1deb22b4acf955cbb8a22261589ccf4ebd1cb12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-driver-kubernetes-secrets/src/lib.rs:469-474 | crates/openshell-driver-vault/src/lib.rs:532-537 \u2014 before extracting anything, compare \u0060crates/openshell-driver-kubernetes-secrets/src/lib.rs\u0060 and \u0060crates/openshell-driver-vault/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes-secrets/src/lib.rs"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"d123d31c6d4618a156c18fcf5a17b0e6c0d9b0a0d5423462576ad40c8ab9b756"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-driver-kubernetes-secrets/src/lib.rs:487-493 | crates/openshell-driver-vault/src/lib.rs:550-556 \u2014 before extracting anything, compare \u0060crates/openshell-driver-kubernetes-secrets/src/lib.rs\u0060 and \u0060crates/openshell-driver-vault/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes-secrets/src/lib.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae47614256f0c03fab7e4190b3868d216013f418c2e07dcc0057e02827b9b63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-driver-kubernetes-secrets/src/lib.rs:653-662 | crates/openshell-driver-vault/src/lib.rs:892-901 \u2014 before extracting anything, compare \u0060crates/openshell-driver-kubernetes-secrets/src/lib.rs\u0060 and \u0060crates/openshell-driver-vault/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes-secrets/src/lib.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3615efb2ecb4ad310a57ba1f1a66a65a3000cb7736ecd59a4064662a4e9a16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-driver-kubernetes-secrets/src/main.rs:104-110 | crates/openshell-driver-vault/src/main.rs:156-162 \u2014 before extracting anything, compare \u0060crates/openshell-driver-kubernetes-secrets/src/main.rs\u0060 and \u0060crates/openshell-driver-vault/src/main.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes-secrets/src/main.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"30985412a8568d9e837f0668035c27cf4cd912af7fbc55a6d370456b18cb98ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-driver-kubernetes/src/driver.rs:6889-6895 | crates/openshell-driver-vm/src/driver.rs:7830-7836 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":6889}}}],"partialFingerprints":{"codehealthFindingId/v1":"722fec52e83a622d4956f291daa23612a0a446cb3e29da51590fb6e0642928e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-driver-podman/src/container.rs:110-120 | crates/openshell-driver-vm/src/driver.rs:176-186 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/container.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe17ba590f5937bacca9d75d72a7c1c1fd8fd703b1ccb26e9f2a03d03ef67c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-driver-podman/src/socket_discovery.rs:154-158 | crates/openshell-driver-vm/src/driver.rs:5756-5760 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/socket_discovery.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"633e058d6b8ed13733fb8955c47567b1d17817921e0feda8a3b1207b560f4639"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/openshell-policy/src/merge.rs:1214-1221 | crates/openshell-sandbox/src/mechanistic_mapper.rs:250-258 | crates/openshell-supervisor/src/mechanistic_mapper.rs:251-259 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/mechanistic_mapper.rs\u0060 and \u0060crates/openshell-supervisor/src/mechanistic_mapper.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/merge.rs"},"region":{"startLine":1214}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24dd5c0934c2ee78a611b93c643e8321d928d24785e6fb4a131452322bb15b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-providers/src/profiles.rs:1848-1852 | crates/openshell-supervisor-network/src/l7/mod.rs:984-988 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":1848}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3ca2d3de22afd7e3e86914e31bacd619adc2d36d4e978aa50959637bb515e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-providers/src/profiles.rs:3491-3497 | crates/openshell-server/src/grpc/provider.rs:1705-1711 \u2014 before extracting anything, compare \u0060crates/openshell-providers/src/profiles.rs\u0060 and \u0060crates/openshell-server/src/grpc/provider.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":3491}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2981f5aefd95efd9a5e4d50301d62fe608148a45c9de912024f7fc143a4b36b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/openshell-providers/src/profiles.rs:3558-3563 | crates/openshell-server/src/grpc/provider.rs:1858-1863 | crates/openshell-supervisor-network/src/l7/token_grant_injection.rs:580-585 \u2014 before extracting anything, compare \u0060crates/openshell-providers/src/profiles.rs\u0060 and \u0060crates/openshell-server/src/grpc/provider.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":3558}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e8d21f4844410f1dc8cb68932ae5505d237d503999b177b8b3a8c99ee7b0d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-sandbox/src/activity_aggregator.rs:133-138 | crates/openshell-supervisor/src/activity_aggregator.rs:133-138 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/activity_aggregator.rs\u0060 and \u0060crates/openshell-supervisor/src/activity_aggregator.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/activity_aggregator.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f23232553ab51696562e17f5b9dc5eae9c8c07e9b129611f894c73f887980c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-sandbox/src/activity_aggregator.rs:147-158 | crates/openshell-supervisor/src/activity_aggregator.rs:147-158 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/activity_aggregator.rs\u0060 and \u0060crates/openshell-supervisor/src/activity_aggregator.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/activity_aggregator.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"52723768b03acd2fe9f7488efc82e3a4b4b4565a94f8e8583efad04a91e76057"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-sandbox/src/main_session.rs:37-42 | crates/openshell-supervisor-process/src/main_session.rs:31-36 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/main_session.rs\u0060 and \u0060crates/openshell-supervisor-process/src/main_session.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d665f1480c6e211311df569a8e65c902edfce9248c033cf053385c065a5b0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-sandbox/src/main_session.rs:836-847 | crates/openshell-supervisor-process/src/main_session.rs:382-393 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/main_session.rs\u0060 and \u0060crates/openshell-supervisor-process/src/main_session.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"47cd909e4f28db82039f0656902a605a3870e8f72b8ce485587c9c753252173f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-sandbox/src/main_session.rs:850-856 | crates/openshell-supervisor-process/src/main_session.rs:396-402 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/main_session.rs\u0060 and \u0060crates/openshell-supervisor-process/src/main_session.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26bd7fef675e9b316eaa6cb329e8602490d791fcf154461a285078f68aa9301"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-sandbox/src/main_session.rs:946-951 | crates/openshell-supervisor-process/src/main_session.rs:477-482 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/main_session.rs\u0060 and \u0060crates/openshell-supervisor-process/src/main_session.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3cc8e1e4f8835b7af27153dc9c11b32ff16b8ff8c9cfb4e4d66fbc4a072290a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-sandbox/src/mechanistic_mapper.rs:432-440 | crates/openshell-supervisor/src/mechanistic_mapper.rs:433-441 \u2014 before extracting anything, compare \u0060crates/openshell-sandbox/src/mechanistic_mapper.rs\u0060 and \u0060crates/openshell-supervisor/src/mechanistic_mapper.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/mechanistic_mapper.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a273b4d265d4d7985edb59c61301b5d1c488dd37d1773ef1e7e0423fea90d8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-server/src/compute/mod.rs:600-605 | crates/openshell-server/src/credentials.rs:1552-1557 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f69f2a4f5fbfbcea5dc396efd541ffa84030c190be267d88187a8c46762983a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): crates/openshell-supervisor-middleware/src/headers.rs:258-277 | crates/openshell-supervisor-network/src/l7/http.rs:69-88 | crates/openshell-supervisor-network/src/l7/rest.rs:575-594 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/headers.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"6649684d91d0ada8104d1f1fe3add5540fb0a5cf03aa66ef5feebfe548a98b05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-supervisor-middleware/src/response.rs:181-191 | crates/openshell-supervisor-middleware/src/websocket.rs:162-172 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/response.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5726b70559780cee3ed4b81695049b40cdb5dad6750cfd354169a21fc1c923"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/mod.rs:617-623 | crates/openshell-supervisor-network/src/opa.rs:1330-1336 \u2014 before extracting anything, compare \u0060crates/openshell-supervisor-network/src/l7/mod.rs\u0060 and \u0060crates/openshell-supervisor-network/src/opa.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/mod.rs"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3e70d3b8e6accecad6be7b086cd1f8eeb2383f46bfe667f98879f473dc4e47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/openshell-supervisor-network/src/l7/path.rs:382-389 | crates/openshell-supervisor-network/src/l7/rest.rs:696-703 | crates/openshell-supervisor-network/src/l7/rest.rs:1979-1986 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/path.rs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"1876fb6ced63b5a6fcca7b72207c6e0695084a0d45855c494dd6bfd6ea087799"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/relay.rs:3045-3050 | crates/openshell-supervisor-network/src/l7/token_grant_injection.rs:504-509 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":3045}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f227ae286c5b0b2116d3bc3fd331f30ecb3ea773f226b7fc94eb4610fef0b8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/openshell-bootstrap/src/metadata.rs:418-426 | crates/openshell-bootstrap/src/oidc_token.rs:75-83 | crates/openshell-bootstrap/src/oidc_token.rs:102-110 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-bootstrap/src/metadata.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"422ae78150574cc5f174309549316362e00c2da8ea7c9194d7500449096f22ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/openshell-core/src/jwt.rs:585-591 | crates/openshell-core/src/jwt.rs:594-600 | crates/openshell-extension-core/src/auth.rs:72-78 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/jwt.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66d7e7981fd8ca4803cb62a303744cbbe7a5920cb8b8e498adbef8662f53e83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-driver-docker/src/lib.rs:3640-3648 | crates/openshell-driver-vm/src/driver.rs:7753-7761 \u2014 before extracting anything, compare \u0060crates/openshell-driver-docker/src/lib.rs\u0060 and \u0060crates/openshell-driver-vm/src/driver.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":3640}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb99e3d5a0cb499d8989a9c3b666a02862b9aff879aae4bb2e758de44ff3af9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-driver-kubernetes/src/grpc.rs:136-147 | crates/openshell-driver-podman/src/grpc.rs:131-138 \u2014 before extracting anything, compare \u0060crates/openshell-driver-kubernetes/src/grpc.rs\u0060 and \u0060crates/openshell-driver-podman/src/grpc.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/grpc.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd39d4070fdc20110d0583dbfab49900224b5e2a40e324b6e9e026fca61ed54b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-policy/src/merge.rs:2192-2200 | crates/openshell-supervisor-network/src/policy_dns/mod.rs:420-428 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/merge.rs"},"region":{"startLine":2192}}}],"partialFingerprints":{"codehealthFindingId/v1":"479ac3e80d53d3e163fc1f5132184bcea68cc109c2f38636c0c27dc60c2503b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:350-356 | crates/openshell-server/src/persistence/sqlite.rs:320-326 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"a918e50645f065a3aaf161104ee0a6e4628062e9512f7e48549d245d8e66ab44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-supervisor-middleware/src/response.rs:174-179 | crates/openshell-supervisor-middleware/src/websocket.rs:155-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/response.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a71f42daed59c0ae22ca8e43f12487b360e56c74d676e214f54b55d15a2d4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-tui/src/ui/global_settings.rs:127-132 | crates/openshell-tui/src/ui/sandbox_settings.rs:130-135 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/global_settings.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1062fc2e49ca04887232b0ec82406830b7eeb0f9393bc2940b512e6cba10a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): crates/openshell-server/src/persistence/postgres.rs:1380-1403 | crates/openshell-server/src/persistence/postgres.rs:1451-1466 | crates/openshell-server/src/persistence/postgres.rs:1485-1500 \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":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1380}}}],"partialFingerprints":{"codehealthFindingId/v1":"6729e4e42315b3ac1c644eaf77e5c6cb4bee5e6c01685ea705e972fe7a217e73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1887-1907 | crates/openshell-server/src/persistence/sqlite.rs:1715-1736 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1887}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9c5319eb07f11aa00e9c13c09bb52a9b0a80d419883572e5e9ea14cc0e9052"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/openshell-driver-vm/src/driver.rs:3449-3468 | crates/openshell-driver-vm/src/driver.rs:3619-3638 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":3449}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7015e36398632c4737c8dda203cf5cb50df69e7d88d175882981dfe506b245"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-driver-vm/src/driver.rs:1533-1552 | crates/openshell-driver-vm/src/driver.rs:1600-1609 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b843790f2536f86dc0a90daceaf3bce5ef33c451eaf1c4a2d1642351cc2ff3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/openshell-supervisor-network/src/proxy.rs:5588-5604 | crates/openshell-supervisor-network/src/proxy.rs:5735-5753 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":5588}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4007da094831113f54b8e407e819269242eb389a22debf8709e4229e37eb50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:564-580 | crates/openshell-server/src/persistence/postgres.rs:882-900 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"2677b141de0c83aa3d62d14c6e7d0f1a5ce29d1c7cda37d8b3a3bd71a1652286"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): crates/openshell-supervisor-network/src/proxy.rs:5588-5603 | crates/openshell-supervisor-network/src/proxy.rs:5735-5752 | crates/openshell-supervisor-network/src/proxy.rs:6231-6246 \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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":5588}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0301f3698ae292d386c08ecf1ad2b9cdd333de4917c447917189c44fc6dcd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1955-1972 | crates/openshell-server/src/persistence/sqlite.rs:1784-1801 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1955}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c879feead8687c7466be38cca9bbc4d580da1dd572337f174a589a37f03c42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1862-1879 | crates/openshell-server/src/persistence/sqlite.rs:1690-1707 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d07f8aa56457b19cfa6dddb9ce4c3b91092a95314af27f05d071aaea2bff65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-cli/src/commands/gateway.rs:964-980 | crates/openshell-cli/src/commands/gateway.rs:987-1000 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8726fd28837b3e4142d968ec56b7336ed7e15ff67729523cf90e113fe473f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:781-797 | crates/openshell-server/src/persistence/sqlite.rs:573-589 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45a1065045857c9564893e2449c31937f379ac00f5f2d9a8781cba13569d7c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crates/openshell-driver-kubernetes/src/driver.rs:6419-6431 | crates/openshell-driver-kubernetes/src/driver.rs:6434-6450 | crates/openshell-driver-kubernetes/src/driver.rs:6453-6465 \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":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":6419}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2f0c43fdf760f85db129ed79ab958fe51f3a89d9a367bb1ec666608bc55c14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-supervisor-middleware/src/lib.rs:1756-1771 | crates/openshell-supervisor-middleware/src/lib.rs:1936-1951 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-middleware/src/lib.rs"},"region":{"startLine":1756}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ff701d358f1f0fe76a778b30d63d1b5b7c83de64ac66ea085dd47652c640e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-supervisor-network/src/proxy.rs:6579-6594 | crates/openshell-supervisor-network/src/proxy.rs:6657-6672 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":6579}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d24349cfd2a6974e86e44c06e3175e08886a734d9f68edf24fa8202f04ff672"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1749-1764 | crates/openshell-server/src/persistence/sqlite.rs:1577-1592 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1749}}}],"partialFingerprints":{"codehealthFindingId/v1":"9379f6143d7bc0837ba4987768408ba93882d10489a73af5cd8c75de8df6c85b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/rest/http_response.rs:334-349 | crates/openshell-supervisor-network/src/l7/rest/http_response.rs:379-394 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc49288e5dd526f42189a299089c51fa319e979cb91f74990e66cb4d9648306"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1052-1067 | crates/openshell-server/src/persistence/sqlite.rs:827-842 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dcc0d3ccb3ba7f23e1a12d7b5d980b1e13378adcad1033f25462574203aecfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-supervisor-network/src/run.rs:507-522 | crates/openshell-supervisor-network/src/run.rs:526-541 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/run.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6620d985e321b15829ed272152e271d0a8c00f3b55809616febf0ea56ca995"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:2692-2707 | crates/openshell-server/src/grpc/sandbox.rs:3271-3286 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":2692}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4cc7c168e5d5ee90a7dc688d253206479b0fe4c2ffb1e2b659d1068a608e4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/openshell-cli/src/run.rs:6463-6477 | crates/openshell-cli/src/run.rs:6508-6522 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/run.rs"},"region":{"startLine":6463}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa9c8eaff5b31a3c015bd1aaedb4f52c1c8d15f31597355d4906e1c660c8f4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:2067-2081 | crates/openshell-server/src/persistence/sqlite.rs:1896-1910 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":2067}}}],"partialFingerprints":{"codehealthFindingId/v1":"476011555c8aad4a1705178a8a988947c3309aa4083220faa32d0f18d588254e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/mod.rs:434-448 | crates/openshell-supervisor-network/src/l7/rest.rs:1539-1552 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"crates/openshell-supervisor-network/src/l7/mod.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4ab93b5d08ba7e5b18cf26f58893ca7e0c16104f87c73b68cf3e71b857ec7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-driver-kubernetes/src/driver.rs:1125-1138 | crates/openshell-driver-podman/src/driver.rs:625-638 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"6014a981b26b184f45f76ffb5d121efd83d76bd3292714daf2ec77300bcfd363"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1147-1157 | crates/openshell-server/src/persistence/sqlite.rs:939-952 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1147}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d1c3d8fd5b126839f0c4872d8908d784bc2b98c3a43e1a3b3024a588cac8c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-providers/src/profiles.rs:2881-2894 | crates/openshell-providers/src/profiles.rs:2967-2980 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":2881}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5c1df87d44b4301179ade2295b3fadeaaf1dc70992446f3b756d2dcac8f2ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-cli/src/commands/common.rs:681-694 | crates/openshell-cli/src/commands/common.rs:707-720 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/commands/common.rs"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"517e5b14561ce200be983f5e577794855607c82aa0c06a411af311f011ae4663"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-sandbox-backend/src/runtime.rs:1902-1914 | crates/openshell-sandbox-backend/src/runtime.rs:1985-1998 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox-backend/src/runtime.rs"},"region":{"startLine":1902}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23692670c6ee4df54efa268583c9bcfa0549959411502d2007140c14da61899"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/openshell-cli/src/commands/gateway.rs:969-982 | crates/openshell-cli/src/commands/gateway.rs:992-1002 | crates/openshell-cli/src/commands/gateway.rs:1013-1023 \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":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc1bdb6616914e4266878336b151593d630462c534bdfad5a8000d38e52348b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-cli/src/commands/gateway.rs:109-122 | crates/openshell-cli/src/commands/gateway.rs:141-154 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5829b554c5b0a1ca0ad73c0c5f4e7c7cb7bfc191038188fa6881d66bed7ee62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/openshell-cli/src/commands/provider.rs:103-116 | crates/openshell-cli/src/run.rs:5015-5028 \u2014 before extracting anything, compare \u0060crates/openshell-cli/src/commands/provider.rs\u0060 and \u0060crates/openshell-cli/src/run.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7d548d468ab01ed681e25ab7e5f4ad7550e5cb1be073c1ef429c41641c47a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/mod.rs:632-644 | crates/openshell-supervisor-network/src/l7/mod.rs:649-661 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/mod.rs"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"5083865ea408f9b6e5ad5f1a8476e1fc5342114add58afa232ffda87bd5f73d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-server/src/cli.rs:427-439 | crates/openshell-server/src/cli.rs:1065-1075 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/cli.rs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2c0b1215fe688b4f50292169f26617aa2aa8b5ca10b4ffea3963fc774c4583"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1563-1570 | crates/openshell-server/src/persistence/postgres.rs:1608-1620 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1563}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94954a4af7c77463f38fd12256a61424db071f39c4585b05f94b98269badcda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-server/src/grpc/policy.rs:6117-6129 | crates/openshell-server/src/grpc/policy.rs:6535-6547 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":6117}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f08b81d6f7b5872248c112e3efc9b9ba3aed744dbecc60a2fb1e3138b6d010c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/openshell-driver-podman/src/client.rs:677-689 | crates/openshell-driver-podman/src/client.rs:710-722 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-podman/src/client.rs"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce83362e0cde4c591b7580ceba5f1e941b0ba8b5318a879dd2105bc4456cedd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-supervisor-network/src/host.rs:140-148 | crates/openshell-supervisor-network/src/run.rs:507-519 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"crates/openshell-supervisor-network/src/host.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e8e018b8cd0a50a47a79c1817aa26fc63b999352817dc71b6b472e6f42371a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-cli/src/auth.rs:148-159 | crates/openshell-cli/src/oidc_auth.rs:226-236 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"crates/openshell-cli/src/auth.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"09826b274a0cc86fc43fc36889ac09d7adad5c3ba4e5622304b9732053b2d632"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-supervisor-process/src/ssh.rs:539-550 | crates/openshell-supervisor-process/src/ssh.rs:556-567 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-process/src/ssh.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e97ed381340ef0b9783eb382eb656833dd30661414e6fbad0330dbcc8d3066"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-driver-podman/src/driver.rs:753-764 | crates/openshell-driver-podman/src/driver.rs:857-868 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-podman/src/driver.rs"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11b2209799eca6b10dc835f914b3d7ff154c595c2f1fe68cddb7fe51e4a5739"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:1107-1115 | crates/openshell-server/src/persistence/sqlite.rs:886-897 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e66db63001cc505b6921848ded3fd63221d1b068be3d27ea8862f0f8ce69f73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/openshell-driver-podman/src/client.rs:811-822 | crates/openshell-driver-podman/src/client.rs:879-890 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/client.rs"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"029a2f2a9d10ba41119c53dae322fa549230f2554555badbbd75f556d731fc31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-vfio/src/gpu.rs:146-153 | crates/openshell-vfio/src/pci.rs:470-481 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"crates/openshell-vfio/src/gpu.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceafc0783bc38df8fadfef2809952365443ee96137f594ab820788365e72fb98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-server/src/grpc/validation.rs:797-807 | crates/openshell-server/src/grpc/validation.rs:888-898 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/validation.rs"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4c3673de4e7d7d2a0f8f969e949931823a0a6af08ceccd54b9fba44504b689"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/openshell-core/src/external_driver_socket.rs:29-39 | crates/openshell-driver-vm/src/main.rs:488-498 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/external_driver_socket.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce8918e325b2ad7c57713fb4c111cb8cc5712d2fca55cd2ab76dcf865e0a2a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-driver-kubernetes/src/driver.rs:4659-4666 | crates/openshell-driver-kubernetes/src/driver.rs:4697-4707 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":4659}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49981b6114280f30d5369175a62b2f73838fb80fdc6619422226a53b872ebbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-gateway/src/vm.rs:458-467 | crates/openshell-server/src/credentials.rs:1652-1661 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-gateway/src/vm.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"8001dca0934193fdd351341af25e7b744c71793a6a34780e5b744dfca9dec0df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-cli/src/run.rs:4109-4118 | crates/openshell-cli/src/run.rs:4135-4144 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/run.rs"},"region":{"startLine":4109}}}],"partialFingerprints":{"codehealthFindingId/v1":"476ba9a3e443e73aaeac094dda32e4ddd6ce2da77365bb2ca8f8bd2e578e91b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-supervisor-network/src/proxy.rs:6569-6578 | crates/openshell-supervisor-network/src/proxy.rs:6647-6656 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":6569}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b98f6ebabc070e6e5bf60a59f704fe6ec008a2672a2cf073fea75e677786fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-driver-mxc/src/etw_consumer.rs:1796-1805 | crates/openshell-driver-mxc/src/etw_consumer.rs:1830-1839 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-mxc/src/etw_consumer.rs"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"692fa1fbd56470e5a098dbdc434217a3aae638692bd618a2f156fccaada12b86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/openshell-server/src/grpc/provider.rs:506-515 | crates/openshell-server/src/grpc/sandbox.rs:3354-3362 | crates/openshell-server/src/grpc/sandbox.rs:3447-3455 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/grpc/provider.rs\u0060 and \u0060crates/openshell-server/src/grpc/sandbox.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e3415d1e0a5ccb7322d3e18215cfd56dc3a71d6ab96eb3b31a762e7cd95d49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-server/src/certgen.rs:499-508 | crates/openshell-server/src/certgen.rs:524-533 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/certgen.rs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f54c5993544ffe090742861fd59a91da1db82bde66ab71f74205245f1c9a87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-driver-docker/src/lib.rs:1678-1684 | crates/openshell-driver-docker/src/lib.rs:1705-1714 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":1678}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5043f044ff9703fde98d597ae54abb8d3ad8a87d6686f60c731c946d31f99d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-driver-kubernetes-secrets/src/main.rs:47-56 | crates/openshell-driver-vault/src/main.rs:72-76 \u2014 before extracting anything, compare \u0060crates/openshell-driver-kubernetes-secrets/src/main.rs\u0060 and \u0060crates/openshell-driver-vault/src/main.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes-secrets/src/main.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a15d611acd0082e10a157d4864d46d127cd2da25616692707bc120ed02f76c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-server/src/grpc/sandbox.rs:1130-1138 | crates/openshell-server/src/grpc/sandbox.rs:1704-1713 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c65907f099f127ac76f9e73ab5c8797642eac05066dc8a547c7791782300ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-driver-kubernetes/src/driver.rs:7044-7053 | crates/openshell-driver-kubernetes/src/driver.rs:7134-7143 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":7044}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce5c856d0605d42c30d0890f4673e30948cc72bc999b14dd5e5a172fd3916d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-driver-vm/src/driver.rs:3370-3379 | crates/openshell-driver-vm/src/driver.rs:3430-3435 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":3370}}}],"partialFingerprints":{"codehealthFindingId/v1":"da113c0bd4633a9ee03edf87b04f44078e7c9ecf018a6461814828e8547d26b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-server/src/persistence/postgres.rs:383-392 | crates/openshell-server/src/persistence/sqlite.rs:347-356 \u2014 before extracting anything, compare \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 and \u0060crates/openshell-server/src/persistence/sqlite.rs\u0060 as WHOLE FILES: this scan already matched 46 separate duplicated blocks between them, totalling at least 606 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/persistence/postgres.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"577e220be12b2a33ba7f992187f389957ed7d17edd3d897d1c5aa5413e78d011"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-supervisor-process/src/delegated.rs:239-248 | crates/openshell-supervisor-process/src/delegated.rs:264-273 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/delegated.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf392cd70ae074f4aa52f1c5c40571aa352750541d79ecaf035eb3ceef1420d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-supervisor/src/config_runtime.rs:498-507 | crates/openshell-supervisor/src/config_runtime.rs:519-528 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor/src/config_runtime.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"53489e6c58d57b37142452492abf5e3278de13995875da0446d994ece3d7ff0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/openshell-cli/src/run.rs:4109-4118 | crates/openshell-cli/src/run.rs:4135-4144 | crates/openshell-cli/src/run.rs:4160-4169 \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":"crates/openshell-cli/src/run.rs"},"region":{"startLine":4109}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf780d5305934f86e03332310ea6897d667cf105229a1e7af7b740542aad2a2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-driver-kubernetes/src/grpc.rs:83-92 | crates/openshell-driver-podman/src/grpc.rs:75-84 \u2014 before extracting anything, compare \u0060crates/openshell-driver-kubernetes/src/grpc.rs\u0060 and \u0060crates/openshell-driver-podman/src/grpc.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/grpc.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fc4dc1b2af4c475b097650a92ebc9e9ad862a7497f351c22594abcd09ea969"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/openshell-driver-kubernetes/src/driver.rs:2030-2039 | crates/openshell-driver-kubernetes/src/driver.rs:4362-4371 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":2030}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d8156830f76f2006e16a304bef79d2664b40310c49d44e0b99d2a10abd388a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-driver-kubernetes/src/driver.rs:4927-4936 | crates/openshell-driver-kubernetes/src/driver.rs:4970-4978 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":4927}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ab76e9ff049a7696e17a9e37a418993a7402cfe985c447adbf5c3170bee896"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-server/src/certgen.rs:157-165 | crates/openshell-server/src/certgen.rs:346-354 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/certgen.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e21deabd694b742f2dc172fc04b0130bd9fb62d738100102cfd77bd806c117"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-supervisor-process/src/supervisor_session.rs:239-247 | crates/openshell-supervisor-process/src/supervisor_session.rs:263-271 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-process/src/supervisor_session.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a71b02946e46a417c91021b6eb3d433ece05a4d02a42f28885c228bc222e42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/openshell-sandbox/src/linux/seccomp_notify.rs:385-393 | crates/openshell-sandbox/src/linux/seccomp_notify.rs:444-452 | crates/openshell-sandbox/src/linux/seccomp_notify.rs:546-554 \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":"crates/openshell-sandbox/src/linux/seccomp_notify.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb77c9d7580b2d19780ee6e41e0766ef75ae5b582a0dff0bb76857fdf025031d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-supervisor-network/src/proxy.rs:3062-3070 | crates/openshell-supervisor-network/src/proxy.rs:3278-3286 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":3062}}}],"partialFingerprints":{"codehealthFindingId/v1":"16cf206e5df7ec608eedf8cf0d53fb4bd640a0dd9cce225582b2214005bc202f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-cli/src/commands/common.rs:861-868 | crates/openshell-cli/src/commands/common.rs:1070-1078 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/commands/common.rs"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"511709ae33867fbdd39163412628d211ad65534e61a01d67967700c7a950ba39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/openshell-sandbox/src/boundary_server.rs:5193-5201 | crates/openshell-sandbox/src/boundary_server.rs:5220-5228 | crates/openshell-sandbox/src/boundary_server.rs:5245-5253 \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":"crates/openshell-sandbox/src/boundary_server.rs"},"region":{"startLine":5193}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1c35e467f06e570d6db3ba5f0b4611bd48b8190a144433318079f4d6b8001a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-driver-kubernetes/src/lifecycle.rs:17-21 | crates/openshell-server/src/compute/mod.rs:281-289 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/lifecycle.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"4181807faf7c0684476be4599d58e34b15be7b44e476476021922b40dd609f1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-server/src/grpc/validation.rs:808-816 | crates/openshell-server/src/grpc/validation.rs:899-907 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/validation.rs"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1dbf683ee571ee37b662d0bc0b7b102642dbd88176cf4040a75a76b09c77e94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/openshell-sdk/src/client.rs:483-491 | crates/openshell-sdk/src/client.rs:1219-1227 | crates/openshell-sdk/src/client.rs:1251-1259 \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":"crates/openshell-sdk/src/client.rs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f33a872ce9ea0f83ebc177c8ac022a93a80d7d08bdabf0a516b59f1f795ed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-tui/src/lib.rs:1952-1960 | crates/openshell-tui/src/lib.rs:2052-2060 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":1952}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c05f337fce104e568e6e27b3007e4dd9163295dd039842ed0d314935ccc0600"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): crates/openshell-tui/src/ui/create_provider.rs:52-59 | crates/openshell-tui/src/ui/create_provider.rs:160-167 | crates/openshell-tui/src/ui/create_provider.rs:261-268 | crates/openshell-tui/src/ui/create_provider.rs:549-556 | crates/openshell-tui/src/ui/create_provider.rs:800-807 | crates/openshell-tui/src/ui/create_sandbox.rs:42-49 | crates/openshell-tui/src/ui/create_sandbox.rs:260-267 | crates/openshell-tui/src/ui/sandbox_logs.rs:137-144 \u2014 before extracting anything, compare \u0060crates/openshell-tui/src/ui/create_provider.rs\u0060 and \u0060crates/openshell-tui/src/ui/create_sandbox.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56146285e144054b72579bbad7ea59498b3b0f79a36bc66caf22e1fcf200d11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-driver-vm/src/rootfs.rs:378-384 | crates/openshell-driver-vm/src/rootfs.rs:991-998 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/rootfs.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b244474e327b857305f57faca438fb2673b1d99ee11cb43b4951bc7f8f1369"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-driver-kubernetes/src/driver.rs:1105-1112 | crates/openshell-driver-podman/src/driver.rs:605-612 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":1105}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d5d2ce534fec5c1f5c1361223bd7e9cd7d9b62b1e84d2dd52b02d0fdffa8c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-driver-docker/src/lib.rs:3300-3307 | crates/openshell-driver-mxc/src/grpc.rs:43-50 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":3300}}}],"partialFingerprints":{"codehealthFindingId/v1":"86bc7796988f021f4f2df2a28c0c45b3a2e6612cdb3233d7c1bf37ffe834eb78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-driver-docker/src/isolation.rs:39-46 | crates/openshell-driver-kubernetes/src/isolation.rs:89-96 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/isolation.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12a9818854d4d36ce9ed5720f35191529aa67b6502cf62bedeac6f069d1bd9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-driver-vm/src/rootfs.rs:829-836 | crates/openshell-driver-vm/src/rootfs.rs:881-888 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/rootfs.rs"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"836e2469d3ba50359d17878d49d1d61c8e0e0f1bca34b738ab9b62f40b344d0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-sandbox-backend/src/runtime_initiated.rs:148-155 | crates/openshell-sandbox-backend/src/runtime_routed.rs:483-490 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"crates/openshell-sandbox-backend/src/runtime_initiated.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"07012941754b790df6d6423c6c7c15489bb01bb5e24d584ddec3ff0d40a6a70a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-tui/src/app.rs:918-925 | crates/openshell-tui/src/app.rs:955-962 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/app.rs"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"d700773124a72c321e06bb0b89fc7c7b97168f553a0acc7c22e89f08288017f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-cli/src/run.rs:2011-2018 | crates/openshell-cli/src/run.rs:2296-2302 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/run.rs"},"region":{"startLine":2011}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2430dcf5133c8fb6d99dec915e43582d232846ca0a8b2d300354facd123ca37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-driver-vm/src/rootfs.rs:958-965 | crates/openshell-driver-vm/src/rootfs.rs:983-990 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/rootfs.rs"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"176fb6e8804437f60ca44b049bf96383f8f2b61bf95a4b9444c545d9a2d2e51a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-cli/src/commands/provider.rs:1754-1761 | crates/openshell-cli/src/commands/provider.rs:1803-1810 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":1754}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b34c6d1190746e82bc790c9e35b192fd456776c75d7d956fd14ebec6d68df32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-tui/src/app.rs:2098-2104 | crates/openshell-tui/src/app.rs:2113-2119 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/app.rs"},"region":{"startLine":2098}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f41a1156ddc3d4ab980d9ac288836b764b08987f9dd819904ef1b28603dce5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-tui/src/app.rs:1975-1981 | crates/openshell-tui/src/app.rs:1991-1997 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":1975}}}],"partialFingerprints":{"codehealthFindingId/v1":"2469ed40fff4c8386ca27de8754379b705673df4732429eb96b57642db85dd8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-cli/src/commands/provider.rs:161-167 | crates/openshell-cli/src/commands/provider.rs:244-250 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"3707202cf91474de50ca000988aa31d89151603423400529856a51985eee4dad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-sandbox-backend/src/runtime.rs:2332-2338 | crates/openshell-sandbox-backend/src/runtime.rs:2409-2415 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox-backend/src/runtime.rs"},"region":{"startLine":2332}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8a341c3935c9d7789cedba0d50372b16b7cf9a2914121b6f1d1e68c78f4b20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-tui/src/ui/mod.rs:295-300 | crates/openshell-tui/src/ui/mod.rs:343-349 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/mod.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eea4f8a86bab63404d841a95153916a087a960a13051cb7d61807b6bd0f2dac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-driver-vm/src/driver.rs:3708-3714 | crates/openshell-driver-vm/src/driver.rs:3960-3966 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":3708}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdedd047e32ca0ab5738ca5e6f9e2e8a8a7e8a4b4d93f477971b1142c475a2c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-conformance/src/lib.rs:534-540 | crates/openshell-conformance/src/lib.rs:560-566 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-conformance/src/lib.rs"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37dea4aa072a5becdd10fe23ea4c2e3faa5d5ac3290ea6ce15dac6b570d1875"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/openshell-core/src/paths.rs:32-38 | crates/openshell-core/src/paths.rs:54-60 | crates/openshell-core/src/paths.rs:94-100 \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":"crates/openshell-core/src/paths.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"625574fe2336650d8b7fcdfb6638d588c5a9c2b435a6c560bdd896aaf10f8862"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-vfio/src/pci.rs:131-137 | crates/openshell-vfio/src/pci.rs:165-169 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-vfio/src/pci.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"969369b76f54c95be2469c8a84d0f6b593957e9285dfd2a6043753cf593a0627"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-sandbox/src/delegated.rs:229-235 | crates/openshell-sandbox/src/process.rs:814-820 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"crates/openshell-sandbox/src/delegated.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"d492a2927ab1046fb574729fc018cc97f0c2453d6164e5ef99a61c0ab19a87a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-driver-kubernetes/src/main.rs:346-351 | crates/openshell-driver-podman/src/main.rs:286-291 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/main.rs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12b636070a342edcee019d93f3d61e29ca05978af457f2e270e57a858b9fbd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-tui/src/ui/sandbox_detail.rs:146-151 | crates/openshell-tui/src/ui/sandbox_detail.rs:157-162 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/sandbox_detail.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd2ef89ac24b779d547d490fa56c50f4c4225f8674d4461cdb72f870edddfa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-driver-vm/src/runtime.rs:454-459 | crates/openshell-driver-vm/src/runtime.rs:469-473 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/runtime.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"829771cc05910e6e051cfbd877e228bd9bee9755f5998cc00243e379d124fa85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-driver-vm/src/driver.rs:955-960 | crates/openshell-driver-vm/src/driver.rs:972-977 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"63bc4ebe6c4c81412631fbc91e46216c4f026e1087923895d69025bda2c0a503"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-tui/src/ui/create_provider.rs:517-522 | crates/openshell-tui/src/ui/create_provider.rs:986-991 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1de082d73499dc9bdbb7a73ac7087c5e96be82f79012fe1bdee588c0d978b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-driver-mxc/src/mxc.rs:339-344 | crates/openshell-driver-mxc/src/mxc.rs:410-415 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/mxc.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"665e3714817bcf2fb56441c78a35401e54402e0b770d10795f999d50315085b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-supervisor-network/src/l7/rest.rs:2921-2925 | crates/openshell-supervisor-network/src/l7/rest.rs:2959-2963 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":2921}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e645ac94cd88ac5a5eff703089f2edb9a75beb1bc54becedd9987071deef5c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/openshell-server/src/grpc/policy/endpoint_status.rs:217-221 | crates/openshell-server/src/grpc/policy/endpoint_status.rs:455-459 | crates/openshell-server/src/grpc/policy/endpoint_status.rs:518-522 \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":"crates/openshell-server/src/grpc/policy/endpoint_status.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd45e4d198ea092722e80939296122108aec3bff1de93eb737a8ca433188967"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-tui/src/ui/create_provider.rs:1021-1025 | crates/openshell-tui/src/ui/mod.rs:617-621 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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":"crates/openshell-tui/src/ui/create_provider.rs"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ff6a768cbb1a3dd1c07f3f3b3accac354b63092f80f5984f4a413fba00ba10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-driver-podman/src/config.rs:234-238 | crates/openshell-driver-podman/src/config.rs:239-243 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/config.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e71893bc2c88241bb0ae90f6aa34c7f632670c9953dac3b36320d98184e7657"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-driver-vm/src/driver.rs:3702-3706 | crates/openshell-driver-vm/src/driver.rs:3954-3958 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":3702}}}],"partialFingerprints":{"codehealthFindingId/v1":"0212b87b475df266833027d6243d71a7bb83b709294ab4aa6e70a1e14c16e9d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-cli/src/commands/common.rs:111-117 | crates/openshell-tui/src/lib.rs:3233-3239 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/common.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f522e2907f6445d0e1e7a42b596e8eab64e2d6a219219e7e285e7b02fe4e2e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/openshell-cli/src/run.rs:5554-5558 | crates/openshell-cli/src/run.rs:5587-5591 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-cli/src/run.rs"},"region":{"startLine":5554}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a4c39bee276ff17cedc5cca9b8458e139529d7dabc1d39023de2bb1ab9a47d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/openshell-core/src/oauth.rs:307-313 | crates/openshell-providers/src/profiles.rs:3727-3733 \u2014 before extracting anything, compare \u0060crates/openshell-core/src/oauth.rs\u0060 and \u0060crates/openshell-providers/src/profiles.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/oauth.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0480c1e4277d5c4fc70fbcb820f404af2b2501bbe6ed660425161c36ac4a6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-sandbox/src/boundary_exec.rs:215-220 | crates/openshell-sandbox/src/boundary_exec.rs:325-330 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox/src/boundary_exec.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77d4117adfc9bd982f2ed7ffa9c22f1fdaa080a5bf1ed60b6f8eaace748337a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/openshell-server/src/grpc/provider.rs:4656-4663 | crates/openshell-server/src/grpc/provider.rs:4706-4713 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":4656}}}],"partialFingerprints":{"codehealthFindingId/v1":"16148a8608b7e0d2e926e3c6c7fb5706a445abdc4ead6a296ad71c398a3b9196"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): python/openshell/sandbox.py:993-1004 | python/openshell/sandbox.py:1032-1043 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060python/openshell/sandbox.py:993\u0060 it begins part-way through the construct above it, so those exact lines 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":"python/openshell/sandbox.py"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"c710421c3de2810eff3ec7b1b5ce04fb248372f9348e725fde652db2888e4bca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): scripts/generate_third_party_notices.py:75-86 | scripts/generate_third_party_notices.py:143-153 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/generate_third_party_notices.py:75\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate_third_party_notices.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"36221ea71b157c0dd9667f4fb55c582678454d1ef2498e5eeec8aac1bab76132"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): scripts/baseline_workflow_metrics.py:175-182 | scripts/baseline_workflow_metrics.py:207-214 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/baseline_workflow_metrics.py:175\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/baseline_workflow_metrics.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"99419ac1b794d9253e76436face1bf1b5964029585e8004797b243ad37404590"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): scripts/generate_third_party_notices.py:52-58 | scripts/update_license_headers.py:128-134 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate_third_party_notices.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75e8e2f841e7dc29910adfae32f8ce5cbf4d04ebc17a725794c68527174eaee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): sdk/go/openshell/v1/fake/sandbox.go:617-638 | sdk/go/openshell/v1/fake/sandbox.go:683-704 \u2014 both copies are in the same file, so extract the block 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":"sdk/go/openshell/v1/fake/sandbox.go"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5ddfd106dc2d37ae814ff2e774312a34d0dba3a94d49ec8cdba367f0dd77ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): sdk/go/openshell/v1/exec_client.go:254-272 | sdk/go/openshell/v1/tcp_client.go:317-335 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060sdk/go/openshell/v1/tcp_client.go:317\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/exec_client.go"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25dd253e5d76db2ed7cb0c2c36cb639be357a9d822c3579c3f13540c16ef1a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): sdk/go/openshell/v1/fake/sandbox.go:332-348 | sdk/go/openshell/v1/fake/sandbox.go:389-405 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060sdk/go/openshell/v1/fake/sandbox.go:332\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/sandbox.go"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a3ee3206000c52484ca1743e83ed81e6613b535166384b29fb44428825ea88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): sdk/go/openshell/v1/ssh_client.go:104-120 | sdk/go/openshell/v1/tcp_client.go:66-82 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060sdk/go/openshell/v1/ssh_client.go:104\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/ssh_client.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"6269737e9b1b192f11d9ff9832ebaf4fa251c055b75b95d75d42ad94997617e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): sdk/go/openshell/v1/edge/tunnel.go:271-286 | sdk/go/openshell/v1/tcp_client.go:229-243 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/edge/tunnel.go"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"2459838d0fadf5576506945565444d18572a332399c47ec1439666f0f0f49b92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): sdk/go/openshell/v1/file_client.go:59-73 | sdk/go/openshell/v1/file_client.go:92-106 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/file_client.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03632e43743ef09f86f37e809bf6659a853b4aba231407734f70f5f8e8576be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): sdk/go/openshell/v1/sandbox_client.go:130-144 | sdk/go/openshell/v1/sandbox_template_client.go:54-68 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060s *sandboxClient) List(workspace\u0060 in one and \u0060s *sandboxTemplateClient) List(workspace\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":"sdk/go/openshell/v1/sandbox_client.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"04df0c59484568ceab59d991d3a3901b29db3d0b98833a60cb4c5ef1e314438c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): sdk/go/openshell/v1/provider_client.go:60-73 | sdk/go/openshell/v1/service_client.go:54-67 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060p *providerClient) List(workspace\u0060 in one and \u0060sandboxName\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":"sdk/go/openshell/v1/provider_client.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed28491cd950a60e2ab2a737f0538db7bf5c9acfadc512c501bf6043d6de0c4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): sdk/go/openshell/v1/fake/provider.go:116-128 | sdk/go/openshell/v1/fake/sandbox.go:467-479 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/provider.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8660a5c34047650078d305cf81f2a7083ed0e06f1512f3a28fc9903c64bf080"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): sdk/go/openshell/v1/gateway/token.go:130-142 | sdk/go/openshell/v1/oidc/token.go:114-126 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060sdk/go/openshell/v1/gateway/token.go:130\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/gateway/token.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"51fc225602f9b4943aa2e4094e38ef6180174f43d8d0b52eb40c0c397a0f7143"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): sdk/go/openshell/v1/ssh_client.go:87-99 | sdk/go/openshell/v1/tcp_client.go:47-59 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060sdk/go/openshell/v1/ssh_client.go:87\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/ssh_client.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"05cd48e0a60191945bbe19da6ec9716ffa2fe9beb0334b88b96c179f262a006b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): sdk/go/openshell/v1/fake/sandbox.go:503-514 | sdk/go/openshell/v1/fake/sandbox.go:530-541 | sdk/go/openshell/v1/fake/sandbox.go:602-613 | sdk/go/openshell/v1/fake/sandbox.go:647-658 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060sdk/go/openshell/v1/fake/sandbox.go:503\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/sandbox.go"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eefc37ca01d0d3f8ad5867390453b6f3dfe97a8cd7cf3f462c6d283e2ee0f50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): sdk/go/openshell/v1/sandbox_client.go:44-55 | sdk/go/openshell/v1/sandbox_client.go:76-87 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060sdk/go/openshell/v1/sandbox_client.go: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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/sandbox_client.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8239a97cff31fd1f1c6753200cc4622790671874551cab9928b9419694fadf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): sdk/go/openshell/v1/fake/sandbox.go:501-511 | sdk/go/openshell/v1/fake/sandbox.go:528-538 | sdk/go/openshell/v1/fake/sandbox.go:600-610 | sdk/go/openshell/v1/fake/sandbox.go:645-655 | sdk/go/openshell/v1/fake/sandbox.go:825-835 | sdk/go/openshell/v1/fake/sandbox.go:876-886 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/sandbox.go"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4fca417139ad52815e89beefaeb70ef230df21d7e217b9a64ee57c2a1dcee5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): sdk/go/openshell/v1/sandbox_client.go:33-43 | sdk/go/openshell/v1/sandbox_client.go:64-74 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060sdk/go/openshell/v1/sandbox_client.go:33\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/sandbox_client.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"51694f2379d7fcc8d55955c22235e9329f5451e6b857e1a06a121d7c2d17dc44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): sdk/go/openshell/v1/exec_client.go:27-36 | sdk/go/openshell/v1/exec_client.go:61-70 | sdk/go/openshell/v1/exec_client.go:85-94 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060sdk/go/openshell/v1/exec_client.go:74\u0060 calls \u0060WithCancel\u0060 and \u0060sdk/go/openshell/v1/exec_client.go:40\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":"sdk/go/openshell/v1/exec_client.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"53835ecb2389dfa4bec0a012e171cc3372af426d2ca0077c5d21afe75a1a572b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): sdk/go/openshell/v1/internal/converter/provider.go:67-76 | sdk/go/openshell/v1/internal/converter/sandbox.go:277-286 | sdk/go/openshell/v1/internal/converter/sandbox.go:490-499 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/internal/converter/provider.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89f48941c6a0f7b543a814a30c4658ad7232fdff784516e6464ed8d1d0e174c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): sdk/go/openshell/v1/oidc/device.go:49-56 | sdk/go/openshell/v1/oidc/oidc.go:36-45 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/oidc/device.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0a16c9649295b2645e6a19043b95b71c72aafa6c829b283b0707771b12e66c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): sdk/go/openshell/v1/provider_client.go:77-86 | sdk/go/openshell/v1/sandbox_client.go:281-290 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a 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 \u0060sdk/go/openshell/v1/provider_client.go:77\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/provider_client.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df9a1a96822b88c0238ad15c9d01f73ff73cd6d311ead459d2733b25b7ea48b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): sdk/go/openshell/v1/fake/ssh.go:45-53 | sdk/go/openshell/v1/fake/tcp.go:29-37 | sdk/go/openshell/v1/fake/tcp.go:45-53 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060sdk/go/openshell/v1/fake/tcp.go:55\u0060 calls \u0060Sprintf\u0060 and \u0060sdk/go/openshell/v1/fake/ssh.go:54\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":"sdk/go/openshell/v1/fake/ssh.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d963a38d0ac70c02834fbbc0e6515239d11ccaad0f5328c62b5e9ff2fcebf412"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): sdk/go/openshell/v1/fake/file.go:28-36 | sdk/go/openshell/v1/fake/file.go:42-50 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/file.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"446873d6acce92fce58a2280a9f75d30f5e406e26028701877e727e77c66670e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): sdk/go/openshell/v1/fake/workspace.go:133-141 | sdk/go/openshell/v1/fake/workspace.go:158-166 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/workspace.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc780f34be8871d073787fdc9fdfbb253fc911f749bbf958748f6cd4a19e1a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): sdk/go/openshell/v1/file_client.go:41-49 | sdk/go/openshell/v1/file_client.go:82-90 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/file_client.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48bec7205b792e875fbe4367912fba53698212202f84673afce37881d1a5644"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): sdk/go/openshell/v1/ssh_client.go:62-70 | sdk/go/openshell/v1/tcp_client.go:34-42 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/ssh_client.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"666b50905090e798a4363dd1a91624224da7a096bd0ee3ed254f89ecc0590b2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): sdk/go/openshell/v1/internal/converter/provider.go:30-37 | sdk/go/openshell/v1/internal/converter/sandbox.go:28-35 | sdk/go/openshell/v1/internal/converter/sandbox.go:411-418 | sdk/go/openshell/v1/internal/converter/workspace.go:22-29 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060sdk/go/openshell/v1/internal/converter/provider.go:30\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/internal/converter/provider.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"916caa978704411847ec819e1b92804a1f35925fbe5c854c4269d4cf50e5775c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): sdk/go/openshell/v1/oidc/authcode.go:226-233 | sdk/go/openshell/v1/oidc/device.go:281-288 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/oidc/authcode.go"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"a477761b4f01592dd30d9c0b5fa4633415343f570e25d10cc342a508d0c232b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): sdk/go/openshell/v1/internal/converter/provider.go:28-34 | sdk/go/openshell/v1/internal/converter/sandbox.go:26-32 | sdk/go/openshell/v1/internal/converter/sandbox.go:409-415 | sdk/go/openshell/v1/internal/converter/workspace.go:20-26 | sdk/go/openshell/v1/internal/converter/workspace.go:63-69 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060sdk/go/openshell/v1/internal/converter/provider.go:28\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/internal/converter/provider.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"408fad3496362de884654a181e52d008f0982f61035843558bce5974ffd9739c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): sdk/go/openshell/v1/fake/config.go:26-31 | sdk/go/openshell/v1/fake/exec.go:28-33 | sdk/go/openshell/v1/fake/exec.go:39-44 | sdk/go/openshell/v1/fake/exec.go:50-55 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/config.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"e778c82f2d53d9b972fa73f9960bc81727a057d837caae3502726438df944c3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): sdk/go/openshell/v1/fake/policy.go:215-221 | sdk/go/openshell/v1/policy_client.go:161-167 | sdk/go/openshell/v1/service_client.go:85-91 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/policy.go"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b75cc3e303a256dfdfc16ce27c9a29d1c49f8fcc2985eec865022f650f56667"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): sdk/go/openshell/v1/fake/profile.go:25-30 | sdk/go/openshell/v1/fake/service.go:41-46 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060c *fakeProfileClient) List(_\u0060 in one and \u0060_\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":"sdk/go/openshell/v1/fake/profile.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"89af2bc307920eee515f9b7d9740a60e5e73088f56f7bd666b87a6ef4ac112ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): sdk/go/openshell/v1/fake/profile.go:33-38 | sdk/go/openshell/v1/fake/service.go:49-54 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/profile.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea01ea0544098b2961ba681e33bb016a65c802467c521e8fdec7598ad4a2f162"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): sdk/go/openshell/v1/fake/profile.go:41-46 | sdk/go/openshell/v1/fake/service.go:33-38 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/profile.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a040068736a211d212f8c29dcc02a0103843b07ebaec2b35ed51db1aa5aba126"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): sdk/go/openshell/v1/fake/profile.go:73-78 | sdk/go/openshell/v1/fake/refresh.go:49-54 | sdk/go/openshell/v1/fake/service.go:57-62 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function 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":"sdk/go/openshell/v1/fake/profile.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c3e90a1b439ae1de4dddfa25746ec91db6caf6a3b0d14858064707ce4750f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): sdk/go/openshell/v1/fake/provider.go:107-112 | sdk/go/openshell/v1/fake/sandbox.go:458-463 | sdk/go/openshell/v1/fake/sandbox_template.go:101-106 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/provider.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa4ffc1e02fa8f8226c95abe9a2a020359fda63bb5d26edec6db47177debc36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): sdk/go/openshell/v1/fake/provider.go:130-136 | sdk/go/openshell/v1/fake/sandbox.go:481-487 | sdk/go/openshell/v1/fake/sandbox_template.go:133-139 | sdk/go/openshell/v1/profile_client.go:46-52 | sdk/go/openshell/v1/provider_client.go:88-94 | sdk/go/openshell/v1/sandbox_client.go:164-170 | sdk/go/openshell/v1/sandbox_template_client.go:86-92 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/provider.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc88f04c7cf5a8df0388b2c83dece9be44457d291705de1af4c78f436e2d08ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): sdk/go/openshell/v1/fake/provider.go:162-168 | sdk/go/openshell/v1/fake/sandbox_template.go:141-147 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/provider.go"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"da71bcb3bc016aec32bbaf37a8c6b7965b876a20cbeb12cbe182377cdf523454"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): sdk/go/openshell/v1/fake/sandbox.go:263-272 | sdk/go/openshell/v1/internal/converter/copy.go:8-17 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Check import visibility before settling on that home: \u0060sdk/go/openshell/v1/internal/converter/copy.go\u0060 sits under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/sandbox.go"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd09af79318cde5b55e86e3ee59052242f86fa3bb4ad4628b886a3bbb44f4496"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): sdk/go/openshell/v1/fake/sandbox.go:275-282 | sdk/go/openshell/v1/internal/converter/copy.go:40-47 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Check import visibility before settling on that home: \u0060sdk/go/openshell/v1/internal/converter/copy.go\u0060 sits under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/sandbox.go"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bca3fbac6b2464babb64ca2df4d7059e8ceb981e6c082b0a97bea06fd734d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): sdk/go/openshell/v1/fake/sandbox.go:926-932 | sdk/go/openshell/v1/sandbox_client.go:292-298 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/sandbox.go"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"14bad8f8c5ece638fca9f89f4f257ce573e55698d8c9bb2736288808968a1d4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): sdk/go/openshell/v1/fake/workspace.go:105-111 | sdk/go/openshell/v1/workspace_client.go:75-81 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/workspace.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"4349d76392683f7c810302d459d916a9cdc2be41334217cabc93565ba2a33df3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): sdk/go/openshell/v1/fake/workspace.go:190-196 | sdk/go/openshell/v1/workspace_client.go:168-174 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/workspace.go"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6e4b3c7a30debc4d808c390c2d1916b194089aa7b10a44b12d998e6766bc45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): sdk/go/openshell/v1/oidc/device.go:156-160 | sdk/go/openshell/v1/oidc/device.go:240-244 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060sdk/go/openshell/v1/oidc/device.go:156\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/oidc/device.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ec9282ec910fac1d3b62733e168d534fa595099ba643376223c0677eebde11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/openshell-sandbox/src/sandbox/linux/landlock.rs:269-278 | crates/openshell-sandbox/src/sandbox/linux/landlock.rs:384-393 | crates/openshell-sandbox/src/sandbox/linux/mod.rs:199-208 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/sandbox/linux/landlock.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa153a9a5a200999f1dcc013228ca57455e52494a9bb0ef0f8bd70df76dba9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/openshell-sandbox-backend/src/runtime/test_support.rs:362-367 | crates/openshell-sandbox-backend/src/runtime/test_support.rs:387-392 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-sandbox-backend/src/runtime/test_support.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3befc275277246108a78b32c712120072a6afed82a0ab3b901c10d19eda8457"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/openshell-otel-test-support/src/lib.rs:120-128 | crates/openshell-otel-test-support/src/lib.rs:150-158 \u2014 both copies are in the same file, so extract the block 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":"crates/openshell-otel-test-support/src/lib.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fc0dbe2e84861f0199198c9276e76fe6d607a76fe76ed73cc0dc657ec6abaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/policy-advisor/ctf.py:365-379 | examples/policy-advisor/ctf.py:462-476 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/policy-advisor/ctf.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"2517db5e9a68899c0e8e4ed880dc7d88c9658433629f162185e693102ae27387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): examples/local-inference/inference.py:46-50 | examples/local-inference/inference.py:82-86 \u2014 both copies are in the same file, so extract the block 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":"examples/local-inference/inference.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"792dded4cd5849d6ddd51960c7db795102359c0c929e3427cf9b89128a1bdfff"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project openshell-driver-kubernetes: openshell-driver-kubernetes has instability 0.88 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44a35425d65f09ef27820232d6c4400bddcf8290dc56bf9ea13f14893e8c50d8"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project openshell-server: openshell-server has instability 0.94 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ba77dd35ef8c3c3440644c8082a6db79e00c9fc9b668cbaa8a30b35f9a977eb9"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project openshell-supervisor-network: openshell-supervisor-network has instability 0.82 with 2 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"76cf624db1dbf199574969db9c19bf3e8a812bfd580584d14b567a6e15ebaa3c"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: openshell-extension-core: openshell-extension-core: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 5 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5d83cb9f508beb8303bdef3fdd088432dfbcee38082c7564e29669514e08e169"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: openshell-policy-schema: openshell-policy-schema: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 4 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bec367c9b70dc50343e355efb72f1ed3f015198a70b413241a567b7744ec646a"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: openshell-vfio: openshell-vfio: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c7aec103906c75f5f141b1699ee0950a7abba9bffef83ccc35ad8811b06c4e52"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: openshell-ocsf: openshell-ocsf: abstractness 0.02, instability 0.00, distance 0.98 \u2014 zone of pain \u2014 concrete and depended on by 7 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"01348ce3698cab9d2b46b6c5f78637eaa2eba9076eea0a3720963be360464f03"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: openshell-otel: openshell-otel: abstractness 0.00, instability 0.09, distance 0.91 \u2014 zone of pain \u2014 concrete and depended on by 10 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5ee197b3a2eb96bf081a83bf596c99ae58d5306b4fb11977594ae4512f59e45d"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: openshell-isolation-interface: openshell-isolation-interface: abstractness 0.06, instability 0.09, distance 0.85 \u2014 zone of pain \u2014 concrete and depended on by 10 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a18025494649e19cd07ca9169446738c6095dcf3fa9d4d2726d7ea6a18077d3f"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: openshell-policy: openshell-policy: abstractness 0.00, instability 0.15, distance 0.85 \u2014 zone of pain \u2014 concrete and depended on by 11 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8fb89029331b13b70ec9685838dbe8b4ce6a3f6469ccde912ca36209e74995d6"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: openshell-core: openshell-core: abstractness 0.06, instability 0.13, distance 0.80 \u2014 zone of pain \u2014 concrete and depended on by 26 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8c33566ef8aef08048586e0c4202b3e49846e18b7496386678eb54888422b50f"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: openshell-crypto: openshell-crypto: abstractness 0.29, instability 0.00, distance 0.71 \u2014 zone of pain \u2014 concrete and depended on by 15 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9692f07988fa5d13d2bad94dbbd3974a8bc40e9c46d5be4ed27b0372d6bd1be1"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Config (LCOM4 19): Config\u0027s methods fall into 19 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 19 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/config.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a54fdeea0481fdc90aabae28aa5254df51f219b3b347aa325ba0ef68ef9c524"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: OpenShellClient (LCOM4 6): OpenShellClient\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sdk/src/client.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f29f7bdb0b46acb4a6e7d0c58b3068f2dda4e3b186534881d197067b52a351"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MainSession (LCOM4 4): MainSession\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6dd5b90f505b7354ba441519dad1c8848d93144a2701d6328597b7277061a6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ObservedUpstream (LCOM4 4): ObservedUpstream\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"033d4b0408994d9b7b3415fc10fc9cc5b822fab17a24b6fb9f60b6b1411452f5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MainSession (LCOM4 4): MainSession\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/main_session.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"252bc7699e5bd087c3a1857a9b6a57f6e5cba1a514bf1db8302ffd5baa467530"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: Current Shape Appendix: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rfc/0005-sandbox-proxy-egress-adapter/current-shape.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3f3b1b1ea4dafb1c55284a5b9cb03c6c0b6d85512069fa7fc2ebad0f5b9d49"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: Implementation Plan: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rfc/0005-sandbox-proxy-egress-adapter/implementation-plan.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5380b72b2aadf1c3a7823191bbf93a81b51272f350cad0be3f8799b33129e1d"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: Technical Design Appendix: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rfc/0005-sandbox-proxy-egress-adapter/technical-design.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c567e2d55aab2a28444712a697a47e0a6234145e48fbc19ee3b689d57ff910ba"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: Appendix: Deployment Options: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rfc/0009-supervisor-middleware/appendices/deployment-options.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f516a14ad9735e52625b0e787ec702272050f352a7f0f1272e6341e70ab7f02b"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: Appendix: Extension Authentication (Alpha): This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rfc/0009-supervisor-middleware/appendices/extension-authentication.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bbaddacdc5c179329c06290089812c1c95304c91eea423c59536c730feda67c"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: Appendix: Protocol Extensions: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rfc/0009-supervisor-middleware/appendices/protocol-extensions.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a991a6a4cb602ba40a5839f3ae2ea2b786704fdb7ffe891d4a8ce6162803715"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: RFC 0014 Supplement - Build Matrix: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rfc/0014-release-stability/build-matrix.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a12c37bc3819c2567200a4a53d7d7ffbdea2d7bde33e95fe52939565278b75"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: RFC 0014 Supplement - Release Qualification: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rfc/0014-release-stability/release-qualification.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45131b0ed55676eb62b82839ccfc4be7c1ad7b267ce7befeda6917dc3b610b09"}},{"ruleId":"D7","level":"note","message":{"text":"Classify ADR enforcement: RFC 0014 Supplement - Release Version Selection: This record carries no \u0060enforcement:\u0060 field, so nothing says whether the decision is checked by anything or is upheld by convention alone \u2014 and an unclassified record is counted as UNENFORCED in this dimension\u0027s score, which is the same bucket as a rule known to have no check behind it. If this is a mechanizable rule, add an analyzer/test (or \u0060enforcement: analyzer|test\u0060); if it\u0027s a design decision, mark \u0060enforcement: not-applicable\u0060 so it isn\u0027t counted as unenforced."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rfc/0014-release-stability/release-version-selection.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be7a056e38773039626312637d8553d6ff9afe4ac89eec9b86cb1ca8f80947a"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 JavaScript/TypeScript suite: Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured \u2014 the vitest suite in sdk/typescript/ ran and not one test passed (FAIL  src/client.test.ts [ src/client.test.ts ]), so the coverage report describes the failed run, not the code. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan. Alternatively, commit the lcov/Cobertura report your CI produces and it is read without a re-run."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): survives a forwarded socket that resets during the session-mint window: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.test.ts"},"region":{"startLine":2312}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ecb419d5410569afe837c52af124f7351b0ea1ad971006df23fa7b7782e3d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-cli/src/run.rs: crates/openshell-cli/src/run.rs changed 70 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 105 in openshell_cli::run::sandbox_create at line 497. 28 of those changes were fix/bug commits, and the other 42 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-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-cli/src/run.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf598341a7d89f1f84c1aa4b59ffef3284e3c85b671abd7ceefee7e7aff02c0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-cli/src/main.rs: crates/openshell-cli/src/main.rs changed 47 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 138 in openshell_cli::run_async at line 2635. 14 of those changes were fix/bug commits, and the other 33 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-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-cli/src/main.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/main.rs"},"region":{"startLine":2635}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4d538e034ae32838dda13b0c01bc08fe4b3586c7484fdf664229875966ad05"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-server/src/grpc/sandbox.rs: crates/openshell-server/src/grpc/sandbox.rs changed 71 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 86 in openshell_server::grpc::sandbox::handle_watch_sandbox at line 2033. 22 of those changes were fix/bug commits, and the other 49 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-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-server/src/grpc/sandbox.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":2033}}}],"partialFingerprints":{"codehealthFindingId/v1":"0359757a8ba04a18472308f21cc8238528790546c99b1e23236920658b14d06f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-supervisor-network/src/proxy.rs: crates/openshell-supervisor-network/src/proxy.rs changed 53 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 94 in openshell_supervisor_network::proxy::handle_forward_proxy at line 5332. 22 of those changes were fix/bug commits, and the other 31 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor-network/src/proxy.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":5332}}}],"partialFingerprints":{"codehealthFindingId/v1":"286bbfa5c486b855a0470d70a148543bb7d94f79111e7044ddb51404617f2701"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-server/src/grpc/policy.rs: crates/openshell-server/src/grpc/policy.rs changed 63 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in openshell_server::grpc::policy::handle_update_config_inner at line 4176. 24 of those changes were fix/bug commits, and the other 39 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-server/src/grpc/policy.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":4176}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf71729bef72ea890fd4b4197c0f7f81974014d242d6ffb087901c8dc5db5bbd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-providers/src/profiles.rs: crates/openshell-providers/src/profiles.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 170 in openshell_providers::profiles::validate_profile_set at line 2138. 6 of those changes were fix/bug commits, and the other 12 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-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-providers/src/profiles.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":2138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9106c932dc86fd91cbab1f292ee4023f4e48f808b2027d482f4dec657552fea0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-server/src/lib.rs: crates/openshell-server/src/lib.rs changed 68 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in openshell_server::run_server at line 585. 14 of those changes were fix/bug commits, and the other 54 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-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-server/src/lib.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/lib.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17022ad16b926afc0c4d54542245c43bf0fa27e5c34ce6ca8391d900819a90a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-server/src/compute/mod.rs: crates/openshell-server/src/compute/mod.rs changed 78 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in ComputeRuntime::start_persisted_sandboxes_with_authentication at line 4038. 29 of those changes were fix/bug commits, and the other 49 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-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-server/src/compute/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/mod.rs"},"region":{"startLine":4038}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea80ef938d5ba245a7b26abec3f45f29954d6a5046f7c46a72189647591ecc1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-server/src/grpc/provider.rs: crates/openshell-server/src/grpc/provider.rs changed 42 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in openshell_server::grpc::provider::resolve_provider_environment_from_records_with_policy_bindings_and_credentials at line 1166. 5 of those changes were fix/bug commits, and the other 37 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-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-server/src/grpc/provider.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac66d236a8ac740ed8aef84307c591e8f57060d58be13ea530ec6563236dac7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-supervisor-network/src/l7/relay.rs: crates/openshell-supervisor-network/src/l7/relay.rs changed 39 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in openshell_supervisor_network::l7::relay::relay_with_route_selection at line 1151. 17 of those changes were fix/bug commits, and the other 22 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-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor-network/src/l7/relay.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/relay.rs"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c74a055090e7b43ffa2b224e17574545cf718e6b38d0d01e1b05212ddfcd762"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-supervisor-network/src/opa.rs: crates/openshell-supervisor-network/src/opa.rs changed 33 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in openshell_supervisor_network::opa::proto_to_opa_data_json at line 2255. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor-network/src/opa.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":2255}}}],"partialFingerprints":{"codehealthFindingId/v1":"debb73c38593311d2029b9b0ea57a7afd3040ab09127c2f1a6825a7d12c01840"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-driver-kubernetes/src/driver.rs: crates/openshell-driver-kubernetes/src/driver.rs changed 47 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in KubernetesComputeDriver::reconcile_sandbox_runtime_resources at line 4531. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-driver-kubernetes/src/driver.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":4531}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd54e6f245f8920540a52ec21c795f74832ab57edbdcabda998958529c9ed68f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-supervisor/src/lib.rs: crates/openshell-supervisor/src/lib.rs changed 34 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in openshell_supervisor::run_sandbox_instance at line 1042. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor/src/lib.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/lib.rs"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf73d729eea7ca97498a95f21ea32868aa44e182caa9e172c1710bac1fbde59d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-driver-vm/src/driver.rs: crates/openshell-driver-vm/src/driver.rs changed 48 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in VmDriver::provision_sandbox_inner at line 1369. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-driver-vm/src/driver.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/driver.rs"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3220fbd1318aa7f86e68d73af75923d875fa5d2c0ae1774b006718910299d4e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-server/src/cli.rs: crates/openshell-server/src/cli.rs changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in openshell_server::cli::merge_file_into_args at line 1230. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-server/src/cli.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/cli.rs"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"43291d7f3a017e833afe3151817e2fcb355748c13745176898ecf1cd76962386"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-policy/src/lib.rs: crates/openshell-policy/src/lib.rs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 61 in openshell_policy::validate_sandbox_policy_with_mcp_presence at line 1413. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-policy/src/lib.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/lib.rs"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b4fc3970ca27b241484d4523ac9da1430a56b27109aa05312c56ed009e269d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-supervisor-network/src/l7/mod.rs: crates/openshell-supervisor-network/src/l7/mod.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 96 in openshell_supervisor_network::l7::validate_l7_policies at line 1236. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor-network/src/l7/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/mod.rs"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"6348b0bf9c2d71c7f809860ef58ac1fa3af1ef5200c3495126403b3e172c5d32"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-driver-docker/src/lib.rs: crates/openshell-driver-docker/src/lib.rs changed 52 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in DockerComputeDriver::admit_container_resources at line 1266. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-driver-docker/src/lib.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"c446c587a6fe4fb4fa85166f2bc62d7269c683314f6e252ffd2366dd271316d4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-driver-podman/src/driver.rs: crates/openshell-driver-podman/src/driver.rs changed 33 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in PodmanComputeDriver::create_sandbox at line 939. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-driver-podman/src/driver.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/driver.rs"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0beb4275f3edd6fbed8507252ce7e508fbf75044cfb59c30b1f057c1680f757"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-sandbox/src/boundary_server.rs: crates/openshell-sandbox/src/boundary_server.rs changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in openshell_sandbox::boundary_server::linux::serve_one at line 2040. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-sandbox/src/boundary_server.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/boundary_server.rs"},"region":{"startLine":2040}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0a312cb2b669e297e288b93a77ca2d6698bfb185cd003253c604a7102a6c85"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-server/src/multiplex.rs: crates/openshell-server/src/multiplex.rs changed 36 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in AuthGrpcRouter::call at line 1210. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-server/src/multiplex.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/multiplex.rs"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5e9881baa3e811c8348c7654e64d9235a38425e5e9bc79b85369485e3d1e4f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-sandbox/src/main.rs: crates/openshell-sandbox/src/main.rs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in openshell_sandbox::probe_socket_virtualization at line 348. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-sandbox/src/main.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4888d9e54ffed5d66a05008fef9e0d0496a8f98c38b586d45e90e973ac321f0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-server/src/provider_refresh.rs: crates/openshell-server/src/provider_refresh.rs changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in openshell_server::provider_refresh::apply_minted_credential at line 1424. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-server/src/provider_refresh.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/provider_refresh.rs"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac67fffcdf745ddc6ec5a158f82d9030242b20224f4a4b6f7e6aa4a684f7717"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-cli/src/commands/provider.rs: crates/openshell-cli/src/commands/provider.rs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in openshell_cli::commands::provider::format_provider_profile_details at line 2529. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-cli/src/commands/provider.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":2529}}}],"partialFingerprints":{"codehealthFindingId/v1":"02fa67a3112c7196a26b9d8819aed3d4de9d4844f501b79a35d2d600abfcf8f8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-supervisor-network/src/l7/rest.rs: crates/openshell-supervisor-network/src/l7/rest.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in openshell_supervisor_network::l7::rest::relay_http_request_with_response_middleware_guarded_observed at line 892. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor-network/src/l7/rest.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c28575c9c0900ca93942cab1e8619034e9739f2fa4214c3a64026d56b135115"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-driver-podman/src/container.rs: crates/openshell-driver-podman/src/container.rs changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in openshell_driver_podman::container::build_base_spec at line 1230. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-driver-podman/src/container.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-podman/src/container.rs"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7278748fbdca85df51ca8148e0f097716da23f5ad2110b7bd0e5642624003b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: sdk/typescript/src/client.ts: sdk/typescript/src/client.ts changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in SandboxClient.execInteractive at line 1539. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- sdk/typescript/src/client.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f01f7af53629f9a9c181d0a8c18506a371861beafbf0afe5060a109b90089d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-supervisor-middleware/src/lib.rs: crates/openshell-supervisor-middleware/src/lib.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in ChainRunner::evaluate_described_with_policy_admitted at line 1684. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor-middleware/src/lib.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/lib.rs"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"6662a057386aded32693412b04ec7f1b5bdf36f7d80ac347a01abf25618673a7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-supervisor-process/src/ssh.rs: crates/openshell-supervisor-process/src/ssh.rs changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in SshHandler::subsystem_request at line 724. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor-process/src/ssh.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/ssh.rs"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"15522e4f2d2388c126e7ea24019f9b3d544800c9dcc39c51e6c3b2cd41a04d09"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-core/src/grpc_client.rs: crates/openshell-core/src/grpc_client.rs changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in openshell_core::grpc_client::refresh_token_loop at line 614. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-core/src/grpc_client.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/grpc_client.rs"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3aaebf89f1ed8b216733724815487ae665c3308916475ec2ba08846f4e7253"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: python/openshell/sandbox.py: python/openshell/sandbox.py changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in sandbox._sandbox_ref at line 1887. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- python/openshell/sandbox.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"python/openshell/sandbox.py"},"region":{"startLine":1887}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cecd12a681baa2aa8da6afe33ccea062baaa32d52fbe10acb13e2d044584957"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-tui/src/lib.rs: crates/openshell-tui/src/lib.rs changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in openshell_tui::spawn_create_sandbox at line 1395. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-tui/src/lib.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/lib.rs"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"577f082f521000e5e316414a37991871120367abae814e03f8e5290b9fdd6708"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-supervisor/src/main.rs: crates/openshell-supervisor/src/main.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in openshell_supervisor::main at line 417. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor/src/main.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/main.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc6bcc0375c9a39319be8797ce89971f942bb49751273311080f97a2a9319a0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-core/src/driver_utils.rs: crates/openshell-core/src/driver_utils.rs changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in openshell_core::driver_utils::validate_upstream_proxy_settings at line 625. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-core/src/driver_utils.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/driver_utils.rs"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"007d63ab164105b3e18122dd2c120d84e7439f30e6a41bb53c768bfeaa622f6b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-server/src/supervisor_session.rs: crates/openshell-server/src/supervisor_session.rs changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in openshell_server::supervisor_session::accept_supervisor_session at line 2224. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-server/src/supervisor_session.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/supervisor_session.rs"},"region":{"startLine":2224}}}],"partialFingerprints":{"codehealthFindingId/v1":"deea92a51975ad4834b3778c33a12d96880ad2b55a51310d942d7940a650a850"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: sdk/go/openshell/v1/sandbox_client.go: sdk/go/openshell/v1/sandbox_client.go changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in sandboxClient.Watch at line 372. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- sdk/go/openshell/v1/sandbox_client.go\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/sandbox_client.go"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1684bc69d7b0d825cce1ae838500930b143244dfeeb39f22aca97e67dd1b9e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-driver-kubernetes/src/config.rs: crates/openshell-driver-kubernetes/src/config.rs changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in KubernetesComputeConfig::validate_upstream_proxy_config at line 638. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-driver-kubernetes/src/config.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/config.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d0f16ec8d8a55841043cdca95d79077dd727b489a7275aa0dddd634336c8ce"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-sandbox/src/network_broker.rs: crates/openshell-sandbox/src/network_broker.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in openshell_sandbox::network_broker::connect_socket at line 851. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-sandbox/src/network_broker.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/network_broker.rs"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"7542379453aaf6752d3d5ac1dfe86beefadefcf08f424a37aa2cd675e0de1868"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-supervisor-network/src/l7/websocket.rs: crates/openshell-supervisor-network/src/l7/websocket.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in openshell_supervisor_network::l7::websocket::relay_client_to_server at line 646. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor-network/src/l7/websocket.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/websocket.rs"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad93c9e91fd599af65040174d307d68a798150e6dcd3c62477e581ebd70e999"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-ocsf/src/format/shorthand.rs: crates/openshell-ocsf/src/format/shorthand.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in OcsfEvent::format_shorthand at line 231. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-ocsf/src/format/shorthand.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-ocsf/src/format/shorthand.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"30484a28a8784ea563578a2e60cc8b8c3148e25bc18a7b56187590c240efe825"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-policy/src/merge.rs: crates/openshell-policy/src/merge.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in PolicyMergeError::fmt at line 522. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-policy/src/merge.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/merge.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"16029a48e540ac687d9fe2c4b0e954f47d499c9e2380352f053810709a36a213"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-cli/src/ssh.rs: crates/openshell-cli/src/ssh.rs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in openshell_cli::ssh::sandbox_connect_supervised at line 541. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-cli/src/ssh.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/ssh.rs"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fd4d7b0360e0d3fc2b18ce5dc47d700512d88a20fa09b72bd77d1b78cfa33a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-supervisor-network/src/run.rs: crates/openshell-supervisor-network/src/run.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in openshell_supervisor_network::run::run_networking at line 279. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor-network/src/run.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/run.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67121ea991252a4939ad45e38e2d5f610d863853eb6a8c64d574cea9b81c5ed"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-tui/src/app.rs: crates/openshell-tui/src/app.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in App::handle_providers_key at line 1431. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-tui/src/app.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/app.rs"},"region":{"startLine":1431}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f6b04a819d63bf5e0cf5b65b953438e311673b2e6287f7c95a6f4398c1ebb2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-sandbox-backend/src/boundary_protocol.rs: crates/openshell-sandbox-backend/src/boundary_protocol.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in Request::fmt at line 887. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-sandbox-backend/src/boundary_protocol.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox-backend/src/boundary_protocol.rs"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a269ce3bfac1a868b750b9977c58905c607fbdf5e198ab79ede6feb0265132"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-driver-mxc/src/driver.rs: crates/openshell-driver-mxc/src/driver.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in openshell_driver_mxc::driver::run_lifecycle at line 846. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-driver-mxc/src/driver.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/driver.rs"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff21548468deb673e757f9465295c3a98e3ad03ab5f207367e6ec17f804fe9ce"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-cli/src/commands/gateway.rs: crates/openshell-cli/src/commands/gateway.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in openshell_cli::commands::gateway::gateway_add at line 839. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-cli/src/commands/gateway.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0a4cbad4bfdfc7cf83a65a97dd161437ad204a7959e964bf02e27d871fde18"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-core/src/provider_credentials.rs: crates/openshell-core/src/provider_credentials.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in openshell_core::provider_credentials::compile_static_credential_bindings at line 957. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-core/src/provider_credentials.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/provider_credentials.rs"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5202b8029e7b9ddc6cd24f59a0d3683949f1c1e4d6f7a26b641694be8ac7afc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-server/src/provider_profile_sources.rs: crates/openshell-server/src/provider_profile_sources.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in openshell_server::provider_profile_sources::build_effective_profiles at line 729. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-server/src/provider_profile_sources.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/provider_profile_sources.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b72ea033de23528e47d326712b46ffe6da29690e784106c57f088a4803101d4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-server/src/service_routing.rs: crates/openshell-server/src/service_routing.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in openshell_server::service_routing::proxy_to_endpoint at line 337. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-server/src/service_routing.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/service_routing.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"2981e2c7f77a2e6fff5b26a268f35173cbbdccd333b92a5227e479f101fb369b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-supervisor-network/src/proxy/destination.rs: crates/openshell-supervisor-network/src/proxy/destination.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in openshell_supervisor_network::proxy::destination::filter_resolved_addresses at line 155. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor-network/src/proxy/destination.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy/destination.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"3704db951e74db48203f29e3af1a0fa006b1738112e69ffaf9e9d9d989a021e3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-supervisor-network/src/upstream_proxy.rs: crates/openshell-supervisor-network/src/upstream_proxy.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in UpstreamProxyConfig::from_lookup at line 416. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor-network/src/upstream_proxy.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/upstream_proxy.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea61c101314e3ff8a0e619d17514e8a7a4986732f90f4699067d164a1645992"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-cli/src/policy_update.rs: crates/openshell-cli/src/policy_update.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in openshell_cli::policy_update::build_policy_update_plan at line 24. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-cli/src/policy_update.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/policy_update.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3195d6dfe936ed899664938819f9bfa1dbea7bd605901c535de4a53715be269"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-server/src/tls.rs: crates/openshell-server/src/tls.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in TlsAcceptor::spawn_reload_worker at line 141. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-server/src/tls.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/tls.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce8da4906a0ff0bdfae8ab10fb7f131679fcc9dbaa676d72e0fc9c635a87ad7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-sandbox/src/main_session.rs: crates/openshell-sandbox/src/main_session.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in MainSession::start_io at line 581. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-sandbox/src/main_session.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a2c92e62fb259cff8683d14d4fc6e977134590a50523f3c34a5929d473493f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-server/src/grpc/policy/endpoint_status.rs: crates/openshell-server/src/grpc/policy/endpoint_status.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in openshell_server::grpc::policy::endpoint_status::handle_report_endpoint_status_inner at line 113. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-server/src/grpc/policy/endpoint_status.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy/endpoint_status.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec26873e0e03fbac8443933923be2de294c28ed1c4629c38e5fa12de720a250"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-tui/src/ui/mod.rs: crates/openshell-tui/src/ui/mod.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in openshell_tui::ui::draw_nav_bar at line 189. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-tui/src/ui/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/mod.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1981273f73ce206ff36c7ac5886fc6ce8829f58f5c889c0951598c9e43727b7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-tui/src/ui/sandbox_draft.rs: crates/openshell-tui/src/ui/sandbox_draft.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in openshell_tui::ui::sandbox_draft::draw_detail_popup at line 190. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-tui/src/ui/sandbox_draft.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/sandbox_draft.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"113af4cc08d13183e677df3c77265deff3d03fdea1f573612cacc3aca46e702f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-tui/src/ui/sandbox_detail.rs: crates/openshell-tui/src/ui/sandbox_detail.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in openshell_tui::ui::sandbox_detail::draw at line 62. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-tui/src/ui/sandbox_detail.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-tui/src/ui/sandbox_detail.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d28e3685f303dcb8fdebe6254c72889b9697d443d566d735908ae1d27c781d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-sandbox/src/boundary_exec.rs: crates/openshell-sandbox/src/boundary_exec.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in LocalBoundaryExec::command at line 123. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-sandbox/src/boundary_exec.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/boundary_exec.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"092539c60e73f4f1fbec419c46cd48a196ea86466db4ea4aa9453eb0a8f97178"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-sandbox/src/linux/seccomp_notify.rs: crates/openshell-sandbox/src/linux/seccomp_notify.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in openshell_sandbox::linux::seccomp_notify::probe_connected_sendto_fast_path at line 464. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-sandbox/src/linux/seccomp_notify.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/linux/seccomp_notify.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"267577526d26cbd05edd893decb0b8d1ecea8e603925b113774e7ba2fa756924"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-supervisor-network/src/l7/jsonrpc.rs: crates/openshell-supervisor-network/src/l7/jsonrpc.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in openshell_supervisor_network::l7::jsonrpc::parse_mcp_payload at line 722. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor-network/src/l7/jsonrpc.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/jsonrpc.rs"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1e6faceac6a90c11ad52947033cead5c05737611b1de0c7ec1a748b61ee4e1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-sandbox/src/mechanistic_mapper.rs: crates/openshell-sandbox/src/mechanistic_mapper.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in openshell_sandbox::mechanistic_mapper::generate_proposals at line 60. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-sandbox/src/mechanistic_mapper.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/mechanistic_mapper.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5338f62a9df820231b7273b3b4c262722de309aa66f59b00a01edaf5e97a6c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-supervisor-network/src/l7/rest/http_response.rs: crates/openshell-supervisor-network/src/l7/rest/http_response.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in openshell_supervisor_network::l7::rest::http_response::relay_response at line 42. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor-network/src/l7/rest/http_response.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest/http_response.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8743ec9c427139b9c5176b594e41adf53e319ed6d252310d06bbc716d49e7d3c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-server/src/compute/provisioning_deadline.rs: crates/openshell-server/src/compute/provisioning_deadline.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ComputeRuntime::reclaim_provisioning_timeout at line 653. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-server/src/compute/provisioning_deadline.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/compute/provisioning_deadline.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"344bee2b0006f819a2487d7a122c442c7476187f2c46de62bdb93543b2dd6f8a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-driver-vm/src/runtime.rs: crates/openshell-driver-vm/src/runtime.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in openshell_driver_vm::runtime::run_libkrun_vm at line 295. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-driver-vm/src/runtime.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-vm/src/runtime.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"217ba388d30fb01200548d09a42f861728b7f2f800109a5015b70add160fcde0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-supervisor-middleware/src/headers.rs: crates/openshell-supervisor-middleware/src/headers.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in openshell_supervisor_middleware::headers::apply at line 124. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor-middleware/src/headers.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/headers.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"903088255a41bdd766a465c19eac936669c99ae79bc0266858a655709d306b76"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tasks/scripts/codex_compatibility_report.py: tasks/scripts/codex_compatibility_report.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in codex_compatibility_report.validate_review at line 25. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- tasks/scripts/codex_compatibility_report.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tasks/scripts/codex_compatibility_report.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed490a8dcf36ccd459fcbc4596693e1c78a8581b3ab93f3eea357817b1c2ea9c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tasks/scripts/select-release-candidate.py: tasks/scripts/select-release-candidate.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in select-release-candidate.select_candidate at line 63. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- tasks/scripts/select-release-candidate.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tasks/scripts/select-release-candidate.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"38211cbdbcc6205369e13b5687a37e8de193a8e1fb7451477eceb46409ca9a45"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-supervisor/src/mechanistic_mapper.rs: crates/openshell-supervisor/src/mechanistic_mapper.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in openshell_supervisor::mechanistic_mapper::generate_proposals at line 60. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor/src/mechanistic_mapper.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/mechanistic_mapper.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e7a20cbdfd20f5c306986af7b7538283ab52ea1f55a57304f3867cc4528be4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/openshell-supervisor-network/src/l7/path.rs: crates/openshell-supervisor-network/src/l7/path.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in openshell_supervisor_network::l7::path::canonicalize_request_target at line 115. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor-network/src/l7/path.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/path.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"606c0b9a06aef3b3ed8b09abade68902ebb3d47d52ce2309b8487e2367caa619"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/openshell-supervisor-network/src/policy_local.rs: crates/openshell-supervisor-network/src/policy_local.rs changed 17 times in last 90 days and 10 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is openshell_supervisor_network::policy_local::submit_proposal at line 607), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(supervisor): rename OCSF log files from \u0060.log\u0060 to \u0060.jsonl\u0060 (#4263)\u201D; \u201Cfix(server): audit proposal rejections in the gateway (#4281)\u201D; \u201Cfix(sandbox): audit every endpoint in a proposal (#4313)\u201D; \u201Cfix(providers): prepare dynamic credentials across HTTP relay paths (#4152)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor-network/src/policy_local.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/policy_local.rs"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"72100627a8f4e46f521c712fe79ddd73981ed5a2b0aa0de0cf3ba42223685119"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/openshell-core/src/secrets.rs: crates/openshell-core/src/secrets.rs changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is openshell_core::secrets::rewrite_request_line at line 1015), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(core): preserve issued identity in credential aliases (#4390)\u201D; \u201Cfix(supervisor): classify credential placeholders in request bodies (#3246)\u201D; \u201Cfix(policy): gate uninspected credentialed endpoints (#2493)\u201D; \u201Cfix(providers): keep refresh credential handles stable (#2780)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-core/src/secrets.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/secrets.rs"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f4436525820313c150dc433d3a9041f02388dd82d0800743f6c876fc0a96ea"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/openshell-supervisor-network/src/identity.rs: crates/openshell-supervisor-network/src/identity.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is BinaryIdentityCache::verify_or_cache_supplied_identity at line 138), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(windows): restore MSVC lint for CLI and MXC (#4194)\u201D; \u201Cfix(identity): assess leaf and ancestor executable identities (#3633)\u201D; \u201Cfix(ci): repair RFC 0012 post-merge checks (#3360)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 04:28:39 \u002B00:00\u0027 --until=\u00272026-10-27 04:28:39 \u002B00:00\u0027 --full-history --no-merges -- crates/openshell-supervisor-network/src/identity.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/identity.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"4acff6e6c0bc66ace2f0fca6802dc88b832b817a2fd0edb448c72e730a53b3c1"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 10 significant file(s) lose their only recent owner: crates/openshell-sandbox/src/boundary_exec.rs, crates/openshell-driver-kubernetes/src/isolation.rs, crates/openshell-sandbox/src/boundary_io.rs, crates/openshell-sandbox/src/sftp.rs, crates/openshell-driver-kubernetes/src/resource_admission.rs, crates/openshell-sandbox/src/managed_children.rs, crates/openshell-sandbox/src/linux/task_memory.rs, crates/openshell-driver-vm/src/isolation/mod.rs (\u002B2 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2ecb0199d4e5a27617a8cc5e468edf470059f9b81ddf6432e2d2da093d00c7ea"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 4 significant file(s) lose their only recent owner: crates/openshell-supervisor-network/src/l7/jsonrpc.rs, crates/openshell-supervisor-network/src/l7/mcp.rs, crates/openshell-core/src/policy_identity.rs, crates/openshell-core/src/mcp.rs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"956a97683c58073413a5c75da3318bc1fa3caff5dd37c1baf7dc5bbecc11539e"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 9 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 (26 single-owned of 568 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; 568 of the 702 production source files in this repository met that bar). They are anonymized user #3 (2 file(s)), anonymized user #4 (2 file(s)), anonymized user #5 (2 file(s)), anonymized user #6 (1 file(s)), anonymized user #7 (1 file(s)), anonymized user #8 (1 file(s)) (\u002B3 more) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: crates/openshell-driver-vm/src/layer_applier.rs, crates/openshell-conformance/src/scenarios/sandbox_lifecycle.rs, crates/openshell-sandbox/src/linux/proc_fd.rs, crates/openshell-core/build_version.rs, sdk/go/openshell/v1/auth_refresh.go, sdk/go/openshell/v1/types/log.go, crates/openshell-cli/src/color.rs, crates/openshell-prover-cli/src/main.rs (\u002B4 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // emit site forgets to redact (TODO: harden the emit sites in \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":"crates/openshell-supervisor-network/src/policy_local.rs"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"23260cb75acade59547c374b7bf32d7a8b743dee62abfd7f61b656a44af80e88"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: exec\u0027ing /bin/sleep (SELinux label bin_t) from a user_home_t test \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":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":15039}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8822e53e56e21182283864d2ab608781df455b30c28acfd9369b317494360e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Allow policies to supply custom replacement expressions after the \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":"crates/openshell-supervisor-middleware-builtins/src/regex.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"2940440113eb8a5f5e7d31091baed5f254e62852a570e41454f517c22a6cbfe1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: share effective-policy lookup with \u0060load_sandbox_policy\u0060 / \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":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7a5aaceb6c6e0cabb53879c588d16acd72d84c0762f25ebf39d6ff847b196d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: replace with an openshell_core Kubernetes-name helper once available. \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":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9cdad744f3d00f042d39c55061d1d7b610fa806714d3c4b34a946361df7877"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: The TLS CA is loaded once here and never re-read. The gateway \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":"crates/openshell-core/src/grpc_client.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a2aa2bf732e03a3cd3de0b80966659c55a5ff17d1db0131a8ff8dc7a57b3be"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 4 of 41 project(s) overshoot their size bounds, lowering Project Cohesion to 8.2/10. The most over is \u0060crates/openshell-server\u0060 (162355 LoC, 287 module-visible types across 8 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2a1d90ede93c5a4f8287c7c7b6e0180d988153e235c299508860c68e82370304"},"properties":{"commitSha":"39cf4823f72419420c3d3fc209dd6e862b0c7da5"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9d8e5b409f1022cca53c6662aa54ec10a6a6c7b8c3125bcaf8d836404fd25ef9"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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":"b858f549873be545b57a692d84feb07e937b31ae525c697a3daa33373483bd8a"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09: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":"55fb32cff676d9765dd477a40a80d388edc7443f6d2a3ce5999d027a1ab9071b"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09: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":"a82dd4cc96eceb926166ccd032ac7481f77ba29384c2acd9e343fd048d7047b2"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09: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":"3f252baec104e77ac4550db4bcb466d288c7cdb8dc42e8cfd65ce1b76a805047"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09: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":"d9849adcedac6103cd27cedc7c0df274c1dee0941a900dcc905f308beb4ffe71"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09: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":"48a0f2e4757fc6db3bff4d030cb06f62ddf8d9f6d732490194690ee73db24cf3"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09: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":"646fab43b7e972d49b1074b68481babc77afb76d8a285982ee458d2f691e0722"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09: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":"6b0e391d1bbccee08ad229652b02721568412e9b91ea3bda6097f7eb55922a24"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c28deb537ade4c6bc8f87f534423e958cc8a6078777c76788d7e73d7b8f43466"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-88","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"68a074d332390fbc0a1fe8e6d0865b4821defa6450f2dc13f3ecde3203356540"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5de6383b8455c75391fd0046d43215c785776d13f6b49e004dcd426107f04405"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a534b653672e0f1a7d830cf0e85c28943596b7eed9ee97738910c796acee9cdb"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a9bf66b3492eb71a4aa795498f08f6ee56fcfd1ba969bfd645067868f058284f"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5eea0432a56dda645be901f7bb45caf0b91a3aac53336f87b3f5588ee85bb3dd"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5e7192be8ad72222ca9a0648aec54a868347dad115f98a1820f594c84ab85a2c"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0603dd4be6eec780faea94c1733b74548915969495c423ee83f0defd46056633"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c33dff66873862c1440be60b55dcfd9b0c86bfa362d9ddfd695531b1240295b5"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"61cadcafaee2b3e94f2089e28cb2e0b2b8cd1381d3033aec33aa242860464792"},"taxa":[{"id":"CWE-494","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":"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":"fb16c638bc7c605a67cc62b7e2b36d14939bab1a47b8cd9eb778cc6b54819c93"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0cb4ea144d5bb913af857f07d8a0a4c282465b482f22f2e21fce37b5785f3329"},"taxa":[{"id":"CWE-502","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":"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":"8ace276db991d716002fa7369a58c94efd7389f18071a577392f3e35df74b7a6"},"taxa":[{"id":"CWE-502","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":"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":"75b9a11a866ce8657584564832d314d78ff13d0e475b2274224af93e039713b6"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"63988baebd02ddf7010289ec2ee0be265902a2b0f43d8e1bbcc0d02444a3da63"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"dcf7178f5799b895c7af3d5d9dbf3f2059cb2357eaaf847d40a7adff388af982"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"cfbd6f0ef75e9d33e741c0bbdc9b3fd099501168516353c6f0873710299a1602"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"7af8f2054ac673ed8b9aebbf5250084d5e23166c9ecc4e7aa279def390cccd69"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"713d68fe58435a878597532d16837ae0e533aceae8d2dae6731e491dc39452e7"},"properties":{"dependency":{"package":"rsa","version":"0.10.0-rc.18","advisory":"RUSTSEC-2023-0071","aliases":["[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4bb282e6cc9a79b7047c6a5d1c6a0274b6f637b8703f75038c751facb38089a6"},"properties":{"dependency":{"package":"rsa","version":"0.9.10","advisory":"RUSTSEC-2023-0071","aliases":["[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b5cc6a78fe02a95b2f6755616011982ae866dcba8c2aeaae7b037f36ce19be5"},"properties":{"dependency":{"package":"unsafe-libyaml","version":"0.2.11","advisory":"RUSTSEC-2024-0449","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"705e8761c5e609601c0419d94a8bad1aeb6aee434f48ec4660c92e8bf534c9de"},"properties":{"dependency":{"package":"number_prefix","version":"0.4.0","advisory":"RUSTSEC-2025-0119","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b5524f25221308ec94b7206b58afaa59996104c20abaa242285d451f5344e44b"},"properties":{"dependency":{"package":"rustls-pemfile","version":"2.2.0","advisory":"RUSTSEC-2025-0134","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d469c4cdd0b2892278c4ee90c01a5a8ea4872a98733c483777e04c904cfebdfc"},"properties":{"dependency":{"package":"proc-macro-error2","version":"2.0.1","advisory":"RUSTSEC-2026-0173","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"759d36a63e8483c4a467399ff199fa57fa2e02d89ef311720974588edb9516d4"},"properties":{"dependency":{"package":"anyhow","version":"1.0.102","advisory":"RUSTSEC-2026-0190","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1092cdc16bab90e26caa98781415518f2a1a0fec9b43d183894264e01dcc42b6"},"properties":{"dependency":{"package":"event-listener","version":"5.4.1","advisory":"RUSTSEC-2026-0221","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"06e8dc8c07565b965cad3fead890e0d682e96e4f994ab4a0654e3f10afe7962d"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0395","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"414bb4a49ee404ddc9dbe92931374dee643d4d3104e067391ed93041a77ff631"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0396","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d67834474e5564706ab5d6117a7537fa7ddd9f89e1070ff0f40846a68262b203"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0397","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64bc44f41a35cd29a5d01a7b192ce2cc5f1d458c15d9df1d5239ebb5b7c6fd43"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0399","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a79bcf37fda3b3cfb40243fa81b1818f80a0fe095c267b68e3c7eee6f042ddc9"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0400","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"21df614167acad094349de8aa7cfc685e485f636d67b1ded35b43230df65a136"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0401","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fd61c6a1a6d23109e3da0a091cdbb2ecd3102dd1235e0548e2d8ffd7db2a7005"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0402","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a910032c7367726c7f26107809b36a5b0ab01a6e3af6f2b0cf67b659ecca9e49"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0404","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d11388e41908d6112e7f61d01d0c0d9062830b07945356073c8069de5b88d627"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0405","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dbb5f2efe8d9cca6344840981b65d21b774960589fc9976e6690dc84fce97102"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0406","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b02b97ec36d2b7ffa281563822a78805a46f13f8bb37fe20372bd0ff4a7a2966"},"properties":{"dependency":{"package":"block-buffer","version":"0.10.4","advisory":"[GHSA redacted]","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2d6d81f28ff07b213af3fe3e91834f4e610181daf2fc2c1bf83cc8980c2e0052"},"properties":{"dependency":{"package":"block-buffer","version":"0.12.0","advisory":"[GHSA redacted]","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c4a0c58aca13bc848c37d4c3d5bcb90f8e046f8df5b386f5a3743d0625ad8dae"},"properties":{"dependency":{"package":"crossbeam-epoch","version":"0.9.18","advisory":"RUSTSEC-2026-0204","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ffba3a9076a73cf66b6daacb5914c478fbdc74d1383d8d2e4003b6bf3aa7b43d"},"properties":{"dependency":{"package":"quinn-proto","version":"0.11.17","advisory":"RUSTSEC-2026-0338","aliases":["[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0340","RUSTSEC-2026-0343"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2f88d3a70d29acb7742d775c7077dafff055d53d623adea4448751985efe8ee1"},"properties":{"dependency":{"package":"zip","version":"8.6.0","advisory":"RUSTSEC-2026-0367","aliases":["[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0368","RUSTSEC-2026-0369"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cc4db900d7247116e90ac1f55322889d7c04a2f09430308fea72e799e9229468"},"properties":{"dependency":{"package":"crypto-bigint","version":"0.5.5","advisory":"RUSTSEC-2026-0387","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f4999ef69e42f46a403f3866a4a634365963f93fdd6e82c0c4a8e528a960ab52"},"properties":{"dependency":{"package":"zstd","version":"0.13.3","advisory":"RUSTSEC-2026-0391","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d7870b77ea4843334d11fffa265d6d0542e94eec7f4c8e852762d55c28578136"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0398","aliases":["RUSTSEC-2026-0403"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"84f9b61ffb7d87f7a0ea344424bcbd7389e2ed41eb01432b04fba9f732cd312c"},"properties":{"dependency":{"package":"zstd-sys","version":"2.0.16\u002Bzstd.1.5.7","advisory":"RUSTSEC-2026-0410","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3195e9b5f70e0b9f699b45ef0ecc3deabd2df724c6fabe163a3fac777296c3fe"},"properties":{"dependency":{"package":"stdlib","version":"1.25.13","advisory":"GO-2026-6599","aliases":["BIT-golang-2026-56857","BIT-golang-2026-56866","BIT-golang-2026-78659","BIT-golang-2026-78660","BIT-golang-2026-78663","BIT-golang-2026-78667","BIT-golang-2026-78669","BIT-golang-2026-94439","BIT-golang-2026-94440","BIT-golang-2026-94448","BIT-golang-2026-97030","BIT-golang-2026-97031","BIT-golang-2026-97032","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","GO-2026-6600","GO-2026-6603","GO-2026-6604","GO-2026-6605","GO-2026-6607","GO-2026-6608","GO-2026-6609","GO-2026-6610","GO-2026-6611","GO-2026-6612","GO-2026-6613","GO-2026-6617","GO-2026-6809","RUSTSEC-2026-0381","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"reachability":{"kind":"production","file":"sdk/go/openshell/v1/oidc/authcode.go","line":108,"symbol":"http.Error"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c4ebd714d9a5baf0ddcb3877bc2ea1ee3c5d234a9eb71b90f31f2cbda790a156"},"properties":{"dependency":{"package":"golang.org/x/net","version":"0.58.0","advisory":"GO-2026-6603","aliases":["BIT-golang-2026-78659","BIT-golang-2026-78660","BIT-golang-2026-78663","BIT-golang-2026-78669","BIT-golang-2026-97032","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","GO-2026-6610","GO-2026-6611","GO-2026-6612","GO-2026-6617"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1c62c0262eff7fb5c380753f10e194b95b81d0b37f9f242fc0a0c8d876b33646"},"properties":{"dependency":{"package":"@vitest/mocker","version":"4.1.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"9958ffb9a1831d3aa4b9a5ff26d13631913a6a56cc5e7cb007bbcdf19046f529"},"properties":{"dependency":{"package":"setuptools","version":"83.0.0","advisory":"[GHSA redacted]","reachability":{"kind":"not-imported"}}}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"182dd312e45dc1b5ea3a680ce85ec8a3a892ef67173d17f74b39ab6cb138ee78"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7b4c862b2cdcf216d691484191a98e3f5c29c62aeb9700a784ee5505bcb78769"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"967229aee88837a4a503d8399e4f05b3a5d4aa7f0a9c99f8d1fd0e83385dea1c"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2f3ee4785fbd391f202435e26e052d925f4ca73b73277fbdf49556e856c57fc1"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-668","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a73a25c85306a49d003e9839590a2a9c1322457c65e397735fec57437ccac6e5"},"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":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e81ac1562f1850a47e4902525f8c20ceb4eda548d1235cb1bd9d46e3ed5825de"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4330482a25d508d3b9cfc48771e61cdca3651549c809b7c6e28ea51642634d09"},"taxa":[{"id":"CWE-345","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"55b7f6d91ab3b4952bd3417dc1233a27b7b11e71b4c444612f3154c30319ae01"},"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":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c45b27d703ca7496ae812010136492ad0fdadeae0c86e640464c992a214e17f9"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9b32460f1a8b5e8c0f97810aade2820fcad5fd57885bc34ef465ed947f8f7686"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"304676822d2fffb8d3645fe2922925cf36c134fb450aa9ff3fab04d54413f254"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9e8c7631b0c0a26c4e6bc6322bbee2000537430c82af5a0e84e0a64fa39eaca3"},"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":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f0ae88ca8d2898025140899b43216b232e45d50ea6a713f0a764b90bdaed5c83"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","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":"47359d834219e091f6bfdd1235e5a14d819fceaef19591a44bd813cb03f1083a"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away, so if it breaks, no one currently understands it. It does carry its own tests, so the behaviour is pinned even though the understanding is gone: schedule a read-through, using those tests as the specification, before the next change lands here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-vfio/src/pci.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"359562f0ecc61ec6c60fa26165c368685f024674485539434441109dec725ed8"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away, so if it breaks, no one currently understands it. It does carry its own tests, so the behaviour is pinned even though the understanding is gone: schedule a read-through, using those tests as the specification, before the next change lands here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-vfio/src/bind.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b880456143b252ade8f9fd90dde8771abcc28a3c696020d4bc2458c68b268fd"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 7 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: fern/components/CustomFooter.tsx, crates/openshell-vfio/src/sysfs.rs, crates/openshell-vfio/src/gpu.rs, crates/openshell-vfio/src/reconcile.rs, crates/openshell-providers/src/providers/google_cloud.rs, crates/openshell-providers/src/providers/vertex.rs, crates/openshell-prover/src/finding.rs (9 orphaned of 568 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; 568 of the 702 production source files in this repository met that bar). 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":"fern/components/CustomFooter.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9459a423afa4cc10c3d4e8236a63350326d2b1d09dd823d38170b63f914db5"}},{"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":"crates/openshell-vfio/src/sysfs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c90f7d2c98247f84ab71090e55ec314588d1ba858207493fb77e2f7cf34eccb6"}},{"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":"crates/openshell-vfio/src/gpu.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b670b72ccbb3badae50773963fc5a1be4c8c9eeff4fa492ff34bdfca69a462"}},{"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":"crates/openshell-vfio/src/reconcile.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4d16427cb4deee7fb7cb76b5f455ec7081a3d79c784a6352c8a01622fcdf35"}},{"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":"crates/openshell-providers/src/providers/google_cloud.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9bcb1a9ed50ff68b3d8a16faafaf08464bc2c8fa82c2dd2dcda6fb0a6ad659"}},{"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":"crates/openshell-providers/src/providers/vertex.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc32a2a6bdb209b4d10933c70f91ad271c16dd19ae1628f3077fdfd76603cf4"}},{"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":"crates/openshell-prover/src/finding.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb610ab2a8aec5163b597a0c0c3f9c6e5095e3f9c22383a8fe076ea51b8674e2"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: main.rs \u2194 lib.rs: \u0060crates/openshell-gateway/src/main.rs\u0060 and \u0060crates/openshell-server/src/lib.rs\u0060 change together 70% of the time (7 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00609ae37607\u0060 refactor(compute): register compiled drivers (#2786) (at that commit the file was still \u0060crates/openshell-server/src/main.rs\u0060); \u006083af7a24\u0060 feat(sandbox): inject host gateway hostAliases into sandbox pods (#306) (at that commit the file was still \u0060crates/openshell-server/src/main.rs\u0060); \u00601535f806\u0060 feat(sandbox): add configurable imagePullPolicy for sandbox pods (#256) (at that commit the files were still \u0060crates/navigator-server/src/main.rs\u0060 and \u0060crates/navigator-server/src/lib.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-gateway/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6f5cd83fbb092bb717e1b78744f124224b803b952b178bdefc482eff7778ad"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: config.rs \u2194 main.rs: \u0060crates/openshell-core/src/config.rs\u0060 and \u0060crates/openshell-gateway/src/main.rs\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00609ae37607\u0060 refactor(compute): register compiled drivers (#2786) (at that commit the file was still \u0060crates/openshell-server/src/main.rs\u0060); \u006083af7a24\u0060 feat(sandbox): inject host gateway hostAliases into sandbox pods (#306) (at that commit the file was still \u0060crates/openshell-server/src/main.rs\u0060); \u00601535f806\u0060 feat(sandbox): add configurable imagePullPolicy for sandbox pods (#256) (at that commit the files were still \u0060crates/navigator-core/src/config.rs\u0060 and \u0060crates/navigator-server/src/main.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2613500819432b99de898c9e666cd6bfef3eb71e028c0075ff325c1ea9b038d2"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: lib.rs \u2194 main.rs: \u0060crates/openshell-bootstrap/src/lib.rs\u0060 and \u0060crates/openshell-cli/src/main.rs\u0060 change together 59% of the time (17 of the 29 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 17 shared commits counted here, the most recent 3 are \u00606e6b3c89\u0060 refactor(cli): remove local Dockerfile image builds (#3214); \u0060047de66b\u0060 feat(bootstrap,cli): switch GPU injection to CDI where supported (#495); \u00601f2a85e8\u0060 fix(cli): clear stale last-used sandbox on deletion (#510) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-bootstrap/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db4d72bfb5cb8003dbc008d3e582d30b327b184fe4fd830857b3206fb960bd1"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: policy.rs \u2194 policy_local.rs: \u0060crates/openshell-server/src/grpc/policy.rs\u0060 and \u0060crates/openshell-supervisor-network/src/policy_local.rs\u0060 change together 57% of the time (8 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u00603f12bdc6\u0060 fix(server): audit proposal rejections in the gateway (#4281); \u0060ffb53067\u0060 fix(providers): prepare dynamic credentials across HTTP relay paths (\u2026; \u0060718dba34\u0060 fix(policy)!: reject removed tls endpoint values (#3414) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7ce86f57fcc7ae5762f0af0055f24b012f3c797d12e2c4d4a29ff993e57326"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: policy.rs \u2194 postgres.rs: \u0060crates/openshell-server/src/grpc/policy.rs\u0060 and \u0060crates/openshell-server/src/persistence/postgres.rs\u0060 change together 54% of the time (7 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u006071440b28\u0060 fix(policy): refresh pending proposals when the sandbox policy change\u2026; \u0060679fe4c3\u0060 fix(policy): validate the applicable advisor candidate (#2850); \u0060aa483ecb\u0060 feat(providers): AWS STS AssumeRole refresh strategy and aws-s3 profi\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c8ddb3a7d8d3fb8781bc92aa591e195841c16f1fb641f6ebaa2956231cfb04"}},{"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":"9974be4dc4de1f4b662bf4799ee942caf1210650e2dd0cf99f94dc59731cbad3"},"taxa":[{"id":"CICD-SEC-5","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":"fe274ba5adebde25ca0b3db842e44cbb1aaeb7cfecfbb7215cd452596ba1f4c2"},"taxa":[{"id":"CICD-SEC-6","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":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","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":"4f1e7684f8281bd255ddef97105c7055c2ebae06964c8745716b83e174debe83"}},{"ruleId":"D44","level":"warning","message":{"text":"End-of-life runtime: Rust 1.95: rust-toolchain.toml declares Rust 1.95 as this project\u0027s toolchain file, and Rust 1.95, superseded by 1.96 on 2026-05-28 (the Rust project patches only the current stable). An unsupported runtime receives no security patches, so every vulnerability disclosed in it since 2026-05-28 is present and unfixable without moving off it. This is a migration rather than an upgrade: there is no newer release of a runtime that has ended."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust-toolchain.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde701f9c40b0b8cb202babf3f8d8da48dda44162595030f1b0a8f7d57710684"}},{"ruleId":"AC7","level":"warning","message":{"text":"Accessibility enforcement below the top rung: No accessibility enforcement found \u2014 no automated accessibility check runs over the HTML your app renders. Assert the accessibility invariants over that HTML in the test suite you already have (parse the output and assert, or drive a browser), and gate that test in CI so a regression blocks the merge. What was searched, so you can tell an absence from a miss: the 3 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository\u0027s test and CI files \u2014 matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d46019b86eff5ddad9db289e6802ac158899e980df54c34f67722442787ead62"}},{"ruleId":"AX9","level":"error","message":{"text":"Query writes persistent state on the read path: SshIdentityStore.get_or_create: \u0060SshIdentityStore.get_or_create\u0060 performs a durable write on a read path (a persist to a store/repository). The name announces the lazy initialisation, so the write is deliberate \u2014 the risk is that callers who only meant to READ still trigger it. Expose a read-only variant that returns nothing when the value is absent, and keep this one for the callers that genuinely want the create."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/ssh_identity.rs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b341fc409def05b32a14b9b1b19dc1c1e8d2d4f227c4b98cdfd8060ba0c9df"}},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): policy$module.handle_report_sandbox_configuration: \u0060policy$module.handle_report_sandbox_configuration\u0060 performs two independent DURABLE writes \u2014 a durable state write (\u0060store.update_message_cas\u0060, :5173) and an independent publish to an event bus (\u0060sandbox_watch_bus.notify\u0060, :5197) \u2014 in one command path with no shared transaction or outbox. A crash between the two leaves the stores diverged (one write committed, the other lost) or emits a phantom record. Wrap both in one transaction, or record the second write in the same store and dispatch it afterwards (a transactional outbox)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":5029}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b9d61dc9319940c4973bb56a07c18ba0ce4c90ec644e4945240c042b82a60ed"}},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): policy$module.handle_approve_draft_chunk_inner: \u0060policy$module.handle_approve_draft_chunk_inner\u0060 performs two independent DURABLE writes \u2014 a durable state write (\u0060store.update_draft_chunk_status\u0060, :6112) and an independent publish to an event bus (\u0060sandbox_watch_bus.notify\u0060, :6116) \u2014 in one command path with no shared transaction or outbox. A crash between the two leaves the stores diverged (one write committed, the other lost) or emits a phantom record. Wrap both in one transaction, or record the second write in the same store and dispatch it afterwards (a transactional outbox)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":6019}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfcef598b5764568138a90317bd8922580014cfdd5083a7e3963f5c0fdb9952b"}},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): policy$module.handle_reject_draft_chunk_inner: \u0060policy$module.handle_reject_draft_chunk_inner\u0060 performs two independent DURABLE writes \u2014 a durable state write (\u0060store.update_draft_chunk_status\u0060, :6248) and an independent publish to an event bus (\u0060sandbox_watch_bus.notify\u0060, :6253) \u2014 in one command path with no shared transaction or outbox. A crash between the two leaves the stores diverged (one write committed, the other lost) or emits a phantom record. Wrap both in one transaction, or record the second write in the same store and dispatch it afterwards (a transactional outbox)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":6167}}}],"partialFingerprints":{"codehealthFindingId/v1":"311b1511cf0f7eed3a81de1f0c3946a6175a0be775f8ada4ac8650a71e6d13a7"}},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): policy$module.handle_approve_all_draft_chunks_inner: \u0060policy$module.handle_approve_all_draft_chunks_inner\u0060 performs two independent DURABLE writes \u2014 a durable state write (\u0060store.update_draft_chunk_status\u0060, :6518) and an independent publish to an event bus (\u0060sandbox_watch_bus.notify\u0060, :6534) \u2014 in one command path with no shared transaction or outbox. A crash between the two leaves the stores diverged (one write committed, the other lost) or emits a phantom record. Wrap both in one transaction, or record the second write in the same store and dispatch it afterwards (a transactional outbox)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":6273}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f622a6f7802fb8413be4f708651c0ff28f9f5c64829019da3f563a449a46dad"}},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): policy$module.handle_undo_draft_chunk_inner: \u0060policy$module.handle_undo_draft_chunk_inner\u0060 performs two independent DURABLE writes \u2014 a durable state write (\u0060store.update_draft_chunk_status\u0060, :6708) and an independent publish to an event bus (\u0060sandbox_watch_bus.notify\u0060, :6712) \u2014 in one command path with no shared transaction or outbox. A crash between the two leaves the stores diverged (one write committed, the other lost) or emits a phantom record. Wrap both in one transaction, or record the second write in the same store and dispatch it afterwards (a transactional outbox)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":6653}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba634798d9da3bea1603903db0c4f4c868c951e83f62c4c207a862f05814fa69"}},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): policy$module.handle_clear_draft_chunks: \u0060policy$module.handle_clear_draft_chunks\u0060 performs two independent DURABLE writes \u2014 a durable state write (\u0060store.delete_draft_chunks\u0060, :6763) and an independent publish to an event bus (\u0060sandbox_watch_bus.notify\u0060, :6767) \u2014 in one command path with no shared transaction or outbox. A crash between the two leaves the stores diverged (one write committed, the other lost) or emits a phantom record. Wrap both in one transaction, or record the second write in the same store and dispatch it afterwards (a transactional outbox)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":6743}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76233a31b1cc21a92a127a228efa5c7cc8e9846cdff1c85cb0bb0442c8ae8c2"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 26/30 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060crates/openshell-extension-core\u0060, \u0060crates/openshell-prover-cli\u0060, \u0060sdk/typescript\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060Client::builder(TokioExecutor\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":1490}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5fa7dca92cfebabdc1e3d22adbf89620ba46516188c9230c3359ffff525ae49"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::ClientBuilder::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/oidc_auth.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"124415a470b199ad245f91177a4d3b6c199e7d1ffb1032eade59aab64c00ef44"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::ClientBuilder::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sdk/src/oidc.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7b41de3e6b6552a83ffffea8d2814d38adffeaa8bbd5292acc0d2a9ca8cabf"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060invoke_codex\u0060 is async and calls subprocess.run \u2014 a blocking call inside async code stalls the event loop \u2014 every other task on it waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tasks/scripts/codex_compatibility.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"42383b6b1ab7cee536e45473a0d90180ce54cf0478bb0a7ccbf273c8764e2ddd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): sdk/typescript/src/client.ts:1089 \u00B7 sdk/typescript/src/client.ts:1174 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f6e58e3a4ca4481e82761074deb5c18012e4460e617caa377d1aa2ebe194ea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): sdk/typescript/src/client.ts:1937 \u00B7 sdk/typescript/src/client.ts:1954 \u2014 both copies are in the same file, so extract the block 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":"sdk/typescript/src/client.ts"},"region":{"startLine":1937}}}],"partialFingerprints":{"codehealthFindingId/v1":"53af6b66c8e35894750da9ffc48f694e475fc29cc9f213cf6af3d157ed1403d2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): sdk/typescript/src/client.ts:1235 \u00B7 sdk/typescript/src/client.ts:1262 \u2014 both copies are in the same file, so extract the block 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":"sdk/typescript/src/client.ts"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee20e42a8fbe317502864340f3492066c1420d760327335d00d9e03752a3b77"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): sdk/typescript/src/client.ts:1139 \u00B7 sdk/typescript/src/client.ts:1281 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef6dc77046d00e528a851d363e2783023a00b135429a6c77129e38c21b68bd5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): sdk/typescript/src/client.ts:782 \u00B7 sdk/typescript/src/client.ts:799 \u2014 both copies are in the same file, so extract the block 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":"sdk/typescript/src/client.ts"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"695cfd29e01228a19bf42dc1e0ca7c775e5370c34fd34b2fcbea1e9a846c12d1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): sdk/typescript/src/client.ts:1292 \u00B7 sdk/typescript/src/client.ts:1977 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1292}}}],"partialFingerprints":{"codehealthFindingId/v1":"e70de7fc4eee0be3ae15dd2204d7a54ffc592e17d65360d210f94204c27635c1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): sdk/typescript/src/client.ts:2098 \u00B7 sdk/typescript/src/providers.ts:29 \u2014 the two spans are one implementation copied and then locally edited \u2014 58 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":2098}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ae4c11f9f7513fb0d807c08b902102860fdfe3918b2f02c4da7a69d6a51726"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): sdk/typescript/src/client.ts:1345 \u00B7 sdk/typescript/src/client.ts:1368 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"841819a2c822bc87709f64b8239c0b208c539d911cfaa24125f4c09254cad267"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): sdk/typescript/src/client.ts:1324 \u00B7 sdk/typescript/src/client.ts:1355 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7e8602570498a8c5724b6dd223cd893eb9d6a8be4cb57e9f2b047f97271f54"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): fern/components/CustomFooter.tsx:70 \u00B7 fern/components/CustomFooter.tsx:76 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fern/components/CustomFooter.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6435a7c966fb28f6399155f13e998b5030a5dd22c7a386ca08297629f4016cc9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getCredentials (cyclomatic 24, cognitive 17): getCredentials has cyclomatic complexity 24 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/providers.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ce94036e4e6d74fff32d8cf178707b671b6c5031f156f7388ea5a1d5053b1b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function watchLogs (cyclomatic 21, cognitive 31): watchLogs has cyclomatic complexity 21 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"5776043922216f0ef86bf463d4a02ebfff6dbe8f8927ca4737751effb9d3c0b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateSshResponse (cyclomatic 18, cognitive 14): validateSshResponse has cyclomatic complexity 18 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/ssh-validate.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a0c33d225b9dfa76a67af90e2cfb7d0de257538a1c8e4e36a44042d7760c94"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function receive (cyclomatic 15, cognitive 16): receive has cyclomatic complexity 15 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1616}}}],"partialFingerprints":{"codehealthFindingId/v1":"08302cca3df289a6ceef2dd61eecb0fdf2acf7190af1f68c2e08f008b481c094"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function execInteractive (cyclomatic 15, cognitive 14): execInteractive has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ffc40f9237a8538faa5cf12e55374fd0f85d41298466f66914b94330eae9b1c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function execStream (cyclomatic 15, cognitive 13): execStream has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37b35dc040942d514248259e30bc7eefb7839dfe890c74795272d824b7a3c65"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 11): (anonymous) has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.test.ts"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f1897e0de3160dbf78933b402d603c4dadc9a6b71ca912d44ff222883de904"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function waitReady (cyclomatic 12, cognitive 19): waitReady has cyclomatic complexity 12 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"1296678280c4265411b2fa7018d237c5df3463881077026fc89cb0abe924966d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function evaluate (cyclomatic 12, cognitive 15): evaluate has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tasks/scripts/check_issue_acceptance.cjs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"b461e6692b4f3c8f7945e5fba46bdab89dc8475ff0fc3b52253bf420655ca1a1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function forwardConnection (cyclomatic 12, cognitive 13): forwardConnection has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1824}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abc088710297d8803178b00d3e5242b1490afa020e57fb8c26d8d02f2f03ca6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function #exchange (cyclomatic 12, cognitive 12): #exchange has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/oidc.ts"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5e994f07bed3d607b0b808b18a7e963706127fe6465c254248a47cc5e3f4c6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function create (cyclomatic 12, cognitive 11): create has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f614823e710503ce734e5a308c0f410eada8fe17c010b622ad14bcbf1d1331"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function forward (cyclomatic 11, cognitive 13): forward has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a8d486749f622aa45ed66128baa77312b9a0028670af382313022419412027"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sandboxRef (cyclomatic 11, cognitive 10): sandboxRef has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"5025c143e80900d1a24984153b91982df6bc9a2d7b7ab898923071aef62ee0b8"}},{"ruleId":"R3","level":"warning","message":{"text":"sdk/typescript/src/client.ts: 1954 lines of code: sdk/typescript/src/client.ts has 1954 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43be1b007749d1a436eea889cc18bcc725f01dafb0032d472dc2e064f0b2e0a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/lint-mermaid/lint-mermaid.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d604c8d43cb489a369027f16b4ce812c6b91f209eb0d2333db6f5053d3cff3ed"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fern/components/CustomFooter.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"151baf04f61ce84b25413e6f2a6aa0a893ab1e80013c397c258c6379d8748e2b"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@bufbuild/protoc-gen-es\u0027: Declared in sdk/typescript/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0277b412fd1aae889122a4701f3781bddef575fa46903c477f59559f45ddd4f3"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha2::Sha256::digest(\u2026)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/l7/rest.rs"},"region":{"startLine":2735}}}],"partialFingerprints":{"codehealthFindingId/v1":"690da299b1307a738643a55ba4719c99ae700f0bf4d4807a7bddbb243dab68f5"}},{"ruleId":"S1","level":"note","message":{"text":"Security headers incomplete: Set: Content-Security-Policy. Missing: Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options \u2014 the four headers that carry the points of this card\u0027s security-headers term (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options), 0.5 each.(\u22121.5 on this card.) The server: \u0060axum::serve(\u0060 (crates/openshell-server/src/lib.rs:993)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e9931804dbad8b1657857c9b88c05b8faeff182b6e2bb88641bd59bac687876e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060gwCfg.OIDCIssuer == \u0022\u0022 || gwCfg.OIDCClientID == \u0022\u0022\u0060 appears character-identically in 2 files \u2014 sdk/go/openshell/v1/oidc/device.go, sdk/go/openshell/v1/oidc/oidc.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/oidc/device.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb14e7019e691dc97308922e090519e1c6a1128a3e5f994e9c099cf94472aca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060resp.StatusCode != http.StatusOK || tokResp.Error != \u0022\u0022\u0060 appears character-identically in 2 files \u2014 sdk/go/openshell/v1/oidc/authcode.go, sdk/go/openshell/v1/oidc/credentials.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/oidc/authcode.go"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b90950c022ba43ae0447bb33e93bde0ef91e721596f915eacd9a5a6036137f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060spec.LogLevel != \u0022\u0022 || len(spec.Environment) \u003E 0 || spec.Template != nil || spec.GPU || spec.GPUCount != nil\u0060 appears character-identically in 2 files \u2014 sdk/go/openshell/v1/fake/sandbox.go, sdk/go/openshell/v1/sandbox_client.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/fake/sandbox.go"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ed73ab19e5a65f4cefa29b55c00873207b51b696b2978b49a80b0db94e5c59"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060host.startsWith(\u0027[\u0027) \u0026\u0026 host.endsWith(\u0027]\u0027)\u0060 appears character-identically in 2 files \u2014 sdk/typescript/src/ssh-validate.ts, sdk/typescript/src/transport.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/ssh-validate.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6158663fe22303896ae9146c97cac3fcb58891f2232d97f25b5516af263fcd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!exists || action == ExistingHeaderAction::Append\u0060 appears character-identically in 2 files \u2014 crates/openshell-supervisor-middleware/src/headers.rs, crates/openshell-supervisor-network/src/l7/rest.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/headers.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"581a0f9d48f1adfcc52ec5d2fe1bc6514f62c456322285433336952560ecf885"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!parsed.username().is_empty() || parsed.password().is_some()\u0060 appears character-identically in 2 files \u2014 crates/openshell-cli/src/commands/provider.rs, crates/openshell-core/src/driver_utils.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/provider.rs"},"region":{"startLine":2239}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c15af0d47b0fbc0f489d77ce98ef098bbb4fef30677d3f92541aeee8e5931a7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!proxy_secure \u0026\u0026 self.proxy_auth_allow_insecure != Some(true)\u0060 appears character-identically in 2 files \u2014 crates/openshell-core/src/config.rs, crates/openshell-driver-kubernetes/src/config.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/config.rs"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbf15ec6a42c9e12eac67abbeea94652d93853a25997bc3f5c3f33afb59cbb1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!request.sandbox_id.is_empty() \u0026\u0026 request.sandbox_id != sandbox.id\u0060 appears character-identically in 3 files \u2014 crates/openshell-driver-docker/src/lib.rs, crates/openshell-driver-vm/src/driver.rs, crates/openshell-server/src/compute/mod.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":3342}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18473e56998099df3de5c2c4736410eb60fc154628b591ebe4dd1b8414b8789"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!value.is_empty() \u0026\u0026 value.len() \u003C= 253 \u0026\u0026 !value.chars().any(char::is_whitespace)\u0060 appears character-identically in 2 files \u2014 crates/openshell-core/src/jwt.rs, crates/openshell-supervisor-control/src/controller.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/jwt.rs"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdfc970ed0a233ee64828d0e5de9907e30602eb2b6c24d732e18f542cff750fe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!value.is_finite() || value.fract() != 0.0\u0060 appears character-identically in 2 files \u2014 crates/openshell-driver-docker/src/lib.rs, crates/openshell-driver-podman/src/container.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/lib.rs"},"region":{"startLine":4047}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2395dd80ae312b039c2a718826b233ec6d7693302ca6bc415e37840d170e32"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(*first_label == \u0022*\u0022 || *second_label == \u0022*\u0022 || first_label == second_label) \u0026\u0026 host_pattern_labels_can_overlap(first_rest, second_rest)\u0060 appears character-identically in 2 files \u2014 crates/openshell-providers/src/profiles.rs, crates/openshell-server/src/grpc/provider.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":3602}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a849de8d3740d59aa8add9836963e96f69de1ba633fb1b8f9ad07f2ab6d461"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060attachment_expected || state.active != 0\u0060 appears character-identically in 2 files \u2014 crates/openshell-sandbox/src/main_session.rs, crates/openshell-supervisor-process/src/main_session.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/main_session.rs"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"969223c5d92deeb165b3e08c3a0635820ee3ed4267d7cec97a55736151d0654f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060attribute.key.as_str() == \u0022rpc.method\u0022 \u0026\u0026 attribute.value.to_string() == \u0022openshell.compute.v1.ComputeDriver/GetCapabilities\u0022\u0060 appears character-identically in 3 files \u2014 crates/openshell-driver-docker/src/tests.rs, crates/openshell-driver-kubernetes/src/grpc.rs, crates/openshell-driver-podman/src/grpc.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/tests.rs"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e845bf6c620dbcc97df6da16b529bf41d9628d28a38414b8e1abf9d03d27720"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060attribute.key.as_str() == \u0022rpc.response.status_code\u0022 \u0026\u0026 attribute.value.to_string() == \u0022INVALID_ARGUMENT\u0022\u0060 appears character-identically in 2 files \u2014 crates/openshell-driver-docker/src/tests.rs, crates/openshell-driver-podman/src/grpc.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/tests.rs"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50e2d74e8f0738d3bc5cffd8f53a26185343c617da94a48c23780deebf9dafb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060attribute.key.as_str() == \u0022rpc.response.status_code\u0022 \u0026\u0026 attribute.value.to_string() == \u0022OK\u0022\u0060 appears character-identically in 4 files \u2014 crates/openshell-driver-docker/src/tests.rs, crates/openshell-driver-kubernetes/src/grpc.rs, crates/openshell-driver-podman/src/grpc.rs, crates/openshell-otel/src/grpc.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-docker/src/tests.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c077705551eee48bf2e79585133c115a00ba9a8ab85ba6045886c27bcc7f07c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060condition.r#type == \u0022Ready\u0022 \u0026\u0026 condition.status.eq_ignore_ascii_case(\u0022false\u0022)\u0060 appears character-identically in 2 files \u2014 crates/openshell-cli/src/commands/common.rs, crates/openshell-cli/src/run.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/common.rs"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb84ba7300e2ac1ce265b51601ee7209fdcc303c2c79dba4a995b7059df0b84"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060condition.r#type == \u0022Ready\u0022 \u0026\u0026 condition.status.eq_ignore_ascii_case(\u0022false\u0022) \u0026\u0026 condition.reason == \u0022ContainerExited\u0022\u0060 appears character-identically in 2 files \u2014 crates/openshell-cli/src/run.rs, crates/openshell-driver-docker/src/lib.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec490a40f6207bab83ca2ef0c6068ce0b39a36a0d5b989a30b8b94b59287614e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060condition.r#type == \u0022Ready\u0022 \u0026\u0026 condition.status.eq_ignore_ascii_case(\u0022false\u0022) \u0026\u0026 condition.reason == \u0022MainProcessFailed\u0022\u0060 appears character-identically in 2 files \u2014 crates/openshell-cli/src/run.rs, crates/openshell-server/src/compute/mod.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/run.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8927fdd96ff5e00dd1eb58720576198cd91439248c454cc6987fac8940d0a2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060denial.l7_inspection_active || !denial.l7_request_samples.is_empty()\u0060 appears character-identically in 2 files \u2014 crates/openshell-sandbox/src/mechanistic_mapper.rs, crates/openshell-supervisor/src/mechanistic_mapper.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/mechanistic_mapper.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60485a60cc0127a79531ec18b5010d4131ef3887a7a1842f9171c5aa102267a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060endpoint.host == \u0022api.github.com\u0022 \u0026\u0026 endpoint.protocol == \u0022graphql\u0022 \u0026\u0026 endpoint.path == \u0022/graphql\u0022 \u0026\u0026 endpoint.access == openshell_core::pro\u2026\u0060 appears character-identically in 2 files \u2014 crates/openshell-providers/src/profiles.rs, crates/openshell-server/src/grpc/policy.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-providers/src/profiles.rs"},"region":{"startLine":4047}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aac51a0f11a8df5a02a3af4d8bb3f4247e73e789b0ce4ab922c5fd039323ac0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err.message().contains(\u0022modified concurrently\u0022) || err.message().contains(\u0022resource_version\u0022)\u0060 appears character-identically in 3 files \u2014 crates/openshell-server/src/grpc/policy.rs, crates/openshell-server/src/grpc/provider.rs, crates/openshell-server/src/grpc/sandbox.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/policy.rs"},"region":{"startLine":25076}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c704a122271200d3b9656505a07fe300fa40525b2bb99d5cd19037c12bc1b6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060first == b\u0027_\u0027 || first.is_ascii_alphabetic()\u0060 appears character-identically in 2 files \u2014 crates/openshell-cli/src/commands/common.rs, crates/openshell-server/src/grpc/provider.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/common.rs"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8437a62faeef347c2c0c6cc31a60e18c8de2ed82ead2a6b91a7eda511788d3b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060first_label.contains(\u0022**\u0022) \u0026\u0026 first_label != \u0022**\u0022\u0060 appears character-identically in 2 files \u2014 crates/openshell-policy/src/lib.rs, crates/openshell-supervisor-network/src/l7/mod.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-policy/src/lib.rs"},"region":{"startLine":1696}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9664cdea9f88710d995ddbaab0918fe76139a9670d474dcc75cceabde729ec1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hex_only.len() \u003E= 16 \u0026\u0026 segment.len() == hex_only.len()\u0060 appears character-identically in 2 files \u2014 crates/openshell-sandbox/src/mechanistic_mapper.rs, crates/openshell-supervisor/src/mechanistic_mapper.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/mechanistic_mapper.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"9429e0cba14225d7d53b904feb4b40e8521befa4f4ba6dd02b906975470df5b8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hex_only.len() \u003E= 24 \u0026\u0026 segment.contains(\u0027-\u0027)\u0060 appears character-identically in 2 files \u2014 crates/openshell-sandbox/src/mechanistic_mapper.rs, crates/openshell-supervisor/src/mechanistic_mapper.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/mechanistic_mapper.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c12619bab9fade965b480813144927884bef915b33f06df3ed7fb6aa0143fb"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060prefix_navigation_paths\u0060 is public and takes \u0060value: object\u0060 from its caller, and it calls itself at line 284 (\u0060prefix_navigation_paths\u0060) with a piece of \u0060value\u0060 (and at line 287) \u2014 and nowhere in \u0060prefix_navigation_paths\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060prefix_navigation_paths\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tasks/scripts/sync_docs_website.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b945bd73de6a1e3bb78c837c304137fd32e6d0886947f6df00366b09c1d5a01"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1591}}}],"partialFingerprints":{"codehealthFindingId/v1":"337be67136f5e3944267181f56e2fcddd84e1d2ffbc6037cd12d8add1c4a2f4f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"099b31932f39aab630d9b15259772975e76eddd6c21a44d713208dcc0d2e671b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a9a6735ffa3a66446435bc438e9a82948025cd0f7b5f49cd2399965eae5e70"}},{"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":"sdk/typescript/src/transport.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c38d7070eab3be6ccfe90667f6718d2dc2a929e9d57d5d466454772eaad326"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := tl.acceptAndBridge(); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/go/openshell/v1/tcp_client.go"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"6686c7e8425e4098f59efaf3b699dc27e063d6f1465803fe726d0b4fbef50fe6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"python/openshell/__init__.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3c5683bc0e4bb4fd2e0959af224d525e9238ec38015a5e9a91b6f89b40e0aa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 644 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/ssh.rs"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d17cb3d3a836bf647f06bf78819c6d6b71d2b8d56348bf7a81015b669b8e363"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 658 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/ssh.rs"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f1dcbaf67aff6693f6f6d968a79ca29cdfcc02e121087a3278eccceba02370"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 939 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/ssh.rs"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe502ec61f218449cf5be664112cb9674242304c8ca9e3cb69c0c61b02427de2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1029 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/ssh.rs"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa4a6479cc939600feee2c4d746a82f8c3f27040cafa1ac6633b8e627e5b1f2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1210 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-process/src/ssh.rs"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3a1df6089928a8f4971ea28139e738c8b368f78c1338040c985066d5e787af"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 228 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/identity.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33c16855291007568f152bda6a6ec216948da642ee16d9c5dc2d1b9ea0a69b9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 236 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/identity.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"99314111ecaaf24b5fda6ac3cac0b36d17ddf30af2b9a7af3f6bd839ea1bd81b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 272 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/identity.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"d016467f7983d71065fc43446ca19a96ea00965dbddb7a234a38587dadbba330"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 2126 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":2126}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17bf1b814ea0b5be8e48e8413d0ad95a1fc88d34c906973505b2f1d24f46918"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 2529 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":2529}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1ba48f5902061253e79df18977ca59dc62216cceb50062bd0b9fb993a04145"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 2536 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":2536}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e730d54a19fffa4ab9c27379ab2b76c350592c82fdf737ccb86f5e83cf358f3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2542 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":2542}}}],"partialFingerprints":{"codehealthFindingId/v1":"a79e13678c31d2b282be3ba65aee2a9ba43ed777ca87cd24b0a0a6fc6b2d31d5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2551 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":2551}}}],"partialFingerprints":{"codehealthFindingId/v1":"208d9e48d91a3d87af45ac792f608643edb441e6073dd4b4bf64c60b1eb55827"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2560 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/opa.rs"},"region":{"startLine":2560}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c83ba2ee11dc86a584a2421ce7654965751d99e843606d723b16681c6d00171"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 593 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/procfs.rs"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0242ca2c41f0518fe8e8f9558c9ed5b4968896227e286ce83838423eb6aa443"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 4130 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":4130}}}],"partialFingerprints":{"codehealthFindingId/v1":"473e155fb4f45566312e1b5bbd3ea866a0542c82ae6a68efeff5ab795e293c44"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 4288 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":4288}}}],"partialFingerprints":{"codehealthFindingId/v1":"2391eef74e70abf767747c6bb6670803d0cd501810a5980bf0a9c48a42326570"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 393 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/run.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff52a2e35ef2dbd4b72763db62ab9840c00c3d4a50fe0f75f8c102cb2a1d234e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 409 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/run.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"540c5eaab1bca25f3f20ce7a96e5127b0c502c7fd79c288a298d7e92853bf07d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 60 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/binding_policy.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dceae2d7cc1c27ec87c383ae0be2a6b97eafa8846c4eb637f2fde15a0e5cfc5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 84 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-middleware/src/binding_policy.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03463f20ce76d955c7e9831f795b403e4e87930b16df5cb811c40268b603cb3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2511 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/lib.rs"},"region":{"startLine":2511}}}],"partialFingerprints":{"codehealthFindingId/v1":"cecf1fe353d1ecdcc9332f404472dcb78cd1ea3baf91622fbcc7094f0bc865a8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 4044 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/lib.rs"},"region":{"startLine":4044}}}],"partialFingerprints":{"codehealthFindingId/v1":"109151872e79cc5e9c54379bd93d806ae02fcf4b66e732f8e00b33a10b42da10"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 947 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor/src/sandbox_instance_host.rs"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9ff2ea8c407deb3a80727dbd6a3eceda2525985c137184f290c19a44b025f8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 386 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/certgen.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb1d87258b9d2048c357775ed70afbfda87eaa45f3dc5f069d5ec792cf774c8f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 138 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/lib.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"586c2f165c8c5189ed79b00cdab6c264bb4bb0ac102fb2edae1e8adba5b2c1ca"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info!\u0060 at line 698 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060info!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/lib.rs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"803303266552edda330a155b92db43a4ba38fc8ef98bb5a0b03886c25576dd39"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 994 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/lib.rs"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3fb7273493aebae445cff13880c53c36ac65c2e56a521ae21f7797b45501b0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error!\u0060 at line 1016 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060error!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/lib.rs"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"188fe119d3b40ff90b72c051f963dc1e49e4b56a4b7f3cdb4ec8a69592e2b8ac"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 4218 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":4218}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae73cdbafac651e0828474b8319e40fbb216ff0903297282b3995c52db9214b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 4220 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/provider.rs"},"region":{"startLine":4220}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa1a5b22ab20b7cf6b5c7a8d3f72b88f659a9a96b5619a9dabf415f8005e428d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2726 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":2726}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2bc572909dd978f7bf4274fc3b0dc391cf740f93d98c649b57591e9e8ab891"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2731 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":2731}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f8d93c33eac986287da98efeeae10f209940791ece84dec3109267db4d2422"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 2738 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/grpc/sandbox.rs"},"region":{"startLine":2738}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7f0c598d0b621a62d49fbca9d183e98956ac709ea90da2283747544de9fe5c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 333 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/process.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"640ce8099f173be78e8fb863bd6d7b5600ac5d4c9db35ec29726cc4dab89b017"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 344 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-sandbox/src/process.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"833d7c856984750848f8b1d77681a053db705dc9ca5d7e9c2c13f895a68ee187"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1487 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/etw_consumer.rs"},"region":{"startLine":1487}}}],"partialFingerprints":{"codehealthFindingId/v1":"99361c6f10e28552e431ab581a6b1cb8d12954b94683652cacd49ae2560275fc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1496 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/etw_consumer.rs"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f86c960c0507f266a66b6c2bd792e3da8eeed0b77b6015426bda78cda11c678"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1516 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/etw_consumer.rs"},"region":{"startLine":1516}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbaa650b136e9bc9a127b23840a2d49e9352072fcf02d1ee89c1a8dc60d68acd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1629 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/etw_consumer.rs"},"region":{"startLine":1629}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a18c1b76bc4b26b70795b677af7b71b27a62c8a62115bdd185009bc13f43ea4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1657 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/etw_consumer.rs"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a45b3040f856b37b8ab6c1fecfba732fa0a561bf141224dbacfbbee36608f88"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1669 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-mxc/src/etw_consumer.rs"},"region":{"startLine":1669}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ab2acb9c9eb7c3c6b968125f67e9c0e0bd1d568161d77ed395fc82e53c80cb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 6528 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":6528}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed4f176bb40758f43b4f79cc81cedd1c54ad810f14863fefbae3e7acfc9c9ac"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 6532 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-driver-kubernetes/src/driver.rs"},"region":{"startLine":6532}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e606e7b448a8a11cd1a36eb65cd422fdef9bd87d1c801393984b5ba5dfd8aac"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 212 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/main.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2472a67321c853b6b8d637175d04170eb4eebbe96bf1ee2caaabd95922a6cb7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 437 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/oidc_auth.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2d929e2faeba884dd2a770b4dcb46808ccb74704958374ce66ceca78e6d0be"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 1524 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9760231d9112e79ca758b83113f7d4cb2087f82e4f60d020eb05daca0e7a27"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1540 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a7d6e98db1bbb43dd4d8a9798136888bfe68363ccc3c58dec3d8f118d0043e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1543 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":1543}}}],"partialFingerprints":{"codehealthFindingId/v1":"0985be9889df666a129b319d70bf982519319301040cc83e410eb395b21f0ade"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1546 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fe8d9360cf61fc8447e741b7bffcce6a8560a7d07ff180e453dcffe1b83bba"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1549 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":1549}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f6642dd6ebbbdf499f329ad3b131b8b58f192fcb79c4b7c7dab59baf2f36e7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug!\u0060 at line 1554 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060debug!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/gateway.rs"},"region":{"startLine":1554}}}],"partialFingerprints":{"codehealthFindingId/v1":"874cac45a89545548a00f99ae18d4339c369c262b690533951a186021d439782"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) reduce the strict null checking score: ~1.0 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 3 assertion(s) across the 3105 source line(s) of the 11 TypeScript file(s) read, which is the only code the operator asserts anything in (a \u0060!\u0060 in a \u0060.js\u0060 file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: sdk/typescript/src/client.ts (3). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"edb251d0f8dd1deb75ff6fa12d145c3d5c948a70b0aaf8da052107c857335979"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060format_epoch_ms\u0060 turns every \u0060Err\u0060 into \u0060\u0022-\u0022.to_string()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/commands/common.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"364f218016836128880538ed2cce7b7116674cf013621b9ecdd9c8cd9eda93d9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060complete_gateway_names\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/completers.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3948ff1ce6b9dca5f75d2ccf6fb1847206deee68703f26051295e6355a43785"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060workspace_from_args\u0060 turns every \u0060Err\u0060 into \u0060\u0022default\u0022.to_string()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-cli/src/completers.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbaf2508e39afd5c363e5ccbcddbd1d3788553a93823db0549d766b4102c6c08"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060stop_forwards_for_sandbox\u0060 turns every \u0060Err\u0060 into \u0060Ok(Vec::new())\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/forward.rs"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4fa9e8f4d10bf769109a86d63d51ecd7c5dde50710d8ad7c1710e999c190cf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060list_forwards\u0060 turns every \u0060Err\u0060 into \u0060Ok(Vec::new())\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-core/src/forward.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"e80b2e43915119f837277126f597fe03a1ed8fe708238be01ae6369dca42d172"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060detected_version\u0060 turns every \u0060Err\u0060 into \u0060\u0022unavailable\u0022.to_string()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-server/src/config_file.rs"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"2526ac879c9a8585752076b31cbefeb0c44c26c3e8e87dfd7af88da359a610d2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060read_recent_denial_lines\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/policy_local.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"9945c959966294c905334375b1fc06455fb86bb8f35d8a2d99593d79b96f67b8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060cmdline_absolute_paths\u0060 turns every \u0060Err\u0060 into \u0060vec![]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/procfs.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"f748b46e7aaa09cc3dbcd333b9b10c4fe0fecea6d0b7d60e418c79f1ae7d91a7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060forward_telemetry_path\u0060 turns every \u0060Err\u0060 into \u0060\u0022/[INVALID_REQUEST_TARGET]\u0022.to_string()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/openshell-supervisor-network/src/proxy.rs"},"region":{"startLine":4857}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ec804bd0e4aea165f9ba87f2772f611a4cd4ffbecb54f0a1b6b30376e95769"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.html"},{"id":"CWE-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.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-345","guid":"d80d4b65-bbbe-b65d-958e-7ac466af18f9","name":"Insufficient Verification of Data Authenticity","shortDescription":{"text":"Insufficient Verification of Data Authenticity"},"helpUri":"https://cwe.mitre.org/data/definitions/345.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-502","guid":"f7d3b296-aac0-5c5a-b706-e07faba26c36","name":"Deserialization of Untrusted Data","shortDescription":{"text":"Deserialization of Untrusted Data"},"helpUri":"https://cwe.mitre.org/data/definitions/502.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-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-668","guid":"e2cb99db-6d24-b056-b0d0-885a733ec403","name":"Exposure of Resource to Wrong Sphere","shortDescription":{"text":"Exposure of Resource to Wrong Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/668.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-88","guid":"32dec161-013d-ac58-8599-1309e12e67f5","name":"Improper Neutralization of Argument Delimiters in a Command (\u0027Argument Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Argument Delimiters in a Command (\u0027Argument Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/88.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-939","guid":"12397742-f2c4-8254-8012-482c3356c551","name":"CWE-939","shortDescription":{"text":"CWE-939"},"helpUri":"https://cwe.mitre.org/data/definitions/939.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":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"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/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"}]}],"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":79,"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."]}]}