{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"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":"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":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"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":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"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":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"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":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"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":"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":"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":"rusty_claude_cli::parse_args (cyclomatic 153): rusty_claude_cli::parse_args has cyclomatic complexity 153 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 15 of the 52 functions over the threshold \u2014 including the worst \u2014 and 357 of the 638 points over it (56%), 4.3\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 83). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6b2853cd137c3cc910ad5202360828ddd1cd708d9603850372f049b753f33a"}},{"ruleId":"D1","level":"warning","message":{"text":"rusty_claude_cli::classify_error_kind (cyclomatic 70): rusty_claude_cli::classify_error_kind has cyclomatic complexity 70 (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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 15 of the 52 functions over the threshold \u2014 including the worst \u2014 and 357 of the 638 points over it (56%), 4.3\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 83). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"02cf497301de81bdddbb3a5c34605bc364516315451dc9ad8f017e252d875be6"}},{"ruleId":"D1","level":"warning","message":{"text":"rusty_claude_cli::parse_single_word_command_alias (cyclomatic 69): rusty_claude_cli::parse_single_word_command_alias has cyclomatic complexity 69 (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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 15 of the 52 functions over the threshold \u2014 including the worst \u2014 and 357 of the 638 points over it (56%), 4.3\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 83). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":2333}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5f3cfeba2c576ce17514a82a889ff44783862acd3408b64d59e62470f5365d"}},{"ruleId":"D1","level":"warning","message":{"text":"claw_analog::dispatch_tool (cyclomatic 65): claw_analog::dispatch_tool has cyclomatic complexity 65 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"866bab14f27e2cac8ec7f304e36c441d7b427ac4c5c9a27a3bbd30d44eef1d0f"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalRenderer::render_event (cyclomatic 46): TerminalRenderer::render_event has cyclomatic complexity 46 (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":"rust/crates/rusty-claude-cli/src/render.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4cf8b53a55823c6f1152d0da86fa05c53ee69f554a62f0510c5f2a071cd9dd8"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveCli::handle_repl_command (cyclomatic 45): LiveCli::handle_repl_command has cyclomatic complexity 45 (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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 15 of the 52 functions over the threshold \u2014 including the worst \u2014 and 357 of the 638 points over it (56%), 4.3\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 83). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":8380}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba7a84067b135848c055953ff27ed0de6c678d4ec8102c0be4547ddada18bb9"}},{"ruleId":"D1","level":"warning","message":{"text":"ConversationRuntime::run_turn (cyclomatic 37): ConversationRuntime::run_turn 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":"rust/crates/runtime/src/conversation.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"44dc12cb948fa67b9787a50b17591c6aa2e27b69a0e611a781c10808ecb7a105"}},{"ruleId":"D1","level":"warning","message":{"text":"rusty_claude_cli::run_resume_command (cyclomatic 37): rusty_claude_cli::run_resume_command has cyclomatic complexity 37 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 15 of the 52 functions over the threshold \u2014 including the worst \u2014 and 357 of the 638 points over it (56%), 4.3\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 83). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":6615}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0044228cfed6be12c3eaa47dda7309e6a8bf73a82b914fbf52cbc19be993c0f"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 35): main.main has cyclomatic complexity 35 (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":"src/main.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e49487d5c99a2f09dfaa9509386ded5285effb383fa52ffc1e9e8ffaf11aa3"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicRuntimeClient::consume_stream (cyclomatic 33): AnthropicRuntimeClient::consume_stream 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 15 of the 52 functions over the threshold \u2014 including the worst \u2014 and 357 of the 638 points over it (56%), 4.3\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 83). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":13393}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c744972b8bd492d68beb73d96d23b7559eb26ab3131a7fc06309b48c88ba295"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveCli::run_turn (cyclomatic 29): LiveCli::run_turn 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. This is NOT this file\u0027s highest cyclomatic complexity: rusty_claude_cli::run (cyclomatic 31) 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 15 of the 52 functions over the threshold \u2014 including the worst \u2014 and 357 of the 638 points over it (56%), 4.3\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 83). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":8020}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b993f5c4cacbad35791b8ad89c4ae8a2c631f82d426f53ba1dab569ca15e2a2"}},{"ruleId":"D1","level":"warning","message":{"text":"claw_analog::dispatch_grep_workspace (cyclomatic 27): claw_analog::dispatch_grep_workspace 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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":1827}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4bf6d7ad564d92bd9778272410a1d1250b1c15950f5568003011d4cec8a7c5"}},{"ruleId":"D1","level":"warning","message":{"text":"claw_analog::stream_to_message_response (cyclomatic 25): claw_analog::stream_to_message_response 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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":1428}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6525c244e9e98669da8f4db101d10372a218edca37a5fddf7b930582dc8a2b8"}},{"ruleId":"D1","level":"warning","message":{"text":"commands::handle_skills_slash_command_json (cyclomatic 25): commands::handle_skills_slash_command_json 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. This is NOT this file\u0027s highest cyclomatic complexity: commands::validate_slash_command_input (cyclomatic 74) 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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2868}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0977742be2c02542eb6b4e07e65c55c49334b94f6a471f1c1079d7658303c8"}},{"ruleId":"D1","level":"warning","message":{"text":"sdk::transport::run_client (cyclomatic 25): sdk::transport::run_client 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":"rust/crates/sdk/src/transport.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d01f8d078d9e532f576194aefee1b5372e8727bc7553f64a6febc3d6e51067"}},{"ruleId":"D1","level":"warning","message":{"text":"commands::handle_skills_slash_command (cyclomatic 24): commands::handle_skills_slash_command has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: commands::validate_slash_command_input (cyclomatic 74) 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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2732}}}],"partialFingerprints":{"codehealthFindingId/v1":"943586d748333d3eadca03e1b26cda5e23978aa7607beb5fae811fe6509ac49c"}},{"ruleId":"D1","level":"warning","message":{"text":"mock_anthropic_service::build_stream_body (cyclomatic 24): mock_anthropic_service::build_stream_body has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This shape REPEATS in the file: one other method here (mock_anthropic_service::build_message_response) 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":"rust/crates/mock-anthropic-service/src/lib.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9edbea32fdec71ae003e3d3c7d83578bef161a05f62c57737357fab34ccadd0"}},{"ruleId":"D1","level":"warning","message":{"text":"mock_anthropic_service::build_message_response (cyclomatic 24): mock_anthropic_service::build_message_response has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This shape REPEATS in the file: one other method here (mock_anthropic_service::build_stream_body) 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":"rust/crates/mock-anthropic-service/src/lib.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"547ab471c145dfc12622d2543836bb2b49c375435ad16a83676a56baf3f7e3dc"}},{"ruleId":"D1","level":"warning","message":{"text":"ApiError::fmt (cyclomatic 23): ApiError::fmt 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":"rust/crates/api/src/error.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45e493890e28e85eef58750c9c1774ab207e66214087b3f1ba9d4f04c56f599"}},{"ruleId":"D1","level":"warning","message":{"text":"claw_analog::agents::parse_agent_spec (cyclomatic 22): claw_analog::agents::parse_agent_spec has cyclomatic complexity 22 (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":"rust/crates/claw-analog/src/agents.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"6832b30fc7c772e4683031afe8d20bb8489e8491ab23b3a94dc22c1e10a2dc7f"}},{"ruleId":"D1","level":"warning","message":{"text":"commands::render_mcp_report_json_for (cyclomatic 22): commands::render_mcp_report_json_for 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. This is NOT this file\u0027s highest cyclomatic complexity: commands::validate_slash_command_input (cyclomatic 74) 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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":3283}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96f8826704b20e2a2124e94ede8dbc36a14d632697f66fdf9b0bab3d8227feb"}},{"ruleId":"D1","level":"warning","message":{"text":"claw_analog::resolve_analog_options (cyclomatic 21): claw_analog::resolve_analog_options 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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f195ae30727b899113056d71aff21624d9bd34ca99c603978c879e528d161ff"}},{"ruleId":"D1","level":"warning","message":{"text":"rusty_claude_cli::parse_direct_slash_cli_action (cyclomatic 21): rusty_claude_cli::parse_direct_slash_cli_action 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. This is NOT this file\u0027s highest cyclomatic complexity: rusty_claude_cli::run (cyclomatic 31) 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 15 of the 52 functions over the threshold \u2014 including the worst \u2014 and 357 of the 638 points over it (56%), 4.3\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 83). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":2590}}}],"partialFingerprints":{"codehealthFindingId/v1":"364eaac04a24900c48f46c0f4f75e2de937be414a49689ea06a7b9d9458da72a"}},{"ruleId":"D1","level":"warning","message":{"text":"tools::extract_selection_outcome (cyclomatic 21): tools::extract_selection_outcome 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. This is NOT this file\u0027s highest cyclomatic complexity: tools::execute_tool_with_enforcer (cyclomatic 58) 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":"rust/crates/tools/src/lib.rs"},"region":{"startLine":4852}}}],"partialFingerprints":{"codehealthFindingId/v1":"24fda570586e0d65f680dd2f457befbe2bdb204f611668a07fe79cf9b4405fbe"}},{"ruleId":"D1","level":"warning","message":{"text":"tools::stream_with_provider (cyclomatic 21): tools::stream_with_provider 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. This is NOT this file\u0027s highest cyclomatic complexity: tools::execute_tool_with_enforcer (cyclomatic 58) 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":"rust/crates/tools/src/lib.rs"},"region":{"startLine":5405}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb97810203b47ccdf2f17866e6e3762c2670a9adafce4aa4123837d3713314a6"}},{"ruleId":"D1","level":"warning","message":{"text":"claw_analog::run (cyclomatic 20): claw_analog::run 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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"164618bef3b23d6ceb22f6283275104f522129e132ea84c7a520c9fb751187fc"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveCli::print_plugins (cyclomatic 20): LiveCli::print_plugins 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. This is NOT this file\u0027s highest cyclomatic complexity: rusty_claude_cli::run (cyclomatic 31) 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 15 of the 52 functions over the threshold \u2014 including the worst \u2014 and 357 of the 638 points over it (56%), 4.3\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 83). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":8986}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd9aa925670b465008a754571eabe11219b44e4361d1f6f0b77080f0195da45"}},{"ruleId":"D1","level":"warning","message":{"text":"tools::classify_lane_failure (cyclomatic 20): tools::classify_lane_failure 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. This is NOT this file\u0027s highest cyclomatic complexity: tools::execute_tool_with_enforcer (cyclomatic 58) 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":"rust/crates/tools/src/lib.rs"},"region":{"startLine":5252}}}],"partialFingerprints":{"codehealthFindingId/v1":"772d4b439c6f44a4da0b412d785d51e951474e07838f5ec731444476e433395f"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamState::ingest_chunk (cyclomatic 19): StreamState::ingest_chunk 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":"rust/crates/api/src/providers/openai_compat.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ded41da4f1114006ac75b3a0bcb5a0e5d182346ca44c9bb717c42fe23bdbb27"}},{"ruleId":"D1","level":"warning","message":{"text":"api::providers::openai_compat::build_chat_completion_request_for_base_url (cyclomatic 19): api::providers::openai_compat::build_chat_completion_request_for_base_url 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":"rust/crates/api/src/providers/openai_compat.rs"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"b181f041c2d3698bee2837e9f71a632c85f8002c2132df6f987734c65f2b02cc"}},{"ruleId":"D1","level":"warning","message":{"text":"rusty_claude_cli::main (cyclomatic 19): rusty_claude_cli::main 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: rusty_claude_cli::run (cyclomatic 31) 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 15 of the 52 functions over the threshold \u2014 including the worst \u2014 and 357 of the 638 points over it (56%), 4.3\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 83). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"4966a7ae73a9944eb1f73a2d61762907e38253f5f38f26be72a6bb82bd7ce60d"}},{"ruleId":"D1","level":"warning","message":{"text":"claw_analog::main (cyclomatic 18): claw_analog::main 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":"rust/crates/claw-analog/src/main.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ae92f15fe009331ba68fbf39f287128b0bb49444b5c7d210d6886dfa325c6b"}},{"ruleId":"D1","level":"warning","message":{"text":"commands::handle_agents_slash_command_json (cyclomatic 18): commands::handle_agents_slash_command_json has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: commands::validate_slash_command_input (cyclomatic 74) 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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2568}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c7bffad185e2f19d2e5a7c769a9e9315d08c30d5c7088d60b8fbcce679a5a9"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime::hooks::parse_hook_output (cyclomatic 18): runtime::hooks::parse_hook_output 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":"rust/crates/runtime/src/hooks.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f1b21a91c87c6abdec13dba6036a1a1a384426b5aa118d8fed2d0288963ede"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime::json::parse_string (cyclomatic 18): runtime::json::parse_string 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":"rust/crates/runtime/src/json.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d04dd2dc3e6a5f69eed6bd14dbb8445dde1a18e6e67e8dfe1aa891943b7a3a0"}},{"ruleId":"D1","level":"warning","message":{"text":"rusty_claude_cli::resume_session (cyclomatic 18): rusty_claude_cli::resume_session has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: rusty_claude_cli::run (cyclomatic 31) 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 15 of the 52 functions over the threshold \u2014 including the worst \u2014 and 357 of the 638 points over it (56%), 4.3\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 83). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":5169}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f83338dc54aa5478aca4c1457e86216b51e16bed542ed2981cd88a572809da"}},{"ruleId":"D1","level":"warning","message":{"text":"rusty_claude_cli::render_config_json (cyclomatic 18): rusty_claude_cli::render_config_json 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. This is NOT this file\u0027s highest cyclomatic complexity: rusty_claude_cli::run (cyclomatic 31) 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 15 of the 52 functions over the threshold \u2014 including the worst \u2014 and 357 of the 638 points over it (56%), 4.3\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 83). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":11173}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2264a261cb9d085391a462a40dab2737613620a50af96aad340d2fbfce10f8"}},{"ruleId":"D1","level":"warning","message":{"text":"tools::has_dangerous_paths (cyclomatic 18): tools::has_dangerous_paths has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: tools::execute_tool_with_enforcer (cyclomatic 58) 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":"rust/crates/tools/src/lib.rs"},"region":{"startLine":2346}}}],"partialFingerprints":{"codehealthFindingId/v1":"2661f3c925823e65f6061905fe5ee4b74f6cce803344074e3435151166660c22"}},{"ruleId":"D1","level":"warning","message":{"text":"tools::pdf_extract::extract_parenthesized_string (cyclomatic 18): tools::pdf_extract::extract_parenthesized_string 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":"rust/crates/tools/src/pdf_extract.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1de0b274f663d2248e97a3874445b301a29b01ddc687233d7b85cef3a65cc77"}},{"ruleId":"D1","level":"warning","message":{"text":"commands::handle_agents_slash_command (cyclomatic 17): commands::handle_agents_slash_command 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: commands::validate_slash_command_input (cyclomatic 74) 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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2467}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fdea9e0bd669f21c02dd6032dd0fe9f89dd915242957a59f0d99e17bf5c54d"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime::task_packet::validate_packet (cyclomatic 17): runtime::task_packet::validate_packet 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":"rust/crates/runtime/src/task_packet.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"62791d80efd98f831be0bcbcf2043275b133f8152cd270e37bf74edce799e3b2"}},{"ruleId":"D1","level":"warning","message":{"text":"rusty_claude_cli::render_config_report (cyclomatic 17): rusty_claude_cli::render_config_report 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. This is NOT this file\u0027s highest cyclomatic complexity: rusty_claude_cli::run (cyclomatic 31) 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 15 of the 52 functions over the threshold \u2014 including the worst \u2014 and 357 of the 638 points over it (56%), 4.3\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 83). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":11068}}}],"partialFingerprints":{"codehealthFindingId/v1":"c993f011d70969ce2ac9023ae619f11638d2425d796e0b364f1183963deba77e"}},{"ruleId":"D1","level":"warning","message":{"text":"rusty_claude_cli::render_session_markdown (cyclomatic 17): rusty_claude_cli::render_session_markdown 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: rusty_claude_cli::run (cyclomatic 31) 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 15 of the 52 functions over the threshold \u2014 including the worst \u2014 and 357 of the 638 points over it (56%), 4.3\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 83). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":12256}}}],"partialFingerprints":{"codehealthFindingId/v1":"68658b78e62549d0f03845f090372ac55be64930d571c6ee0d771aaff88a90ed"}},{"ruleId":"D1","level":"warning","message":{"text":"rusty_claude_cli::render::normalize_nested_fences (cyclomatic 17): rusty_claude_cli::render::normalize_nested_fences has cyclomatic complexity 17 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/render.rs"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"10124e0802b0aa7edd3fcf761a37142590d3c3457e84bb7291a893245fec89b4"}},{"ruleId":"D1","level":"warning","message":{"text":"claw_rag_service::ingest::run_ingest (cyclomatic 16): claw_rag_service::ingest::run_ingest 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":"rust/crates/claw-rag-service/src/ingest.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea177a529a00e994d05dc426325ea6b01f10cc71cfdb95446d33d81e6d0f8d1a"}},{"ruleId":"D1","level":"warning","message":{"text":"commands::handle_plugins_slash_command (cyclomatic 16): commands::handle_plugins_slash_command has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: commands::validate_slash_command_input (cyclomatic 74) 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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2314}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3513d2a7da17c0845afeb28f7cb22b2cc1390db18101fc8f9443d1fda712b7d"}},{"ruleId":"D1","level":"warning","message":{"text":"commands::render_mcp_report_for (cyclomatic 16): commands::render_mcp_report_for 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: commands::validate_slash_command_input (cyclomatic 74) 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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":3193}}}],"partialFingerprints":{"codehealthFindingId/v1":"803ae188b26c0144f136c413dd0311757f46dd3cbe3994d129083940b2202b9e"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime::file_ops::grep_search_impl (cyclomatic 16): runtime::file_ops::grep_search_impl 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":"rust/crates/runtime/src/file_ops.rs"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b41c8c1d6a34e34bac4d5de5306540ed04dc0b05643af1b0eedae164da755f"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime::trident::stage3_cluster (cyclomatic 16): runtime::trident::stage3_cluster 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":"rust/crates/runtime/src/trident.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb65b48de220d64bfa3bbb9d65f305e474113e955f7d322fd1d5ed4290cc38ac"}},{"ruleId":"D1","level":"warning","message":{"text":"rusty_claude_cli::parse_git_workspace_summary (cyclomatic 16): rusty_claude_cli::parse_git_workspace_summary has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: rusty_claude_cli::run (cyclomatic 31) 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 15 of the 52 functions over the threshold \u2014 including the worst \u2014 and 357 of the 638 points over it (56%), 4.3\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 83). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":6386}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac0c49e0ffb60ade7ee771fae6aefe962210c28b94856970989102d41bbc719"}},{"ruleId":"D1","level":"warning","message":{"text":"tools::pdf_extract::extract_bt_et_text (cyclomatic 16): tools::pdf_extract::extract_bt_et_text 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":"rust/crates/tools/src/pdf_extract.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"51124f48211181096eec2c2f55ae02be1cc1ee11129f82b5ffa139f2bf007f3c"}},{"ruleId":"D1","level":"warning","message":{"text":"run_mock_parity_diff.main (cyclomatic 16): run_mock_parity_diff.main 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":"rust/scripts/run_mock_parity_diff.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"3683cea54de60e9afd8cca09a27851d636ebac655c5ea198715e03310ed632ee"}},{"ruleId":"D2","level":"warning","message":{"text":"rusty_claude_cli::parse_args (cognitive 155): rusty_claude_cli::parse_args has cognitive complexity 155 (threshold 15). Drivers by points: if/else 60 (121 pts), boolean chains 17, match/switch 6 (16 pts), loops 1 (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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 19 of the 105 functions over the threshold \u2014 including the worst \u2014 and 509 of the 1526 points over it (33%), 2.1\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 243). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"229758c781e4cde281ce6989186d5d5ca80e28f437650a09b049d748999a801e"}},{"ruleId":"D2","level":"warning","message":{"text":"claw_analog::dispatch_tool (cognitive 137): claw_analog::dispatch_tool has cognitive complexity 137 (threshold 15). Drivers by points: if/else 52 (117 pts), match/switch 7 (14 pts), loops 2 (6 pts) (nesting depth added 76). 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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd77191e2f17b278464d9858b4e6510b2089883aa7909931a1c55d967dc5d34"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationRuntime::run_turn (cognitive 85): ConversationRuntime::run_turn has cognitive complexity 85 (threshold 15). Drivers by points: if/else 28 (63 pts), match/switch 5 (15 pts), boolean chains 4, loops 2 (3 pts) (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":"rust/crates/runtime/src/conversation.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba7d1fe7f60d77512a39ed4e96bd0c590aa480c157e79fdb5da034fc8b133ba"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicRuntimeClient::consume_stream (cognitive 73): AnthropicRuntimeClient::consume_stream has cognitive complexity 73 (threshold 15). Drivers by points: if/else 20 (58 pts), match/switch 3 (8 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 45). To reduce it, split the body into named stages: move each independent 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 file is where this pass\u0027s cognitive complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 19 of the 105 functions over the threshold \u2014 including the worst \u2014 and 509 of the 1526 points over it (33%), 2.1\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 243). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":13393}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6b7cf609a3b2903f967e24c9ce77f94dc3547df086f2c62e273573e4023e7a"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveCli::run_turn (cognitive 71): LiveCli::run_turn has cognitive complexity 71 (threshold 15). Drivers by points: if/else 20 (55 pts), boolean chains 8, match/switch 2 (5 pts), loops 1 (3 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 19 of the 105 functions over the threshold \u2014 including the worst \u2014 and 509 of the 1526 points over it (33%), 2.1\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 243). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":8020}}}],"partialFingerprints":{"codehealthFindingId/v1":"647174a035ffc3c9caac1c15e4d44db352701fafeb4cc33f3969a89d9f25d0fb"}},{"ruleId":"D2","level":"warning","message":{"text":"rusty_claude_cli::classify_error_kind (cognitive 70): rusty_claude_cli::classify_error_kind has cognitive complexity 70 (threshold 15). Drivers by points: if/else 50, boolean chains 20. 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 19 of the 105 functions over the threshold \u2014 including the worst \u2014 and 509 of the 1526 points over it (33%), 2.1\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 243). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e31d5469572769a0ec560f3563a1193ec445dcb71a8869e94abb93d57700117"}},{"ruleId":"D2","level":"warning","message":{"text":"rusty_claude_cli::main (cognitive 56): rusty_claude_cli::main has cognitive complexity 56 (threshold 15). Drivers by points: if/else 20 (56 pts) (nesting depth added 36). 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 19 of the 105 functions over the threshold \u2014 including the worst \u2014 and 509 of the 1526 points over it (33%), 2.1\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 243). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8142884d4ca79ef2c22d674627db48ee41acd5b465bdf62a440c4dfed82d72"}},{"ruleId":"D2","level":"warning","message":{"text":"rusty_claude_cli::extract_context_window_tokens_from_error (cognitive 53): rusty_claude_cli::extract_context_window_tokens_from_error has cognitive complexity 53 (threshold 15). Drivers by points: if/else 12 (51 pts), boolean chains 1, loops 1 (nesting depth added 39). 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 19 of the 105 functions over the threshold \u2014 including the worst \u2014 and 509 of the 1526 points over it (33%), 2.1\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 243). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":13606}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d01d3854c8c00edc97cdd08531d77d14959c238100658a8cc2617108cf9fec"}},{"ruleId":"D2","level":"warning","message":{"text":"sdk::transport::run_client (cognitive 52): sdk::transport::run_client has cognitive complexity 52 (threshold 15). Drivers by points: if/else 10 (27 pts), match/switch 6 (14 pts), loops 4 (10 pts), boolean chains 1 (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":"rust/crates/sdk/src/transport.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"49474332b98ad9a3ba68735b4b6f3d5bdebf55c0187a1fce89454f714132c27e"}},{"ruleId":"D2","level":"warning","message":{"text":"claw_analog::stream_to_message_response (cognitive 51): claw_analog::stream_to_message_response has cognitive complexity 51 (threshold 15). Drivers by points: if/else 11 (30 pts), match/switch 6 (17 pts), loops 2 (4 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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":1428}}}],"partialFingerprints":{"codehealthFindingId/v1":"2034469a0a84ad6eb507708c956a134faf7693b5f7efe998dd0a46bdcc898a05"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::file_ops::extract_merge_conflicts (cognitive 50): runtime::file_ops::extract_merge_conflicts has cognitive complexity 50 (threshold 15). Drivers by points: if/else 13 (45 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 34). 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":"rust/crates/runtime/src/file_ops.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f2ca22c4f400088a00e9a5b7a966f2d611f4e8a4daf353e7f51df041b654d1"}},{"ruleId":"D2","level":"warning","message":{"text":"claw_analog::dispatch_grep_workspace (cognitive 49): claw_analog::dispatch_grep_workspace has cognitive complexity 49 (threshold 15). Drivers by points: if/else 25 (42 pts), match/switch 2 (4 pts), 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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":1827}}}],"partialFingerprints":{"codehealthFindingId/v1":"65bc9f84a154e44484ce54debf1a799e656eb186cbf0c4b3507bdb1d4b297eca"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveCli::print_plugins (cognitive 47): LiveCli::print_plugins has cognitive complexity 47 (threshold 15). Drivers by points: if/else 19 (44 pts), match/switch 2, boolean chains 1 (nesting depth added 25). 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 19 of the 105 functions over the threshold \u2014 including the worst \u2014 and 509 of the 1526 points over it (33%), 2.1\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 243). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":8986}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d6372908929eac5ba45f583699837c3d7234c408723c2eef605667180e34b0"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 46): main.main has cognitive complexity 46 (threshold 15). Drivers by points: if/else 31 (36 pts), loops 3 (6 pts), ternaries 2 (4 pts) (nesting depth added 10). 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":"src/main.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10ac7055d53067a6e7cbf493e0dbe462048079ad02e24ebd1db1f82bb2b5768"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamState::ingest_chunk (cognitive 45): StreamState::ingest_chunk has cognitive complexity 45 (threshold 15). Drivers by points: if/else 14 (36 pts), loops 3 (7 pts), boolean chains 2 (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":"rust/crates/api/src/providers/openai_compat.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"7639ff0633c68ac754383be221e23009dfcc83d523685870d5bdd54f8f9f9bfe"}},{"ruleId":"D2","level":"warning","message":{"text":"claw_analog::run (cognitive 44): claw_analog::run has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (31 pts), loops 3 (7 pts), match/switch 1 (4 pts), boolean chains 2 (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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51fbdbda177bc1835e67bf36e14ae1b4290068f11e865d80df2bffe8a54b629"}},{"ruleId":"D2","level":"warning","message":{"text":"commands::render_mcp_report_json_for (cognitive 40): commands::render_mcp_report_json_for has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (31 pts), match/switch 4 (8 pts), boolean chains 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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":3283}}}],"partialFingerprints":{"codehealthFindingId/v1":"765aefe69786ae676d6e7ba91dbecc479f9aef941ded6e5d8f61813d35c785d2"}},{"ruleId":"D2","level":"warning","message":{"text":"commands::load_skills_from_roots_with_drift (cognitive 40): commands::load_skills_from_roots_with_drift has cognitive complexity 40 (threshold 15). Drivers by points: if/else 10 (32 pts), loops 3 (5 pts), match/switch 1 (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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":4198}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b6c063de4e3a7abe0a9d9c050b5fcd05367ec8a6a4c4181f2d53833237437d"}},{"ruleId":"D2","level":"warning","message":{"text":"rusty_claude_cli::resume_session (cognitive 40): rusty_claude_cli::resume_session has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (34 pts), match/switch 3 (5 pts), 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 19 of the 105 functions over the threshold \u2014 including the worst \u2014 and 509 of the 1526 points over it (33%), 2.1\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 243). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":5169}}}],"partialFingerprints":{"codehealthFindingId/v1":"adab764b767bfeb0b0db637a79750e153da34bfaf350f283353bbd95895b56f2"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::has_dangerous_paths (cognitive 39): tools::has_dangerous_paths has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (34 pts), boolean chains 4, loops 1 (nesting depth added 21). 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":"rust/crates/tools/src/lib.rs"},"region":{"startLine":2346}}}],"partialFingerprints":{"codehealthFindingId/v1":"c805183dec483873470862c4c2123273dcc724ac38cde10e99553fafb80092ea"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::file_ops::grep_search_impl (cognitive 36): runtime::file_ops::grep_search_impl has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 4 (10 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":"rust/crates/runtime/src/file_ops.rs"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"4741334e3fd958dd48bbf904e67b9397258f56de12b7fb3d178c068def260760"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::stream_with_provider (cognitive 35): tools::stream_with_provider has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (24 pts), match/switch 2 (5 pts), loops 2 (4 pts), boolean chains 2 (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":"rust/crates/tools/src/lib.rs"},"region":{"startLine":5405}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f09e978fcd3d70285f89add50eb1c18d5409274360e53cfaddc51d797555ce"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::config::parse_hook_event_partial (cognitive 34): runtime::config::parse_hook_event_partial has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (29 pts), loops 2 (3 pts), 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":"rust/crates/runtime/src/config.rs"},"region":{"startLine":1838}}}],"partialFingerprints":{"codehealthFindingId/v1":"1032599324c67ad854995c49e2f55844c6cd81be8bae8db3cd1617bbad0df957"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::pdf_extract::extract_bt_et_text (cognitive 34): tools::pdf_extract::extract_bt_et_text has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (31 pts), boolean chains 2, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/tools/src/pdf_extract.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"658804d0636c982dcaf92353c67048b774b2f29b3a2f037efeb08885ed899f40"}},{"ruleId":"D2","level":"warning","message":{"text":"claw_analog::doctor::http_checks_print (cognitive 32): claw_analog::doctor::http_checks_print has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (31 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":"rust/crates/claw-analog/src/doctor.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6908530d533dc612b58323d5e5b06ed5f53ec6e92a73a8eb92f5ec8a9b57cb"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::trident::stage3_cluster (cognitive 31): runtime::trident::stage3_cluster has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 5 (8 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/trident.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"809e19c6b4487005fbc7b9abf01c0f989eb7fcf8e2a30ead3c388f5daa2b9619"}},{"ruleId":"D2","level":"warning","message":{"text":"claw_rag_service::ingest::run_ingest (cognitive 30): claw_rag_service::ingest::run_ingest has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 6 (8 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/claw-rag-service/src/ingest.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"b401d9898aff006c3aa49690b25c895c408b8baf4e320b3228f56c8d8352fd19"}},{"ruleId":"D2","level":"warning","message":{"text":"rusty_claude_cli::render_session_markdown (cognitive 30): rusty_claude_cli::render_session_markdown has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (22 pts), match/switch 2 (5 pts), 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 19 of the 105 functions over the threshold \u2014 including the worst \u2014 and 509 of the 1526 points over it (33%), 2.1\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 243). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":12256}}}],"partialFingerprints":{"codehealthFindingId/v1":"484ff68895f569fb06f3351932b5398fe17de704cc23e3ee93bcbc53b5332406"}},{"ruleId":"D2","level":"warning","message":{"text":"commands::handle_skills_slash_command_json (cognitive 29): commands::handle_skills_slash_command_json has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (19 pts), match/switch 4 (8 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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2868}}}],"partialFingerprints":{"codehealthFindingId/v1":"37898e2ff0ccf05968c34f960ef718f049b0ea8db42b654f3867c980e92f25b8"}},{"ruleId":"D2","level":"warning","message":{"text":"commands::resolve_skill_path (cognitive 28): commands::resolve_skill_path has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 2 (3 pts), match/switch 1 (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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":3120}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7920ac001da03c4fc2e673317b5a32268ad62998bff230718cf752e17b9785"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::bash::posix_shell (cognitive 28): runtime::bash::posix_shell has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (22 pts), loops 3 (6 pts) (nesting depth added 18). 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":"rust/crates/runtime/src/bash.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d5ff53b78e2d23f39d4d6030270c228e1608c200813d994a526d3e4c4ccaf6"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalRenderer::render_event (cognitive 28): TerminalRenderer::render_event has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (23 pts), match/switch 3 (5 pts) (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/render.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c7427cf086ac642172bb2dc07011d1022e22ec150586e891677da75b541c8c"}},{"ruleId":"D2","level":"warning","message":{"text":"sdk::session::prompt_value (cognitive 28): sdk::session::prompt_value has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 2 (4 pts), match/switch 2 (4 pts) (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/sdk/src/session/mod.rs"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e0f42dbda1d07048f87a970dbb7d8642ac1d7d27608189355c6bdceda75a33"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::extract_selection_outcome (cognitive 28): tools::extract_selection_outcome has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 9, 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":"rust/crates/tools/src/lib.rs"},"region":{"startLine":4852}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a8721242484bbe4a2958c37c404898e379917d093e2d29b9339f6d07734820"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiError::fmt (cognitive 27): ApiError::fmt has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (26 pts), match/switch 1 (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":"rust/crates/api/src/error.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"952903b070f7456272431d2dda6737bce0c5e08a6ece72555eeb52f1ee500b86"}},{"ruleId":"D2","level":"warning","message":{"text":"claw_analog::resolve_analog_options (cognitive 27): claw_analog::resolve_analog_options has cognitive complexity 27 (threshold 15). Drivers by points: if/else 19 (21 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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"06acb337e34c376d00eed9cad449decfcc2db7b63c174b7d1283803837bda6fa"}},{"ruleId":"D2","level":"warning","message":{"text":"commands::handle_skills_slash_command (cognitive 27): commands::handle_skills_slash_command has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (19 pts), match/switch 3 (6 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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2732}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea222515b6c7823c9ad0f73163ac84d005ca75a443f570248b99977f290e11c1"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::config::expand_config_value (cognitive 27): runtime::config::expand_config_value has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 2 (5 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":"rust/crates/runtime/src/config.rs"},"region":{"startLine":2264}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc95f5b1ed9c42873427447af918fc90f33baa1a14ffa85bb6784d7fabacc1fc"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::trident::stage1_supersede (cognitive 27): runtime::trident::stage1_supersede has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 5 (8 pts), boolean chains 1, match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/trident.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8198487c4a127d66b4121e48574cfd20f63011ec7d8711b084ed11a5aaca96"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::pdf_extract::extract_parenthesized_string (cognitive 27): tools::pdf_extract::extract_parenthesized_string has cognitive complexity 27 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 2 (5 pts), match/switch 2 (5 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/tools/src/pdf_extract.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2479386e0a4495250f1da8f866b34c76dcfd38cca57b13f474fda14ecbd9d67"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::lane_events::reconcile_terminal_events (cognitive 26): runtime::lane_events::reconcile_terminal_events has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (23 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/lane_events.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79d9049cfc4c9a801e999cc1810a3fc466131717c4431a4750c626d2bdc7018"}},{"ruleId":"D2","level":"warning","message":{"text":"rusty_claude_cli::parse_single_word_command_alias (cognitive 26): rusty_claude_cli::parse_single_word_command_alias has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (17 pts), match/switch 3 (5 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 19 of the 105 functions over the threshold \u2014 including the worst \u2014 and 509 of the 1526 points over it (33%), 2.1\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 243). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":2333}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0c30bdf8fe6578dc46f8e6449e057115deda9b86772fcb8697f8993219513d"}},{"ruleId":"D2","level":"warning","message":{"text":"rusty_claude_cli::check_auth_health (cognitive 26): rusty_claude_cli::check_auth_health has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 1, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This file is where this pass\u0027s cognitive complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 19 of the 105 functions over the threshold \u2014 including the worst \u2014 and 509 of the 1526 points over it (33%), 2.1\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 243). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":3855}}}],"partialFingerprints":{"codehealthFindingId/v1":"11edcb492563e1e59083eea1a12293c329c13514246296de01c7cff25a81b5ff"}},{"ruleId":"D2","level":"warning","message":{"text":"api::providers::openai_compat::translate_message (cognitive 25): api::providers::openai_compat::translate_message has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 3 (6 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/openai_compat.rs"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"7677647406687ca8e6f35338ef750cb707614c2e4011d2a796b2cda00dd5b2bf"}},{"ruleId":"D2","level":"warning","message":{"text":"rusty_claude_cli::render::normalize_nested_fences (cognitive 25): rusty_claude_cli::render::normalize_nested_fences has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 3, loops 3 (nesting depth added 6). Of this number, 19 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/render.rs"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d1e6003888e5760b2214ace821c425113d87e42650ebff8231b2441c0f11b7"}},{"ruleId":"D2","level":"warning","message":{"text":"check_release_readiness.validate_markdown_links (cognitive 25): check_release_readiness.validate_markdown_links has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (17 pts), error handling 1 (3 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/scripts/check_release_readiness.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f83a0482707b4c8cbc2192e254e5249f278176451496032e87a2dbfcdf42fb"}},{"ruleId":"D2","level":"warning","message":{"text":"commands::parse_agent_frontmatter (cognitive 24): commands::parse_agent_frontmatter has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (23 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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":4365}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5064a16ff094c5b839563febf47ec093f9dccdafa2dfeee120173172bf982a"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::pdf_extract::extract_tj_array (cognitive 24): tools::pdf_extract::extract_tj_array has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 2 (5 pts) (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":"rust/crates/tools/src/pdf_extract.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fec2eeaa973d176d185b5642320d137ee443e91f5358853b2662f9d6d90f879"}},{"ruleId":"D2","level":"warning","message":{"text":"api::providers::openai_compat::build_chat_completion_request_for_base_url (cognitive 22): api::providers::openai_compat::build_chat_completion_request_for_base_url has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (19 pts), loops 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/openai_compat.rs"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff79684d9e05406719c2654bc5d63e56f3fc2d6be7fbc487571cbf0d954ef31"}},{"ruleId":"D2","level":"warning","message":{"text":"claw_analog::main (cognitive 22): claw_analog::main has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 5 (8 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":"rust/crates/claw-analog/src/main.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8594f021dcb82e37c76fd2abd4c5f0f7e0566ba5252c4bef30fee988ae3c96"}},{"ruleId":"D2","level":"warning","message":{"text":"compat_harness::extract_commands (cognitive 22): compat_harness::extract_commands has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/compat-harness/src/lib.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"affc428c14c70b0ff2b28555d074f5887e8811284080d297b10e72c9054613b4"}},{"ruleId":"D2","level":"warning","message":{"text":"compat_harness::extract_tools (cognitive 22): compat_harness::extract_tools has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (4 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":"rust/crates/compat-harness/src/lib.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"546f73a1aadf9b4b4caf5ca50a6b576fd9bb066832e57b9f48c88858d4c00dc1"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::execute_shell_command (cognitive 22): tools::execute_shell_command has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 2, 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":"rust/crates/tools/src/lib.rs"},"region":{"startLine":6844}}}],"partialFingerprints":{"codehealthFindingId/v1":"714f2d7bf97165af1f43f6e566c65a73688aaa3504a773af1d0c28635b07ba11"}},{"ruleId":"D2","level":"warning","message":{"text":"api::providers::openai_compat::parse_sse_frame (cognitive 21): api::providers::openai_compat::parse_sse_frame has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/openai_compat.rs"},"region":{"startLine":1595}}}],"partialFingerprints":{"codehealthFindingId/v1":"903bba6f500dfe1718112cc1d7fd76b59233c7c5b2d3fbddbb411148c2f3309c"}},{"ruleId":"D2","level":"warning","message":{"text":"claw_analog::grep_in_file_labeled (cognitive 21): claw_analog::grep_in_file_labeled has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 pts), match/switch 1 (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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":1772}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea39a11e08841dae3196cc1acbfbd8dec2410e503bf81f5d394b77dd81f13aa9"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::bash_validation::find_end_of_value (cognitive 21): runtime::bash_validation::find_end_of_value has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (6 pts), boolean chains 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/bash_validation.rs"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"754467b51e671acf162784fd2106fecebeddd0256aaa266d1fc2e4dc3601e135"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::task_packet::validate_packet (cognitive 21): runtime::task_packet::validate_packet has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4, loops 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":"rust/crates/runtime/src/task_packet.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ca885388cd126548cbc837b330e13ade235b6d43d98edcaa40fdc9296f6d00"}},{"ruleId":"D2","level":"warning","message":{"text":"rusty_claude_cli::parse_git_workspace_summary (cognitive 21): rusty_claude_cli::parse_git_workspace_summary has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (17 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 19 of the 105 functions over the threshold \u2014 including the worst \u2014 and 509 of the 1526 points over it (33%), 2.1\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 243). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":6386}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d908672661cd82cce1b24c75f31759aa820bcbe2d6d37fbeb64c112dc16512"}},{"ruleId":"D2","level":"warning","message":{"text":"rusty_claude_cli::run_resume_command (cognitive 21): rusty_claude_cli::run_resume_command has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 2 (3 pts) (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This file is where this pass\u0027s cognitive complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 19 of the 105 functions over the threshold \u2014 including the worst \u2014 and 509 of the 1526 points over it (33%), 2.1\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 243). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":6615}}}],"partialFingerprints":{"codehealthFindingId/v1":"9512cbec775652ebdb83eae542f3629bb61f538c17de31bafbd3f945c7d2285f"}},{"ruleId":"D2","level":"warning","message":{"text":"claw_analog::agents::run_agents_inner (cognitive 20): claw_analog::agents::run_agents_inner has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 2 (3 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":"rust/crates/claw-analog/src/agents.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"43fe2267ba032aade1211333175293d47958ce0142eaa0b745d4feb492b16f33"}},{"ruleId":"D2","level":"warning","message":{"text":"commands::handle_agents_slash_command_json (cognitive 20): commands::handle_agents_slash_command_json has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 3 (6 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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2568}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa5e543fbdb3829d550e5ff7117f933dae0d0e9130e65c404de652ae8ed5400"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginManager::discover_installed_plugins_with_failures (cognitive 20): PluginManager::discover_installed_plugins_with_failures has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (4 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":"rust/crates/plugins/src/lib.rs"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"7125045253218d8df15791a6d564c43dc3bc58f7017cab45fc8613170d19eeb7"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::json::parse_string (cognitive 20): runtime::json::parse_string has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 3 (10 pts), if/else 2 (5 pts), loops 2 (5 pts) (nesting depth added 13). 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":"rust/crates/runtime/src/json.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea50a7bfb523e8d0bd2ef0be0e82037bb6e012b8c916b5d0371f3671b74d95ae"}},{"ruleId":"D2","level":"warning","message":{"text":"rusty_claude_cli::parse_system_prompt_args (cognitive 20): rusty_claude_cli::parse_system_prompt_args has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (16 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 19 of the 105 functions over the threshold \u2014 including the worst \u2014 and 509 of the 1526 points over it (33%), 2.1\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 243). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":3208}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e622cb9d202311d0439a45050a4f020e5fd98ee5b9083a00500a6bb1b7a203"}},{"ruleId":"D2","level":"warning","message":{"text":"sdk::session::recover_pending_terminal_outcomes (cognitive 20): sdk::session::recover_pending_terminal_outcomes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, loops 2, 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":"rust/crates/sdk/src/session/mod.rs"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"692e34e754450920bb9f8f00d5e9ed9a2670c1ee6d8e4e171d6a3d61a2487e55"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::classify_lane_failure (cognitive 20): tools::classify_lane_failure has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, 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":"rust/crates/tools/src/lib.rs"},"region":{"startLine":5252}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce2124b824f5eea7ca3616c333b19f608fee9d3bb0453ea04f10e0cc1404c49"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::search_tool_specs (cognitive 20): tools::search_tool_specs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 2, 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":"rust/crates/tools/src/lib.rs"},"region":{"startLine":5778}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd87a2b0076bf8df44f884171584213829a292fe0cba751ad81f7d5b85d2684"}},{"ruleId":"D2","level":"warning","message":{"text":"render_board_md.validate_board (cognitive 20): render_board_md.validate_board has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".omx/cc2/render_board_md.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d31c66879fa05548b70c7f24ce59525676a3c4dee6c9c54af84ded61bfff62f"}},{"ruleId":"D2","level":"warning","message":{"text":"run_mock_parity_diff.main (cognitive 20): run_mock_parity_diff.main has cognitive complexity 20 (threshold 15). Drivers by points: loops 5 (7 pts), ternaries 4 (6 pts), if/else 3 (4 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/scripts/run_mock_parity_diff.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"fffaf6d17e1c14c8c30d58727af53a8a1b5eb68f40b987049cf5b60c7b18e6a9"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicClient::send_with_retry (cognitive 19): AnthropicClient::send_with_retry has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (5 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"3626e9717e18527dfd622e98b0e3f5f4050b66669160499698da22849b5942fe"}},{"ruleId":"D2","level":"warning","message":{"text":"api::providers::openai_compat::normalize_object_schema (cognitive 19): api::providers::openai_compat::normalize_object_schema has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (4 pts) (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/openai_compat.rs"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"b692909c38d29aa6074b61cc06c640122bf1f088968090c99c455ea478ec3d58"}},{"ruleId":"D2","level":"warning","message":{"text":"claw_analog::assert_workspace_path (cognitive 19): claw_analog::assert_workspace_path has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (17 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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":1640}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6f21f5abe0ec79f51d342b8dac155316ba429ac0c04b6c6aab376a7ba30d35"}},{"ruleId":"D2","level":"warning","message":{"text":"HookRunner::run_commands (cognitive 19): HookRunner::run_commands has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/hooks.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"7468516151a08a0a2b2dca570bb33348bb3d1f114d9d087afd6bf2376d61e4b8"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::hooks::parse_hook_output (cognitive 19): runtime::hooks::parse_hook_output has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 2 (4 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":"rust/crates/runtime/src/hooks.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"21856ad6bfc7e3afbef14f6b0933fa21fa42e95098e2b6db54903801ae97aeb3"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::line_range_selector::parse_single_range (cognitive 19): runtime::line_range_selector::parse_single_range has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 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":"rust/crates/runtime/src/line_range_selector.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"596be8e7e044868bace1d0dc7445d0fb7c6d99183f8444bc25e58d75ab680b10"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::recovery_recipes::attempt_recovery (cognitive 19): runtime::recovery_recipes::attempt_recovery has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 2 (3 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":"rust/crates/runtime/src/recovery_recipes.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"653fda64dc310e1ca5be2b31a8d27da7758578a352aec60724759711a7d9abc2"}},{"ruleId":"D2","level":"warning","message":{"text":"rusty_claude_cli::run_repl (cognitive 19): rusty_claude_cli::run_repl has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (13 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 19 of the 105 functions over the threshold \u2014 including the worst \u2014 and 509 of the 1526 points over it (33%), 2.1\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 243). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":7289}}}],"partialFingerprints":{"codehealthFindingId/v1":"681fc6416f938f09989bf69925a42849d373dbb5bbeff4057bf8fd0d43149c7b"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::run_remote_trigger (cognitive 19): tools::run_remote_trigger has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (6 pts), match/switch 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":"rust/crates/tools/src/lib.rs"},"region":{"startLine":2061}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d4a92ca5e7a6db4970cb0dd90655ecc56451ac1cbbfe1eb5f95791e6ba552f"}},{"ruleId":"D2","level":"warning","message":{"text":"commands::handle_agents_slash_command (cognitive 18): commands::handle_agents_slash_command 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). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2467}}}],"partialFingerprints":{"codehealthFindingId/v1":"f454797199942d0765dcf7708cd94dd062c9c88597ed8df901b7b178814eed3c"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionStore::scan_global_sessions (cognitive 18): SessionStore::scan_global_sessions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (5 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":"rust/crates/runtime/src/session_control.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb20ec51872fddc7677b8d43c17c08d79545376f755510ee113a036a0dd1793d"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerRegistry::observe (cognitive 18): WorkerRegistry::observe has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/worker_boot.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"be49bc662bb909b519acbd694f293df5693ab886fa2c35387289c3f24c771169"}},{"ruleId":"D2","level":"warning","message":{"text":"rusty_claude_cli::render_memory_report (cognitive 18): rusty_claude_cli::render_memory_report has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 2 (5 pts), match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 19 of the 105 functions over the threshold \u2014 including the worst \u2014 and 509 of the 1526 points over it (33%), 2.1\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 243). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":11378}}}],"partialFingerprints":{"codehealthFindingId/v1":"a054418d4db2c263c5c5aea3db1fb43d197fe8e05944034deb2528c350deb109"}},{"ruleId":"D2","level":"warning","message":{"text":"sdk::transport::connect_once (cognitive 18): sdk::transport::connect_once has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (15 pts), match/switch 1 (2 pts), 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":"rust/crates/sdk/src/transport.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbe3dcba2790f8e6f45cd40d52a6fc3edaab523419c27432bf9489c8a97e858"}},{"ruleId":"D2","level":"warning","message":{"text":"check_release_readiness.validate_command_examples (cognitive 18): check_release_readiness.validate_command_examples has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 3 (6 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":".github/scripts/check_release_readiness.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"50186cf9ee133785a0cda9c533df7024f3fe40f54d3c0d227a743318de289a91"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamState::finish (cognitive 17): StreamState::finish has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/openai_compat.rs"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"da33077ba9716cced309e9ef39cb173ddc9ae9eedfce3118c9a0b212617009fd"}},{"ruleId":"D2","level":"warning","message":{"text":"commands::handle_plugins_slash_command (cognitive 17): commands::handle_plugins_slash_command has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2314}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4faded5264f9e7c3f68786324a5e21a3503df4ea205332556d61b2180d4c434"}},{"ruleId":"D2","level":"warning","message":{"text":"commands::load_agents_from_roots_with_invalids (cognitive 17): commands::load_agents_from_roots_with_invalids has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 3 (5 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":4114}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f85bb9796be9174a121dba88be8986bfeaa362e44081dbaf6ad46bbc329945c"}},{"ruleId":"D2","level":"warning","message":{"text":"mock_anthropic_service::build_stream_body (cognitive 17): mock_anthropic_service::build_stream_body has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 10 (13 pts), if/else 2 (4 pts) (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. This shape REPEATS in the file: one other method here (mock_anthropic_service::build_message_response) 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":"rust/crates/mock-anthropic-service/src/lib.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"406efce3d0f8b18d7e583934a1ceb6d3d16080138537d23a4cc90ef285e7cd2e"}},{"ruleId":"D2","level":"warning","message":{"text":"mock_anthropic_service::build_message_response (cognitive 17): mock_anthropic_service::build_message_response has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 10 (13 pts), if/else 2 (4 pts) (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. This shape REPEATS in the file: one other method here (mock_anthropic_service::build_stream_body) 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":"rust/crates/mock-anthropic-service/src/lib.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db6d0dfadfb717116077107551c5ce1ac44bff8c1a5b0307125a17a9ad1b7da"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginManager::sync_bundled_plugins (cognitive 17): PluginManager::sync_bundled_plugins has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, loops 2, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/plugins/src/lib.rs"},"region":{"startLine":1423}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e8a7ce55d666f94d043afdd10f63ca770f2b8578bd3911bcf438767833acb6"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::bash_validation::validate_read_only (cognitive 17): runtime::bash_validation::validate_read_only has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), 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":"rust/crates/runtime/src/bash_validation.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f543ac9751c2ff9fe6e2c647d6c76b64e43540e4542ba1a3d609c7e6c5aaf2"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::memory_store::parse_memory_frontmatter (cognitive 17): runtime::memory_store::parse_memory_frontmatter has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 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":"rust/crates/runtime/src/memory_store.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8c3b333f9a061beaf896947b7e3be18b59258c21b145fcebc8ad65e8cfbe27"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::usage::pricing_for_model (cognitive 17): runtime::usage::pricing_for_model has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), match/switch 4 (8 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/usage.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b3e846cc46cc04f4e18fd2c1717fe1644a9313c47f6cb8b67550aa02c9681c"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::extract_search_hits_from_generic_links (cognitive 17): tools::extract_search_hits_from_generic_links has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 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":"rust/crates/tools/src/lib.rs"},"region":{"startLine":3777}}}],"partialFingerprints":{"codehealthFindingId/v1":"7125aef10c865f6a6d8af02b434b2cf7b24280ac3d772eb9e8d5b1c9dddc8545"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::decode_duckduckgo_redirect (cognitive 17): tools::decode_duckduckgo_redirect has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, 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":"rust/crates/tools/src/lib.rs"},"region":{"startLine":3834}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b38704811cb9ba88d5576fb63116436a3b0fcd692a7ca6eadb9a860c6b4dfb"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::execute_notebook_edit (cognitive 17): tools::execute_notebook_edit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), match/switch 5 (7 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":"rust/crates/tools/src/lib.rs"},"region":{"startLine":5949}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d995514c0b7b2ad0e0a9c8fc52fa3fb355eaae43ad7003233ac1a7400363e93"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::pdf_extract::extract_text_from_bytes (cognitive 17): tools::pdf_extract::extract_text_from_bytes 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":"rust/crates/tools/src/pdf_extract.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2d001b65f9e35178f5a5686cb486a09026b134ee47a25d3c968126f2351a1c"}},{"ruleId":"D2","level":"warning","message":{"text":"McpServerManager::ensure_server_ready (cognitive 16): McpServerManager::ensure_server_ready has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 1 (2 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":"rust/crates/runtime/src/mcp_stdio.rs"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc76b252b23612a8d52ff0c52e7ef7e718b5871159e0ad4b04c87a7673292e3"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::file_ops::glob_search_impl (cognitive 16): runtime::file_ops::glob_search_impl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 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":"rust/crates/runtime/src/file_ops.rs"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"48226f267408d3f6af6d16229a2a595718480225e54d6d1f27ffbd52edaa1432"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::trident::compute_similarity (cognitive 16): runtime::trident::compute_similarity 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":"rust/crates/runtime/src/trident.rs"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"668d7961f5b276ce80ba38799e4be097749642668ee6c0935e9ad6f00bc98dfd"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime::trident::generate_cluster_summary (cognitive 16): runtime::trident::generate_cluster_summary has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/trident.rs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"92dde7f1796ab8916cff93cb56b72a338c35fb8e6f05b6a1b9931ba2ded20a85"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveCli::handle_repl_command (cognitive 16): LiveCli::handle_repl_command has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 3 (5 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 19 of the 105 functions over the threshold \u2014 including the worst \u2014 and 509 of the 1526 points over it (33%), 2.1\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 243). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":8380}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44069c4ea50f274bf9ed8af2eb4ec4c01531a04bd7f56856e8e341bbc4d15bf"}},{"ruleId":"D2","level":"warning","message":{"text":"rusty_claude_cli::validate_model_syntax (cognitive 16): rusty_claude_cli::validate_model_syntax has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition. This file is where this pass\u0027s cognitive complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 19 of the 105 functions over the threshold \u2014 including the worst \u2014 and 509 of the 1526 points over it (33%), 2.1\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 243). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":2942}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef253670689a93695a6ff0305827976208dc920be7e2d5c90d0775f984d5b8ce"}},{"ruleId":"D2","level":"warning","message":{"text":"rusty_claude_cli::extract_help_metadata (cognitive 16): rusty_claude_cli::extract_help_metadata 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: rust/crates/rusty-claude-cli/src/main.rs holds 19 of the 105 functions over the threshold \u2014 including the worst \u2014 and 509 of the 1526 points over it (33%), 2.1\u00D7 the next-largest file (rust/crates/claw-analog/src/lib.rs at 243). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":10885}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2d17234b2aaa58706535ad697d8e8f53dc692bf629b62c30319094f6002013"}},{"ruleId":"D2","level":"warning","message":{"text":"rusty_claude_cli::render::strip_ansi (cognitive 16): rusty_claude_cli::render::strip_ansi has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (5 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":"rust/crates/rusty-claude-cli/src/render.rs"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc8389d31687a54e873af4f33f18f9b1530f9b230ad851ad91885325b6756d6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/main.rs: FileTooLong \u2014 10980 significant 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 316 free functions. The bar is 500 significant lines; this is 10480 over it, 21.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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07071862bc313bc471dd8890f436bbd52069f0f2918761dbe57ec41b63abd022"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 5135 significant 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 230 free functions. The bar is 500 significant lines; this is 4635 over it, 10.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/tools/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6a3ac0bfdf411d93ec0fd405782d08acaddfcb630435009d1035e900bc0b52"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 4111 significant 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 126 free functions. The bar is 500 significant lines; this is 3611 over it, 8.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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb5754ab1308302ecbaf35da5fe7184e96876827d74b21727c95ee8213caf59"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tools::mvp_tool_specs: FunctionTooLong \u2014 tools::mvp_tool_specs runs 703 significant 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 603 over it, 7.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":"rust/crates/tools/src/lib.rs"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ce991ea8b94d0da7614fcb60c2f7f36ac01276cfd5b415e3abdf44511c58f1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rusty_claude_cli::parse_args: FunctionTooLong \u2014 rusty_claude_cli::parse_args runs 523 significant 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 423 over it, 5.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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f562a156218964a03ff77851646465388d99759a3e34394190bc4da1641f50e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rusty_claude_cli::run_resume_command: FunctionTooLong \u2014 rusty_claude_cli::run_resume_command runs 453 significant 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 353 over it, 4.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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":6615}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff0219ec5bcdc3b5a9e46ef117381ceabab0a3678a0b63fadf8eae943a3db6d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/config.rs: FileTooLong \u2014 1799 significant 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 64 free functions. The bar is 500 significant lines; this is 1299 over it, 3.60\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7b9f23f3fc1365a2f9d5c7e105c00a062fa76ba81b0702468fbb8d60485260"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 1652 significant 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 1152 over it, 3.30\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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08962b337627879ecdde75d124ff436e1c3b98297a68d416654247a6f08f7f2a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 1627 significant 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 1127 over it, 3.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":"rust/crates/plugins/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9db763f8350132996c26961d3858eb4869f24fcc9ff129483b4ad8e824f8951"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LiveCli: ClassTooLong \u2014 1195 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 45 methods, 2 blocks, lines 7376-9484. The bar is 400 significant lines; this is 795 over it, 2.99\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":7376}}}],"partialFingerprints":{"codehealthFindingId/v1":"95169d2b4f56cc1050c154dc7b8e5be57da77e1e123882846adb135f28bca871"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/openai_compat.rs: FileTooLong \u2014 1245 significant 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 745 over it, 2.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/openai_compat.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcec8164d06d99d8f55e545d1d61ca7daa06185ea9a199fcd165fb66555a6e23"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: claw_analog::dispatch_tool: FunctionTooLong \u2014 claw_analog::dispatch_tool 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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e919107a524ad85d1e9f00cea7126ef184efc17cbda4b00a5c64d4bc283f24"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConversationRuntime.run_turn: MethodTooLong \u2014 run_turn 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":"rust/crates/runtime/src/conversation.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29f390e9e5e1dff77baa848c7795ccd89cc6ab680a551d2d8b166d1057ddc0c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/worker_boot.rs: FileTooLong \u2014 1063 significant 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 33 free functions. The bar is 500 significant lines; this is 563 over it, 2.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":"rust/crates/runtime/src/worker_boot.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3f6682e548bb66c0c681d9fd33e9b3a00788de26d3ea81d64447136ae9d548"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/session.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":"rust/crates/runtime/src/session.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2f8472cc9c6315bf5bbafc2a2926e7c2113bb52f4bdf49ba91eb720c12f65a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mcp_stdio.rs: FileTooLong \u2014 1021 significant 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 521 over it, 2.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":"rust/crates/runtime/src/mcp_stdio.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4af93486d9c55f3757d5cf401cd805bf085e8825dda2b62e55eaf5cf3ec44ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: session/mod.rs: FileTooLong \u2014 956 significant 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 456 over it, 1.91\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":"rust/crates/sdk/src/session/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2b3694fea5a61e67f881d0bfe7b110cb8ce277cb4c0220ca09c4b6e7cfbfc8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 910 significant 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 31 free functions. The bar is 500 significant lines; this is 410 over it, 1.82\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":"rust/crates/mock-anthropic-service/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7529362469cc105315df4f3b1d178627d323e5c13928f1d7731105d95e3be448"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rusty_claude_cli::print_help_to: FunctionTooLong \u2014 rusty_claude_cli::print_help_to runs 174 significant 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 74 over it, 1.74\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":14837}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b9778595f3e4a15c529764e9d94ba6954c9ac98e612a1e402fbd956ad2ed9b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: commands::validate_slash_command_input: FunctionTooLong \u2014 commands::validate_slash_command_input runs 168 significant 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 68 over it, 1.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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1e801f4aa6e66d6bd3ac80de50e8182ada47ff4dedee139ad3db6b5301c31c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/conversation.rs: FileTooLong \u2014 831 significant 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 66% of them inside a single declaration: ConversationRuntime (2 blocks, 291-1064). The bar is 500 significant lines; this is 331 over it, 1.66\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/conversation.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0b092539b79d56b63c46a542bbff524ffa3410bd9a77c84537f783a0dfee6a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lane_events.rs: FileTooLong \u2014 817 significant 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 317 over it, 1.63\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":"rust/crates/runtime/src/lane_events.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac398e5d5ddd877d63785859ac0c334f12eceef671151e525802e0766b7482c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/file_ops.rs: FileTooLong \u2014 810 significant 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 310 over it, 1.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":"rust/crates/runtime/src/file_ops.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5837735e94a88abf4511174b4a1abeb7b06739cf44634780105e246b3c8065d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: claw_analog::run: FunctionTooLong \u2014 claw_analog::run 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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"86df0041f85e18833bb89d25b37b3f87d02266584b1c9c9d778478404ef79e38"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveCli.handle_repl_command: MethodTooLong \u2014 handle_repl_command 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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":8380}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a260afd16b832a2dd9dd15ef08b6ec1924ce3c1b2f7d7be411f2cf76d902e0d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rusty_claude_cli::render_help_topic: FunctionTooLong \u2014 rusty_claude_cli::render_help_topic 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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":10536}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb263022fe63f8a2f1130b48fbcf90b10a2d1fd7dd9a626450ee7839c2bf96e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OperationRegistry.with_standard_operations: MethodTooLong \u2014 with_standard_operations 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":"rust/crates/sdk/src/registry.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b6d971338f3f223c849a945b03a26bd392d17f00aa774c0b28dee5e65afa5d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LiveCli: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":7376}}}],"partialFingerprints":{"codehealthFindingId/v1":"7670da4d5010857d623c48f124a88ff8471228dcff251bfc83728fedb8c405c0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveCli.run_turn: MethodTooLong \u2014 run_turn 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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":8020}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4e0b2be849e99514c0649aa2d9a63c44d62e0029ef5a9b378a8fb104d3ad6c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/anthropic.rs: FileTooLong \u2014 741 significant 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 241 over it, 1.48\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ba06acac5cdee0a98aeb2f462ad7d5331de7c385c5b719ccc81c367a19bb25"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rusty_claude_cli::run: FunctionTooLong \u2014 rusty_claude_cli::run runs 142 significant 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 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3d662cd72d07f86211f06e3bb3fb3c5fa0629069241c3f33e22d07921fb06f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rusty_claude_cli::resume_session: FunctionTooLong \u2014 rusty_claude_cli::resume_session 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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":5169}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ee2c157922c890b41003943addd1c1cea051788662c414696da32bdf9b88a8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnthropicRuntimeClient.consume_stream: MethodTooLong \u2014 consume_stream 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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":13393}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e545ee255d4a23b311b1fa23301afc30932953fd2dada932edd09f5bd6b28ce"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ConversationRuntime: ClassTooLong \u2014 550 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 37 methods, 2 blocks, lines 291-1064. The bar is 400 significant lines; this is 150 over it, 1.38\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/conversation.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"e572aeab2647846c295cf70ad0d8a5b114ede6510c59b4f8f6dc47b88013f42a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveCli.print_plugins: MethodTooLong \u2014 print_plugins 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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":8986}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6b18ff4ce511bd793adafae65ddbc99d28ec1f81552da43d20e86c2a60e2cf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/render.rs: FileTooLong \u2014 677 significant 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 177 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":"rust/crates/rusty-claude-cli/src/render.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07ba4728fa97e089af22284a3721a6b933e6cd0545391c624726736dbc95cbb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: commands::handle_skills_slash_command_json: FunctionTooLong \u2014 commands::handle_skills_slash_command_json 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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2868}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fdf1f367943d41ef12170869b0d9e318e4036f775e6246596bdeb8a36b6ac22"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: commands::discover_skill_roots: FunctionTooLong \u2014 commands::discover_skill_roots 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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":3607}}}],"partialFingerprints":{"codehealthFindingId/v1":"028008f5191a8a219ffd0f4f32eff9ba3bbc41826a11bcf4cf163e8d77344992"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WorkerRegistry.observe: MethodTooLong \u2014 observe 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":"rust/crates/runtime/src/worker_boot.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5e64a21932b6ccd347962ba3ee00f699e40f4a8cf65a3ad96eb1b41327600c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mock_anthropic_service::build_message_response: FunctionTooLong \u2014 mock_anthropic_service::build_message_response 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":"rust/crates/mock-anthropic-service/src/lib.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"648e7fd9fa4329f593d80bf7e39d2a706b1c52c37ffdfed96b34fa990b486712"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConversationRuntime: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 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":"rust/crates/runtime/src/conversation.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca435232a5be791a51db2102c9707cb0f3d473a7af3630448020ad1de3d0752"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveCli.handle_session_command: MethodTooLong \u2014 handle_session_command 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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":9192}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f9995e4df55b1e6b205840004c17640e335a28f8b13826e7c7505fd9c89f7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rusty_claude_cli::format_status_report: FunctionTooLong \u2014 rusty_claude_cli::format_status_report 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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":10257}}}],"partialFingerprints":{"codehealthFindingId/v1":"a047b74d2fe091daedc55dda3fd1ab6f707afe33dea16b0596c9b95fe047815a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: McpServerManager: ClassTooLong \u2014 473 significant 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, 2 blocks, lines 501-1173. The bar is 400 significant lines; this is 73 over it, 1.18\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/mcp_stdio.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"0118edb68dd6106191f7849b76d8bd7a38690240b3cda5559be77c6f225d186a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TerminalRenderer.render_event: MethodTooLong \u2014 render_event 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":"rust/crates/rusty-claude-cli/src/render.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90eafe8d05e39e8618a43524168a426038da11b26367fd23156b1a61fd41ca0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tools::execute_shell_command: FunctionTooLong \u2014 tools::execute_shell_command 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":"rust/crates/tools/src/lib.rs"},"region":{"startLine":6844}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b0ad27d9e4c4f017344600af8601d7b5b29c9f837fe6441dc662df781dbd46"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/hooks.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":"rust/crates/runtime/src/hooks.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc2475b653dd1f2f66e6932ea98b5428d583e4d02d851fd8d1c650b466ce1f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/mod.rs: FileTooLong \u2014 587 significant 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 87 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59424b4c655fa1238c406f24c257fc7ba509de70560788ad258533f6703cfd5f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rusty_claude_cli::parse_single_word_command_alias: FunctionTooLong \u2014 rusty_claude_cli::parse_single_word_command_alias 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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":2333}}}],"partialFingerprints":{"codehealthFindingId/v1":"90277959c03189e75051318677587f056fbca56ffc4ac61fd2367187dea630f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rusty_claude_cli::classify_error_kind: FunctionTooLong \u2014 rusty_claude_cli::classify_error_kind runs 116 significant 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 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75e2822d7d9fd2b2fb8e42e2ba97b422028006c8d2e9717d86aed8d94f00173"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SessionRouter.prompt: MethodTooLong \u2014 prompt runs 116 significant 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 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/sdk/src/session/mod.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a2a40c5d4bf53b7812b740c48dd04411d25c1ea1bc043a352e1de2f0767652"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: commands::handle_plugins_slash_command: FunctionTooLong \u2014 commands::handle_plugins_slash_command 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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2314}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a5f431d281dfe95c92e4ccad204153a22be31a34a42239831abb509c7e4bdf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tools::execute_tool_with_enforcer: FunctionTooLong \u2014 tools::execute_tool_with_enforcer 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":"rust/crates/tools/src/lib.rs"},"region":{"startLine":1396}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68b3dbf982511b2b6237f07b78cf4fda6df20511d062f7ef4e8c1fa0fd3cd5a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/prompt.rs: FileTooLong \u2014 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), declaring 31 free functions. The bar is 500 significant lines; this is 72 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":"rust/crates/runtime/src/prompt.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5febcafa598f6e0b225bf1676eaa8899fa742aa431f06ccf90e93c1eeb8f2e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: runtime::recovery_recipes::attempt_recovery: FunctionTooLong \u2014 runtime::recovery_recipes::attempt_recovery 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":"rust/crates/runtime/src/recovery_recipes.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"afab5d0a73612d06a0eb2acba472c903bd9c2964cf40464d7000f625c979452c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rusty_claude_cli::status_json_value: FunctionTooLong \u2014 rusty_claude_cli::status_json_value 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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":10003}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e6728697d4f2499e9787dc1163e87b8ac34627def9a51acafbe71313712a31"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ApiError.fmt: MethodTooLong \u2014 fmt 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":"rust/crates/api/src/error.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"8678c82fd0804f3ec6c0d16834328229daaee1424d3beb0664ea0a018cb22172"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/transport.rs: FileTooLong \u2014 555 significant 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 55 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/sdk/src/transport.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"098a470f2595ad41ac3713e033290dcc487aa10319df797d2d0b4f3a47cc5689"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rusty_claude_cli::render_config_json: FunctionTooLong \u2014 rusty_claude_cli::render_config_json 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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":11173}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78a857202ca5489e9c4c38b2724f8ecd8e100b1b0da005e6707f8572d32a279"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AnthropicClient: 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":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"31af5169e98c346feaaf5b07216f868fd082cb4a2d52c014264b0f6831ce6bf8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SessionRouter: ClassTooLong \u2014 440 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 12 methods, 2 blocks, lines 187-910. The bar is 400 significant lines; this is 40 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":"rust/crates/sdk/src/session/mod.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f398889188e23c0d531061e321be4f7eab6babbd1c1a7102c01aca18f43731"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: runtime::config::parse_hook_event_partial: FunctionTooLong \u2014 runtime::config::parse_hook_event_partial 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":"rust/crates/runtime/src/config.rs"},"region":{"startLine":1838}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d76fe4a2c6bcd6830c59cd69ad080de6b669083ac5a75d3e1cd83c25e7df6c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/session_control.rs: FileTooLong \u2014 539 significant 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 60% of them inside a single declaration: SessionStore (2 blocks, 20-505), declaring 33 free functions. The bar is 500 significant lines; this is 39 over it, 1.08\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/session_control.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"678115c3548f1efc89a969946d72326c262af0b818c1218f609cc588cd49d580"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Session: ClassTooLong \u2014 423 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 22 methods, 4 blocks, lines 117-715. The bar is 400 significant lines; this is 23 over it, 1.06\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":"rust/crates/runtime/src/session.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ba2b8cefea3cd4e2e0b02df1fc8b2a92a6dbd237209d2ea335e6b51e06a5d3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorkerRegistry: ClassTooLong \u2014 422 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 12 methods, 2 blocks, lines 295-844. The bar is 400 significant lines; this is 22 over it, 1.06\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":"rust/crates/runtime/src/worker_boot.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6e8ab6e618331c7ee0ea4df9421e4792459a456e7516ce6e943464aa15f359"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: claw_analog::stream_to_message_response: FunctionTooLong \u2014 claw_analog::stream_to_message_response 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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":1428}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa19ad40616911960e7ffc0284985d685c648d681933c957c7c1ef04aea85719"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: commands::handle_agents_slash_command_json: FunctionTooLong \u2014 commands::handle_agents_slash_command_json 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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2568}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af17e1a0b708110ef7add870addf37fe695eafede67c107bce66f13091bed2d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: claw_analog::agents::run_agents_inner: FunctionTooLong \u2014 claw_analog::agents::run_agents_inner 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":"rust/crates/claw-analog/src/agents.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"61079296620abc305601e8eeb6849b7b41c4ae6ef0b9dbae41093488a8fe06ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rusty_claude_cli::render::normalize_nested_fences: FunctionTooLong \u2014 rusty_claude_cli::render::normalize_nested_fences 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":"rust/crates/rusty-claude-cli/src/render.rs"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e66ec0da1994c0266fc8f696c402c1c30725d92ff14f97792078a1d7de1a715"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/doctor.rs: FileTooLong \u2014 513 significant 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 13 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":"rust/crates/claw-analog/src/doctor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36192c4213e794fa441ad979367a9b7e6e3ac7f9c81ca8193dc6130f2089a8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rusty_claude_cli::check_auth_health: FunctionTooLong \u2014 rusty_claude_cli::check_auth_health 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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":3855}}}],"partialFingerprints":{"codehealthFindingId/v1":"267a2a47daa1b5d8ed036c4f8870fc2085b4978d5fcd340e37b220d427f8e6be"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: claw_analog::tool_definitions: FunctionTooLong \u2014 claw_analog::tool_definitions runs 101 significant 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 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b67dd757794d0743dedc36df0e36e526e1003307159c0312b704c0597a799d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: claw_analog::main: FunctionTooLong \u2014 claw_analog::main runs 101 significant 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 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/claw-analog/src/main.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0756bd2cd85ae71c609f6af20726b0780e28b5ade5a1814330f83dc86aaf44"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): rust/crates/commands/src/lib.rs:2467-2566 | rust/crates/commands/src/lib.rs:2568-2706 | rust/crates/commands/src/lib.rs:2732-2866 | rust/crates/commands/src/lib.rs:2868-3045 \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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2467}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e58636d017d8faf6a76ee64f5a33b2219caa0bc9127b5696802e46280b5c31"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): rust/crates/rusty-claude-cli/src/main.rs:8775-8816 | rust/crates/rusty-claude-cli/src/main.rs:8818-8852 | rust/crates/rusty-claude-cli/src/main.rs:9356-9371 | rust/crates/rusty-claude-cli/src/main.rs:9373-9394 \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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":8775}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd2b8fe1502b60b17a47d70e5f633cf38dd5267bce1e6a26a989a0fe5796341"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): rust/crates/tools/src/lib.rs:2180-2205 | rust/crates/tools/src/lib.rs:2210-2239 | rust/crates/tools/src/lib.rs:2243-2287 | rust/crates/tools/src/lib.rs:2291-2304 \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":"rust/crates/tools/src/lib.rs"},"region":{"startLine":2180}}}],"partialFingerprints":{"codehealthFindingId/v1":"2149c7e4161750a82d3542d6a89b126723c47f1672bac4df408a212e546849b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (138 corresponding lines): rust/crates/mock-anthropic-service/src/lib.rs:396-533 | rust/crates/mock-anthropic-service/src/lib.rs:536-709 \u2014 These two members are one piece of code written twice and then edited apart: 138 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/mock-anthropic-service/src/lib.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"830e6b3aaf6e8647d0d35f9e6a691dd4b85b6d2c1252b0516c3450e40fbbf77a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): rust/crates/runtime/src/session.rs:826-881 | rust/crates/runtime/src/session.rs:1072-1142 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/session.rs"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e72e03883147cb9dcf7d00830fa1bdbcfaaae319e394aa6c523bb1a294a2ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (65 corresponding lines): rust/crates/commands/src/lib.rs:1635-1708 | rust/crates/commands/src/lib.rs:1747-1811 \u2014 These two members are one piece of code written twice and then edited apart: 65 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":1635}}}],"partialFingerprints":{"codehealthFindingId/v1":"965fad306cf836ffcfa0d69e94c9f90486ada5fbcb3dbc5fbb0431ba1afbe191"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): rust/crates/tools/src/lib.rs:6229-6296 | rust/crates/tools/src/lib.rs:6298-6367 \u2014 These two members are one piece of code written twice and then edited apart: 68 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/tools/src/lib.rs"},"region":{"startLine":6229}}}],"partialFingerprints":{"codehealthFindingId/v1":"b690d8be6baeab4608d87ebae41d4198b26f6eab546cfe4d2323c003cac8d3d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): rust/crates/runtime/src/session_control.rs:386-444 | rust/crates/runtime/src/session_control.rs:451-504 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/session_control.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a5b60790083fa3309f3da0d2cef1bef427b5cf11ff2b362df41aac87d6db6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): rust/crates/plugins/src/hooks.rs:185-229 | rust/crates/runtime/src/hooks.rs:430-497 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/plugins/src/hooks.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"455fd10a2655b8105afc46d6f383c9fc7b030b1086008621bd41bea409fab7f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): rust/crates/runtime/src/config.rs:471-511 | rust/crates/runtime/src/config.rs:518-550 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/config.rs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"729ae59514cce6abc603c923d55a7ae32be437165fab16ed2b42d841d5f22268"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): rust/crates/rusty-claude-cli/src/main.rs:14736-14781 | rust/crates/tools/src/lib.rs:5567-5609 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":14736}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa3d31ccbe86ac8d89196b88cfa68a36957138b0deca623954478cb271f2b72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): rust/crates/runtime/src/mcp_stdio.rs:842-905 | rust/crates/runtime/src/mcp_stdio.rs:910-968 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/mcp_stdio.rs"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"942968dc28bb04e3cf6ff9d7ede1390f47b558feb8cb6c584aa5e10a6ae8be79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): rust/crates/tools/src/lib.rs:3740-3775 | rust/crates/tools/src/lib.rs:3777-3822 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/tools/src/lib.rs"},"region":{"startLine":3740}}}],"partialFingerprints":{"codehealthFindingId/v1":"75bc1be1f82616dcadbf8a062b2f6c8db3ed1eb4c704ed7efd5dbadea0443c75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): rust/crates/commands/src/lib.rs:4419-4459 | rust/crates/commands/src/lib.rs:4567-4614 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":4419}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8383d6a468494f86f3cda1dcbac214f8fd71ca1639d1d38fe75cd4f1ae4d125"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): rust/crates/runtime/src/mcp_server.rs:249-286 | rust/crates/runtime/src/mcp_stdio.rs:1248-1280 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/mcp_server.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"4091dc891e14bbc886d4c317428662e33c753bda4f11087467926e46234c4616"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): rust/crates/tools/src/lib.rs:248-289 | rust/crates/tools/src/lib.rs:294-327 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/tools/src/lib.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7d80d3536cbdc40f72a1b2bdafd3e3ce4582e1865f9b0846c1a3be661ed7ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 66\u002B corresponding lines): rust/crates/mock-anthropic-service/src/lib.rs:837-902 | rust/crates/mock-anthropic-service/src/lib.rs:918-987 | rust/crates/mock-anthropic-service/src/lib.rs:1125-1191 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 66 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/mock-anthropic-service/src/lib.rs"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a223a85b47e802fee475dbb70c3bccf0fe377227ff2e432fbc61d34fa15043"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): rust/crates/commands/src/lib.rs:4469-4498 | rust/crates/commands/src/lib.rs:4616-4645 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":4469}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f54a974626c679d393280f6af2efa3dffc9d44af1da49010a2a66896639c17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): rust/crates/commands/src/lib.rs:1990-2017 | rust/crates/runtime/src/config_validate.rs:457-480 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":1990}}}],"partialFingerprints":{"codehealthFindingId/v1":"176c32f0ac7131a0c684071db92d9d2b46953f60180715fb6f9df87bfbd6a8d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): rust/crates/api/src/providers/anthropic.rs:882-909 | rust/crates/api/src/providers/openai_compat.rs:1756-1785 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f892aafb22a8c889650e33cef749e8b90529400e132a43e47635eb095bcd73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): rust/crates/commands/src/lib.rs:3567-3604 | rust/crates/plugins/src/lib.rs:1064-1107 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":3567}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8637c2fa00d93bea95397355b0b6b8774f2b16c3df4cdf3158f73ddb7715c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): rust/crates/commands/src/lib.rs:2068-2099 | rust/crates/commands/src/lib.rs:2101-2137 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2068}}}],"partialFingerprints":{"codehealthFindingId/v1":"439cfc6981e70569536a5fb03e5cd8bc22a1dda53a989eb47b8c67dba5afdce0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): rust/crates/rusty-claude-cli/src/main.rs:4135-4183 | rust/crates/rusty-claude-cli/src/main.rs:4185-4228 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":4135}}}],"partialFingerprints":{"codehealthFindingId/v1":"45dce3d97f765d8f5a815edbd767e757f7f042eff78e5242794c26a48079d433"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): rust/crates/runtime/src/g004_conformance.rs:117-166 | rust/crates/runtime/src/g004_conformance.rs:230-254 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/g004_conformance.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4ec4868c60228acf458efcc86c0442d604ce76b89f21bc54a0a48258e43f77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): rust/crates/api/src/providers/openai_compat.rs:1577-1593 | rust/crates/api/src/sse.rs:59-79 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/openai_compat.rs"},"region":{"startLine":1577}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae972234f57b902731471bddc45986f0547ca7537511a4907fbf43b109eb2d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): rust/crates/sdk/src/session/reconciliation.rs:134-166 | rust/crates/sdk/src/session/reconciliation.rs:177-199 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/sdk/src/session/reconciliation.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0e4ba648926205f3f0686e81ecfd5fcacc55d364ebd37ef4ce5ca5b379fcd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): rust/crates/telemetry/src/lib.rs:350-368 | rust/crates/telemetry/src/lib.rs:378-395 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/telemetry/src/lib.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20ccd005127935170913872b709135ac9e361e24f0d76cc38d156513b5d1fa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): rust/crates/runtime/src/session.rs:765-787 | rust/crates/runtime/src/session.rs:1048-1070 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/session.rs"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f762765f485f47316d00e49a1e5d21d96ee8dc518ee95b09ad121d7e1df922"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/crates/sdk/src/session/reconciliation.rs:363-383 | rust/crates/sdk/src/session/terminal_scope.rs:112-137 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/sdk/src/session/reconciliation.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba821ca0eb9535f3aa178b4e78d5be487ad7b1d9157ed7f2ee4c03f93ab3064"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/crates/runtime/src/git_context.rs:91-125 | rust/crates/runtime/src/git_context.rs:127-145 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/git_context.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f904332144bbab38794341d83814579e358e4914e337477908a3ec9ed053b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): rust/crates/api/src/providers/anthropic.rs:833-858 | rust/crates/api/src/providers/openai_compat.rs:465-490 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43b9548d4443e5f5a56ff2d6e5977299dfd284d0cfa4ced2725136093a0be8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/crates/runtime/src/bash.rs:336-356 | rust/crates/runtime/src/bash.rs:363-387 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/bash.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e22e6438aabdb49e1e1f8b4baa58b4965b120627c030d41925533cbed00c64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): rust/crates/runtime/src/config.rs:2139-2157 | rust/crates/runtime/src/config.rs:2200-2217 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/config.rs"},"region":{"startLine":2139}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c015df7a36803a6c6cc2a713a3e99c6bd36a3cab716ba0aec1abf1fb345b3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/crates/runtime/src/compact.rs:458-474 | rust/crates/runtime/src/trident.rs:668-681 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/compact.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0221fb68f6ace9a412cc756a7531a2c59c4accf738e18a5158043488cf9023"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/crates/rusty-claude-cli/src/main.rs:8935-8959 | rust/crates/rusty-claude-cli/src/main.rs:8964-8984 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":8935}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd40fc26782b4886dbb2926fb0205f3ca927c896f6a10ca667f3e852ee8ea398"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): rust/crates/claw-analog/src/doctor.rs:387-411 | rust/crates/claw-analog/src/doctor.rs:413-440 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/claw-analog/src/doctor.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"d515ceb148ea39359d5cfbf48bf3b5abe2afbc29f947c7065a5addbe2fb19234"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/crates/runtime/src/oauth.rs:349-369 | rust/crates/tools/src/lib.rs:6647-6662 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/oauth.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"facc2216b18e9b7db233b6df73a33c30024b24dec43e34b82b9deca349f02c10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): rust/crates/runtime/src/config.rs:2532-2554 | rust/crates/runtime/src/config.rs:2589-2613 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/config.rs"},"region":{"startLine":2532}}}],"partialFingerprints":{"codehealthFindingId/v1":"376879fd15f53f666ba72b314353ed05b8b84c99c2cfbf4158f24b12624e9e5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): rust/crates/claw-analog/src/doctor.rs:276-298 | rust/crates/claw-analog/src/lib.rs:445-469 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/claw-analog/src/doctor.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"e594253901394ee28cbe419bca11c903dd9816a80cd94c87cad5d1d717caef29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): rust/crates/rusty-claude-cli/src/main.rs:14526-14548 | rust/crates/tools/src/lib.rs:5697-5720 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":14526}}}],"partialFingerprints":{"codehealthFindingId/v1":"c928a38cdf78de6be462d3a3fe0151e5b8c46af38f2208dde918b4714170fce2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/crates/api/src/providers/anthropic.rs:378-392 | rust/crates/api/src/providers/anthropic.rs:398-412 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc3f0e109ddb2bd29503edec1ff1aa2390a9ac7b1ef9782cc343888f117623f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/crates/runtime/src/session.rs:634-648 | rust/crates/runtime/src/session.rs:653-667 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/session.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b123d0e178b29fedcbc2b227326dc59f901ef5cf65105a623b5660006c2fce9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): rust/crates/rusty-claude-cli/src/main.rs:9564-9583 | rust/crates/rusty-claude-cli/src/main.rs:9585-9602 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":9564}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7be52439cbaab461e433a180e00075ef6d992a1aa7bd395cd6f5ee467942fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): rust/crates/api/src/error.rs:146-162 | rust/crates/api/src/error.rs:165-181 | rust/crates/api/src/error.rs:209-230 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/error.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04f926827e5cf864c440e5b0373a8adf57a6e8d451fc4daa04a7dadf54a8093"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): rust/crates/runtime/src/mcp_stdio.rs:712-730 | rust/crates/runtime/src/mcp_stdio.rs:736-754 | rust/crates/runtime/src/mcp_stdio.rs:819-837 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/mcp_stdio.rs"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"3053f3802440929a2894940d90d07da94f38fe3f339985e52cc0882ddd52488e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/crates/runtime/src/trident.rs:275-290 | rust/crates/runtime/src/trident.rs:292-309 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/trident.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d447cfbf96993fc1ce9a20fd259d8e34b4c00dc046927b9463313b082de323"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/crates/claw-analog/src/lib.rs:521-535 | rust/crates/claw-rag-service/src/db.rs:31-49 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda0f68103dbd50f233053c2bbfce046d16f7e3caf379070714f33704a35fa7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/crates/runtime/src/session.rs:924-942 | rust/crates/runtime/src/session.rs:944-966 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/session.rs"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"482dee62bb823540ae36f547e2e5b59d00c687e42c56a26eb481ed54aff83dd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/crates/runtime/src/team_cron_registry.rs:67-82 | rust/crates/runtime/src/team_cron_registry.rs:152-170 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/team_cron_registry.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0e542eb78689276f4a18c7a6581ac52b43250f3c54a8bfd155a3d14805888a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): rust/crates/api/src/providers/anthropic.rs:507-538 | rust/crates/api/src/providers/mod.rs:706-724 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"727b52d7b854e5cc4d7afe71b0184cbd8400b47df0845e6dd50b18ed962a5748"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): rust/crates/mock-anthropic-service/src/lib.rs:742-761 | rust/crates/mock-anthropic-service/src/lib.rs:768-787 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/mock-anthropic-service/src/lib.rs"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f65682c97905eb3d5e0cffdfd52ab82c2c6b09552528332ca4cb7957472bab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): rust/crates/runtime/src/g004_conformance.rs:168-191 | rust/crates/runtime/src/g004_conformance.rs:197-224 | rust/crates/runtime/src/g004_conformance.rs:260-272 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/g004_conformance.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2c6487450280ddb53cba4f80d12ad778f393471828531a296569d800b6035d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): rust/crates/runtime/src/config.rs:2451-2466 | rust/crates/runtime/src/config.rs:2472-2487 | rust/crates/runtime/src/config.rs:2493-2508 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/config.rs"},"region":{"startLine":2451}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d0b9e4f7f5e75e3ce2ac0efb2f213de12d3c0613494859b22b817fb6eb7e62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/crates/api/src/providers/anthropic.rs:638-652 | rust/crates/api/src/providers/anthropic.rs:677-692 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9206b14b339229aaf08eb416097ac7ab3989afc5452f89aabff795442f8b7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): rust/crates/rusty-claude-cli/src/main.rs:11659-11669 | rust/crates/rusty-claude-cli/src/main.rs:11838-11848 | rust/crates/rusty-claude-cli/src/main.rs:11850-11860 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":11659}}}],"partialFingerprints":{"codehealthFindingId/v1":"168d987f8bb867156dcf867ed90d0f41dde0b2a40aa529f237eb7d81a629ccf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/crates/commands/src/lib.rs:5246-5258 | rust/crates/commands/src/lib.rs:5275-5286 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":5246}}}],"partialFingerprints":{"codehealthFindingId/v1":"334dafced35d8f41692e9b35b6600061ea1e5b3b6255f2da6956cb476464f2c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/crates/runtime/src/mcp_tool_bridge.rs:124-138 | rust/crates/runtime/src/mcp_tool_bridge.rs:161-175 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/mcp_tool_bridge.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5bffe630882942ec4fc0d31e810b05aa9e0fc275f99dc662d7b5a81012525bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/commands.py:97-103 | src/tools.py:105-111 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commands.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef29738479bf64e7cca258639e126bd8eb9405b79d4b86e77002121078502fe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): rust/crates/runtime/src/git_context.rs:73-89 | rust/crates/runtime/src/prompt.rs:471-487 | rust/crates/runtime/src/stale_base.rs:109-125 | rust/crates/runtime/src/worker_boot.rs:1199-1218 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/git_context.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abcba876d1843d8ef60ea4f2afe29df020f84d97dc68ca8f1f87d94e8cfe259"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/crates/runtime/src/lane_events.rs:451-467 | rust/crates/runtime/src/report_schema.rs:372-382 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/lane_events.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e3dcace97f79614a765c3233a35abe074b254b4dded1c857ffc010709074c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/crates/runtime/src/oauth.rs:333-347 | rust/crates/tools/src/lib.rs:6632-6645 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/oauth.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"8614be8b19024e8c409066b298d2c90bcd9bdd14270426f7afb9fa2fec1ac27c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/crates/rusty-claude-cli/src/main.rs:2708-2724 | rust/crates/rusty-claude-cli/src/main.rs:2726-2741 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":2708}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2c8607d7ebe7167edd368f913a3ded0f3c87ec14f9b6fad7d72cd58b0fa23b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): rust/crates/rusty-claude-cli/src/main.rs:12582-12604 | rust/crates/rusty-claude-cli/src/main.rs:12606-12625 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":12582}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65ceb6c4d0380c8e6a6c1c048e966f02f1881cdabd4272aadc06bc76ed15333"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): rust/crates/sdk/src/frame.rs:179-191 | rust/crates/sdk/src/frame.rs:221-231 | rust/crates/sdk/src/frame.rs:234-244 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/sdk/src/frame.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"04842104632452d2796a124de7f42133741164ebdcb593e1db9a4e0933862ab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/crates/sdk/src/session/reconciliation.rs:91-106 | rust/crates/sdk/src/session/reconciliation.rs:299-313 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/sdk/src/session/reconciliation.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51f4260f9f1d53603e91e4111e5380197f9daf5d9487b3e4d0edbf2e4a0f613"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/crates/commands/src/lib.rs:4038-4051 | rust/crates/plugins/src/lib.rs:2313-2325 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":4038}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4db74e3633ed39cacc50863fe36d41c1c3d65282ae7bf3700ddd3f93c25c15a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): rust/crates/runtime/src/conversation.rs:965-981 | rust/crates/runtime/src/conversation.rs:983-995 | rust/crates/runtime/src/conversation.rs:1043-1052 | rust/crates/runtime/src/conversation.rs:1054-1063 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/conversation.rs"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff79c328da1dd5fde26b29dcfbd076dfccdb9b51149e7d0a4adaec7bf0d1776"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/crates/runtime/src/prompt.rs:757-771 | rust/crates/runtime/src/prompt.rs:773-787 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/prompt.rs"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"846b7c9982f589c38291d647372ea9401f881535ad05b671bc896575662c28bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/crates/rusty-claude-cli/src/main.rs:7656-7666 | rust/crates/rusty-claude-cli/src/main.rs:7704-7714 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":7656}}}],"partialFingerprints":{"codehealthFindingId/v1":"32551d5b53330e47eb36dc28ddb24ce9a2bde4309422aaf70a03edbf3fbbaf16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): rust/crates/api/src/providers/anthropic.rs:758-764 | rust/crates/api/src/providers/openai_compat.rs:1718-1724 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"97350a480e5126b85c8e24c037ecb071da97a2fc6401f417281bc0cd01548be8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/crates/runtime/src/stale_branch.rs:140-152 | rust/crates/runtime/src/stale_branch.rs:154-167 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/stale_branch.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c15593218c3cf0b7bff7e180431af033ddeae01219afacc7d1bc3bbd230db3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/crates/sdk/src/frame.rs:107-117 | rust/crates/sdk/src/frame.rs:126-139 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/sdk/src/frame.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61b4b49696fcb009addac9a2bbfa22c1bb4831d07367dea7e13a3df2286bfc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/crates/commands/src/lib.rs:4834-4850 | rust/crates/rusty-claude-cli/src/main.rs:5476-5490 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":4834}}}],"partialFingerprints":{"codehealthFindingId/v1":"e65606c37d063ac7850d13dbc79d4099f754c278bbfb03a3378a7f2877b3fe69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/crates/runtime/src/bash_validation.rs:185-199 | rust/crates/runtime/src/bash_validation.rs:577-584 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/bash_validation.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c34f5bf6d6268b673f21d9b2beed77d8e0dd5989d5e09916ccb49b9852c8d65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/crates/mock-anthropic-service/src/lib.rs:1218-1229 | rust/crates/mock-anthropic-service/src/lib.rs:1263-1274 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/mock-anthropic-service/src/lib.rs"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8313eafd0099056c401f9dbe04f28133bd393d6ce886e2bdef28a71f6ace22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): rust/crates/runtime/src/compact.rs:529-549 | rust/crates/runtime/src/compact.rs:551-571 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/compact.rs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3fa03e6d25ccfd4ccddc85c8627ccb6e8ff1ea8bda5d8343fd40c161bf6145"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/crates/runtime/src/lane_events.rs:1085-1094 | rust/crates/runtime/src/lane_events.rs:1097-1106 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/lane_events.rs"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"184f9803a47be8720312bbb5339e261a4c925be6e7f4379b9b31ccc60ea6fcda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/crates/rusty-claude-cli/src/main.rs:13763-13777 | rust/crates/rusty-claude-cli/src/main.rs:13779-13799 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":13763}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae0a0d72fee53c39b666c5309943b41a68ec27130f55f2d41c841391402760b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/crates/compat-harness/src/lib.rs:277-288 | rust/crates/compat-harness/src/lib.rs:290-301 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/compat-harness/src/lib.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"df05543ce5a40613ae46b38fdf875325c7b27f7c532e66035355cfa65f96e304"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/crates/runtime/src/compact.rs:498-511 | rust/crates/runtime/src/prompt.rs:661-674 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/compact.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"19306c30aad08507930196fab6df22cba6b50d5c402492fd9b5141f8f0fa9fdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): rust/crates/runtime/src/conversation.rs:431-447 | rust/crates/runtime/src/conversation.rs:455-475 | rust/crates/runtime/src/conversation.rs:482-500 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/conversation.rs"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f61bebb73627af0f3abc26b306ea9f5b571bf253b7c14025b7cc19bc52bd7dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): rust/crates/commands/src/lib.rs:1578-1601 | rust/crates/commands/src/lib.rs:1616-1633 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d8ed9aa47c82d11487089809eea386aee4e07992469f6ed3302acedb85835c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/crates/tools/src/lib.rs:1605-1616 | rust/crates/tools/src/lib.rs:1619-1633 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/tools/src/lib.rs"},"region":{"startLine":1605}}}],"partialFingerprints":{"codehealthFindingId/v1":"e467ec3f6ea5944f2bd3310382939f0a96c1396b12ac490edf5dadb10b4d99d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): rust/crates/runtime/src/session_control.rs:33-48 | rust/crates/runtime/src/session_control.rs:58-72 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/session_control.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ecaca1ec76b79d9e2584de86377acde981424c1777dbfb049e80653d753a43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/crates/api/src/providers/anthropic.rs:129-142 | rust/crates/api/src/providers/anthropic.rs:145-158 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16c2fc21e802d275f95395403d47befae88a7f1f45c502e2072d595197879ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): rust/crates/commands/src/lib.rs:4979-4992 | rust/crates/commands/src/lib.rs:5011-5026 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":4979}}}],"partialFingerprints":{"codehealthFindingId/v1":"8186d1a4c21f837e6e6a0d540f6378b50682af8f58474641a6624ad7a49030ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/crates/runtime/src/bash.rs:135-145 | rust/crates/runtime/src/bash.rs:147-157 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/bash.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"62171f10e60669c387bc4ac61dfb5f937a54661be359fbff266db46e90ab2dbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): rust/crates/runtime/src/g004_conformance.rs:310-322 | rust/crates/runtime/src/g004_conformance.rs:329-341 | rust/crates/runtime/src/g004_conformance.rs:349-361 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/g004_conformance.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd53b242129e02c373096a7fece5ffe7c6f1e099517649b69195b57399233b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/crates/mock-anthropic-service/src/lib.rs:272-282 | rust/crates/mock-anthropic-service/src/lib.rs:284-293 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/mock-anthropic-service/src/lib.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f8d8e0058114487639485fcc297c123a537abacb02f2ca26bb154005c78a62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/crates/rusty-claude-cli/src/init.rs:334-349 | rust/crates/rusty-claude-cli/src/init.rs:393-408 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/init.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"8131a4cc6bb15df41de382dacb5880caf3cd7609efa513147474ef75e62817f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): rust/crates/runtime/src/task_registry.rs:188-197 | rust/crates/runtime/src/task_registry.rs:296-305 | rust/crates/runtime/src/task_registry.rs:307-316 | rust/crates/runtime/src/task_registry.rs:318-327 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/task_registry.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a984ed20306f703b9c228a07f240d93a7f2e48979e63202536bdda5b7b87d95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/crates/runtime/src/team_cron_registry.rs:196-205 | rust/crates/runtime/src/team_cron_registry.rs:208-218 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/team_cron_registry.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e26b1f4830fe3d74d90c637cef4e7ee19106e5086e2dfb610c3c4345152ae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/crates/api/src/providers/openai_compat.rs:509-520 | rust/crates/api/src/sse.rs:28-39 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/openai_compat.rs"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8501f9c73fe5e6a95f21c9ee5308ae616257aa1a59f1723de9f63859b26c7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/crates/runtime/src/bash.rs:268-279 | rust/crates/tools/src/lib.rs:6997-7008 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/bash.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a8a65603f3dde95817d3a4680c0bdac4191a33fc1a82ff1fa9a37b3f575865"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): rust/crates/sdk/src/session/mod.rs:742-756 | rust/crates/sdk/src/session/mod.rs:762-773 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/sdk/src/session/mod.rs"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3ef4b2e254e9b443c0973d950e5a62bc3aa9729ec5f822ea9b73dfe0bb6240"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/crates/tools/src/lib.rs:1679-1689 | rust/crates/tools/src/lib.rs:1692-1703 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/tools/src/lib.rs"},"region":{"startLine":1679}}}],"partialFingerprints":{"codehealthFindingId/v1":"71cf4cf84116391b200e9b2ad15548a0f3fc6256af67922390d451109a36ad49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): rust/crates/tools/src/lib.rs:2573-2585 | rust/crates/tools/src/lib.rs:2596-2608 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/tools/src/lib.rs"},"region":{"startLine":2573}}}],"partialFingerprints":{"codehealthFindingId/v1":"562e58d07daa91b5a7008478414cd6f1bf63c355e7fdc6f4e7b729a6c6a05ecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rust/crates/rusty-claude-cli/src/main.rs:6578-6588 | rust/crates/runtime/src/prompt.rs:521-531 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":6578}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ff25603bc8c29657c74305d25999281304f6d59b81a19d261f61ef1028db05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/crates/runtime/src/prompt.rs:638-648 | rust/crates/runtime/src/worker_boot.rs:1379-1386 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/prompt.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9da2cbfb00446f82d058cdc5d9affc31f41e2353b3da488163d815d0bc96c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/crates/runtime/src/summary_compression.rs:213-228 | rust/crates/runtime/src/compact.rs:449-456 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/summary_compression.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec35ed6fe5b10af7b6539c25db512e65255534f5a32ea8c85f52bb21241e5978"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): rust/crates/claw-analog/src/lib.rs:767-782 | rust/crates/claw-analog/src/lib.rs:1580-1595 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2cdc545ddd93eb5383b9ac1064cd1371a7d324f329fddb64eb55455c11efde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): rust/crates/rusty-claude-cli/src/main.rs:12018-12025 | rust/crates/tools/src/lib.rs:3732-3738 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":12018}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd29dab262149e19af29eaa29f9b568ab662a934c19086468366e5ba7dfdf1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): rust/crates/claw-analog/src/agents.rs:402-408 | rust/crates/rusty-claude-cli/src/main.rs:11775-11782 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/claw-analog/src/agents.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"014658fad2738ed4c8a7f0b7d2c1bb79b35915a1054d657d70ed7c6c2fb1586e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/crates/runtime/src/mcp.rs:152-159 | rust/crates/runtime/src/session_control.rs:512-520 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/mcp.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc091ef8d6b2e41b6e867d75428dd168f939b7f68f2e2279268999b1b46b87e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): rust/crates/runtime/src/config.rs:1263-1275 | rust/crates/runtime/src/session.rs:1296-1305 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/config.rs"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"1982c20d6edd0d2203ab93a1aa8f4654d0fd2b40319ec1856f814223f170cd1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): rust/crates/commands/src/lib.rs:4095-4103 | rust/crates/tools/src/lib.rs:4124-4128 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":4095}}}],"partialFingerprints":{"codehealthFindingId/v1":"016ee677e244bac745e63c9629de40a2358e29ecee85df650345ff75a421ad1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): rust/crates/runtime/src/worker_boot.rs:1117-1121 | rust/crates/rusty-claude-cli/src/main.rs:2583-2587 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/worker_boot.rs"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3194341964b5f928692fc7f22740c2455d8eab42d0759845aa68e64596d0a01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): rust/crates/runtime/src/config.rs:394-402 | rust/crates/runtime/src/prompt.rs:17-22 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/config.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d28e081c1d0ab1fadc4bd093c62b391eb0908d8d210d64f26504de0acaaa98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): rust/crates/plugins/src/lib.rs:280-290 | rust/crates/runtime/src/lane_events.rs:122-129 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/plugins/src/lib.rs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87bfe528e7c8927b2443536d27c9e6fe9eb68a23572c18068c811773043d4df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): rust/crates/rusty-claude-cli/src/main.rs:11862-11867 | rust/crates/tools/src/lib.rs:2498-2503 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":11862}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8347b527378c2384b86f1062973318f907ed5a7e849950cd8a485a834a834c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:2364-2399 | rust/crates/rusty-claude-cli/src/main.rs:2419-2454 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/rusty-claude-cli/src/main.rs:2364\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":2364}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1bb24023791286c51b3612daa1c3a8dcc0c957c1377237830fe1ae3c491803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201325 lines \u00D7 2): rust/crates/runtime/src/config.rs:472-496 | rust/crates/runtime/src/config.rs:519-540 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/runtime/src/config.rs:472\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/config.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"bebf53e40f5fc58cab81ebe33967577160d5fdfd44b494bd37d3664f83546714"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 3): rust/crates/mock-anthropic-service/src/lib.rs:1010-1033 | rust/crates/mock-anthropic-service/src/lib.rs:1096-1116 | rust/crates/mock-anthropic-service/src/lib.rs:1151-1174 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/mock-anthropic-service/src/lib.rs:1010\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":"rust/crates/mock-anthropic-service/src/lib.rs"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"656f145fc17bec49e6c895bcec4a379bb8c45da10ea562a517087783c58b32c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201323 lines \u00D7 2): rust/crates/claw-analog/src/config_cmd.rs:88-106 | rust/crates/claw-analog/src/doctor.rs:188-210 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/claw-analog/src/config_cmd.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d2b5cbb33e569139336c3f3616fc3100a492c3d6e7938fd718f817cdfa9d52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): rust/crates/api/src/providers/anthropic.rs:614-635 | rust/crates/api/src/providers/openai_compat.rs:411-429 \u2014 before extracting anything, compare \u0060rust/crates/api/src/providers/anthropic.rs\u0060 and \u0060rust/crates/api/src/providers/openai_compat.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d70a3c96a6fcef21b66d8a8347efe74199fe73d0d643779594dd59d236472e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): rust/crates/commands/src/lib.rs:3150-3171 | rust/crates/commands/src/lib.rs:4239-4260 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/commands/src/lib.rs:3150\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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":3150}}}],"partialFingerprints":{"codehealthFindingId/v1":"a65c92b69bd9d9e3096bf26ffef7ad9376c929a6d5fbc9f57df92122c63e24ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): rust/crates/mock-anthropic-service/src/lib.rs:881-902 | rust/crates/mock-anthropic-service/src/lib.rs:1024-1045 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/mock-anthropic-service/src/lib.rs:881\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":"rust/crates/mock-anthropic-service/src/lib.rs"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"762d731187f28edf287aaa1cc9a4c9859651fc63837449eb152377a123d6d5f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201322 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:8123-8144 | rust/crates/rusty-claude-cli/src/main.rs:8239-8251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":8123}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc59a66143d7b9f48b476efdb10e309679f122ec259c558fc2b88f5290f607c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): rust/crates/claw-analog/src/lib.rs:2187-2207 | rust/crates/claw-analog/src/lib.rs:2241-2261 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/claw-analog/src/lib.rs:2187\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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":2187}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bea3e9e2a010ac1fa52c3c624312f8d3cf134581a96bffbcd244ee995ea2798"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): rust/crates/runtime/src/session_control.rs:387-408 | rust/crates/runtime/src/session_control.rs:452-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/runtime/src/session_control.rs:387\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":"rust/crates/runtime/src/session_control.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"76edc402378aff5f0ce1babac4e1ecb568ece9758370c66da0f4c5e70b134fb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): rust/crates/commands/src/lib.rs:3581-3597 | rust/crates/plugins/src/lib.rs:1080-1099 \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 \u0060rust/crates/commands/src/lib.rs:3581\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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":3581}}}],"partialFingerprints":{"codehealthFindingId/v1":"955b92baf5f9c0481df83acec2da27f68c5fbbff19858e125d31c87c82da15a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): rust/crates/tools/src/lib.rs:3745-3764 | rust/crates/tools/src/lib.rs:3782-3801 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/tools/src/lib.rs"},"region":{"startLine":3745}}}],"partialFingerprints":{"codehealthFindingId/v1":"6934717486eb91137578397e10e8b19630496539e6e1c6af26199d8d5cc585fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): rust/crates/commands/src/lib.rs:4323-4341 | rust/crates/commands/src/lib.rs:4380-4398 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/commands/src/lib.rs:4323\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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":4323}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e765a05b9a7516bbc7d1e3b5f01603ff7e1df2a14c75fc47d51ca46e25db30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): rust/crates/plugins/src/hooks.rs:245-263 | rust/crates/runtime/src/hooks.rs:643-661 \u2014 before extracting anything, compare \u0060rust/crates/plugins/src/hooks.rs\u0060 and \u0060rust/crates/runtime/src/hooks.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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. 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":"rust/crates/plugins/src/hooks.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf6e1241ea91b5ebd7380da8bf43adff20e6ebc7e34f6b2b61db809b532063c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:14757-14775 | rust/crates/tools/src/lib.rs:5584-5602 \u2014 before extracting anything, compare \u0060rust/crates/rusty-claude-cli/src/main.rs\u0060 and \u0060rust/crates/tools/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/rusty-claude-cli/src/main.rs:14757\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060rust/crates/tools/src/lib.rs:5603\u0060 calls \u0060filter\u0060, \u0060is_empty\u0060 and \u0060rust/crates/rusty-claude-cli/src/main.rs:14776\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":14757}}}],"partialFingerprints":{"codehealthFindingId/v1":"20afa1af46f6cc4046b94304ea64b6c56d517db57c27b1f2237385ef6b4b65e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): rust/crates/commands/src/lib.rs:4431-4448 | rust/crates/commands/src/lib.rs:4579-4596 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/commands/src/lib.rs:4431\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":4431}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1d54ff932a50a7d6c0f697b322f48ec01fe430f63597c3e7a0bf9d0dd3da58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): rust/crates/runtime/src/mcp_server.rs:266-283 | rust/crates/runtime/src/mcp_stdio.rs:1260-1277 \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 \u0060rust/crates/runtime/src/mcp_server.rs:266\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":"rust/crates/runtime/src/mcp_server.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"b377b7d23038e3d489f682f2863ae03f3149c17a63628e723c87d72c3df3ad2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): rust/crates/mock-anthropic-service/src/lib.rs:854-870 | rust/crates/mock-anthropic-service/src/lib.rs:1006-1022 | rust/crates/mock-anthropic-service/src/lib.rs:1092-1108 | rust/crates/mock-anthropic-service/src/lib.rs:1147-1163 \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 \u0060rust/crates/mock-anthropic-service/src/lib.rs:854\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/mock-anthropic-service/src/lib.rs"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a40d4cb4936071376f6bdd92d6fd151d11466ee2bb35b06216d7f87684980c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): rust/crates/runtime/src/session.rs:368-383 | rust/crates/runtime/src/session.rs:674-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/runtime/src/session.rs:674\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060rust/crates/runtime/src/session.rs:672\u0060 calls \u0060to_string\u0060, \u0060String\u0060 and \u0060rust/crates/runtime/src/session.rs:368\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":"rust/crates/runtime/src/session.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d3aadf5fe3a1318ee5c65513fc476cb0d697f220a36624a3255bff0e016d52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:6814-6830 | rust/crates/rusty-claude-cli/src/main.rs:8626-8642 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":6814}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce35246db5fc1a308a799512585587bdf3b0f5bb58a33f043fe58752725714a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): rust/crates/rusty-claude-cli/src/render.rs:755-771 | rust/crates/rusty-claude-cli/src/render.rs:950-966 \u2014 both copies are in the same file, so extract the block 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":"rust/crates/rusty-claude-cli/src/render.rs"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b82b63f31ee13e5c335959b3b0b04ee9c76a4d9e4562de562c690bca0edc14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/crates/commands/src/lib.rs:2505-2520 | rust/crates/commands/src/lib.rs:2771-2786 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/commands/src/lib.rs:2505\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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2505}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d62b6d0ccc980d11065c85afb3cbc03ed71b0a33b0e5c507474d2d2202dcdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): rust/crates/commands/src/lib.rs:2621-2638 | rust/crates/commands/src/lib.rs:2921-2938 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/commands/src/lib.rs:2621\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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2621}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfbd70f54702645b42601447e2c078c8ae14a6c21e7ccf23d3e2a5493614e71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): rust/crates/runtime/src/session_control.rs:413-428 | rust/crates/runtime/src/session_control.rs:475-488 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/session_control.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e4958f7e571e9ae388072b973f1b0e6b7d3d035b004371f286ddb80f1a80c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:3684-3699 | rust/crates/rusty-claude-cli/src/main.rs:10211-10226 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/rusty-claude-cli/src/main.rs:3684\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":3684}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb9c3bbcac822dc2b1ab0ebc0cd0bfec48e4eb126b634245aca95a91aea8965"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:13746-13761 | rust/crates/tools/src/lib.rs:5744-5759 \u2014 before extracting anything, compare \u0060rust/crates/rusty-claude-cli/src/main.rs\u0060 and \u0060rust/crates/tools/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 117 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. 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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":13746}}}],"partialFingerprints":{"codehealthFindingId/v1":"49dabc7e50ec9a37cd35f94bb709675aa0aa20fab754aa2ec3ee749b14e84461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): rust/crates/commands/src/lib.rs:3151-3165 | rust/crates/commands/src/lib.rs:4240-4254 | rust/crates/tools/src/lib.rs:4189-4203 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":3151}}}],"partialFingerprints":{"codehealthFindingId/v1":"fecb1376a01a6a48a51b0181391b5dd90fad10ed3ab0ca758ef016f4c1dedf58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): rust/crates/claw-analog/src/doctor.rs:630-644 | rust/crates/claw-analog/src/doctor.rs:702-716 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/claw-analog/src/doctor.rs:630\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":"rust/crates/claw-analog/src/doctor.rs"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"185ec136a9de478933a7fd06f4f8242543555e372b76eb49fd105b646b5dec36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:13555-13569 | rust/crates/tools/src/lib.rs:5486-5500 \u2014 before extracting anything, compare \u0060rust/crates/rusty-claude-cli/src/main.rs\u0060 and \u0060rust/crates/tools/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 117 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. 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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":13555}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d11e04c0ed0be582dd0e8213ebd083a38117f7069eb257cf00ab871feb9c7a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): rust/crates/mock-anthropic-service/src/lib.rs:990-1003 | rust/crates/mock-anthropic-service/src/lib.rs:1076-1089 | rust/crates/mock-anthropic-service/src/lib.rs:1126-1139 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/mock-anthropic-service/src/lib.rs:990\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":"rust/crates/mock-anthropic-service/src/lib.rs"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a60a2a7cc0094c53541fc6abd2035be0226c1cd06138f931a773d803030d79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): rust/crates/runtime/src/mcp_stdio.rs:717-730 | rust/crates/runtime/src/mcp_stdio.rs:741-754 | rust/crates/runtime/src/mcp_stdio.rs:824-837 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/runtime/src/mcp_stdio.rs:717\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":"rust/crates/runtime/src/mcp_stdio.rs"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"870119b3f3eacdf529da300960fef55e7644159925b1f5a182136ed22e0ad1ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/crates/api/src/providers/openai_compat.rs:1646-1659 | rust/crates/api/src/providers/openai_compat.rs:1699-1712 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060rust/crates/api/src/providers/openai_compat.rs:1698\u0060 calls \u0060trim\u0060 and \u0060rust/crates/api/src/providers/openai_compat.rs:1644\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/openai_compat.rs"},"region":{"startLine":1646}}}],"partialFingerprints":{"codehealthFindingId/v1":"754e3c5bc554de604b663fa7b99cda4e615e1a0bf9e527193013d48dd29ef181"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/crates/commands/src/lib.rs:2069-2082 | rust/crates/commands/src/lib.rs:2102-2115 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/commands/src/lib.rs:2069\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060rust/crates/commands/src/lib.rs:2083\u0060 calls \u0060filter\u0060, \u0060contains\u0060 and \u0060rust/crates/commands/src/lib.rs:2116\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2069}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce4c7214a897f0e10dd516e24da7fc74419e6d79bd3bdbd9a544265a6f64680"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): rust/crates/runtime/src/session.rs:926-938 | rust/crates/runtime/src/session.rs:949-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/runtime/src/session.rs:926\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060rust/crates/runtime/src/session.rs:947\u0060 calls \u0060to_string\u0060, \u0060String\u0060 and \u0060rust/crates/runtime/src/session.rs:926\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":"rust/crates/runtime/src/session.rs"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"789d4c116f1b36b93ac00dbf0a4ae7844b50bd69079af156937ffb30fac30696"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:14481-14494 | rust/crates/tools/src/lib.rs:5666-5676 \u2014 before extracting anything, compare \u0060rust/crates/rusty-claude-cli/src/main.rs\u0060 and \u0060rust/crates/tools/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/rusty-claude-cli/src/main.rs:14481\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":14481}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb48a3dd43d717a742906344ef329f0e17be87e4a17daba83cb46bcde60aaae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 4): rust/crates/commands/src/lib.rs:2505-2515 | rust/crates/commands/src/lib.rs:2618-2630 | rust/crates/commands/src/lib.rs:2771-2781 | rust/crates/commands/src/lib.rs:2920-2930 \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 \u0060rust/crates/commands/src/lib.rs:2505\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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2505}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5b20d146d71eac1ceb177396195a6cb5433b6fa38f670e2ecf31622aabd2cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): rust/crates/claw-analog/src/main.rs:294-305 | rust/crates/claw-analog/src/main.rs:447-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":"rust/crates/claw-analog/src/main.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9e57b37813b46ca0559a782f72987141ec801a80574bd93bb324bc46d6ddd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): rust/crates/runtime/src/git_context.rs:100-112 | rust/crates/runtime/src/git_context.rs:130-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/runtime/src/git_context.rs:100\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":"rust/crates/runtime/src/git_context.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"c609a8161b066c9294e921f4773c42f051e52760116c0a4d47aa3a494a3c2daa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): rust/crates/runtime/src/mcp_stdio.rs:563-575 | rust/crates/runtime/src/mcp_stdio.rs:590-601 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/runtime/src/mcp_stdio.rs:563\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":"rust/crates/runtime/src/mcp_stdio.rs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53dc292b9cb07fb047c7d58c6676e95c706a4fa6096698c3d43a71847fad36a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/crates/runtime/src/prompt.rs:475-487 | rust/crates/runtime/src/stale_base.rs:113-125 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/runtime/src/prompt.rs:475\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":"rust/crates/runtime/src/prompt.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c8dc8d37534beade328011aea858abad1c20089582cb4e59e459fce06549c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:9226-9238 | rust/crates/rusty-claude-cli/src/main.rs:9262-9274 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":9226}}}],"partialFingerprints":{"codehealthFindingId/v1":"e81b281a65c40e3076f710ee9a3a17aa6b6eb0996d22bc828510bcd19a015e1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/crates/commands/src/lib.rs:3131-3142 | rust/crates/commands/src/lib.rs:4204-4215 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/commands/src/lib.rs:3131\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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":3131}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69c1165f89c765d31362da20bac2df5dbbfa1c00864d16575051d7c65519da2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/crates/commands/src/lib.rs:4172-4183 | rust/crates/commands/src/lib.rs:4274-4285 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/commands/src/lib.rs:4172\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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":4172}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea69d3cfdb14ee4a5c563b20c3201d74c5e95f18ac6eb129f413fe93e023ced"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/crates/runtime/src/bash.rs:251-262 | rust/crates/tools/src/lib.rs:6980-6991 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/bash.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"a711e737e8f32fb2df4751421345fc97a010619189870be0a1e12329e7b28d7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/crates/runtime/src/line_range_selector.rs:146-157 | rust/crates/runtime/src/line_range_selector.rs:172-183 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/runtime/src/line_range_selector.rs:146\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/line_range_selector.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2cca1ce684144a420c49ee41bfe8d8b038018d8f0d4a43307417cb1ef35f49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/crates/runtime/src/trident.rs:332-343 | rust/crates/runtime/src/trident.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/runtime/src/trident.rs:332\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":"rust/crates/runtime/src/trident.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"52cc0b117c85fe5347b81c95f20970b38cb55cf7459e8c7936aae43ab9ff9a90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:8800-8811 | rust/crates/rusty-claude-cli/src/main.rs:8831-8842 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/rusty-claude-cli/src/main.rs:8800\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":8800}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf3aac2f8f1d2970b193a46d44dbaa7900113c892ffc0e3da927888bf144a9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:8870-8881 | rust/crates/rusty-claude-cli/src/main.rs:9224-9235 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/rusty-claude-cli/src/main.rs:8870\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":8870}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea480259d673936787a6af9d57c97b546752eebf3054c50e9bf3de4b1631016"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:9287-9298 | rust/crates/rusty-claude-cli/src/main.rs:9312-9323 \u2014 both copies are in the same file, so extract the block 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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":9287}}}],"partialFingerprints":{"codehealthFindingId/v1":"9673bb1f5859e05c88561db233acb6ca831bf5e22c7a01be000be2cfff2b03af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:9359-9370 | rust/crates/rusty-claude-cli/src/main.rs:9380-9390 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/rusty-claude-cli/src/main.rs:9359\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":9359}}}],"partialFingerprints":{"codehealthFindingId/v1":"040ad25bab244747def68b207ca62c1932ae872e9aaaebdef0e855b4a5bbbfc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:11110-11121 | rust/crates/rusty-claude-cli/src/main.rs:11238-11251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":11110}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae1eea8bcf78fd93520da4f92ef7eff237d8cc1ee8b0fd66f683b61c1338c4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:14300-14311 | rust/crates/rusty-claude-cli/src/main.rs:14332-14343 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":14300}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc1f5ee1aaf1625cadb9f36937239df30c808dbbcd1d3da5481a9914f6d55e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:14737-14748 | rust/crates/tools/src/lib.rs:5568-5579 \u2014 before extracting anything, compare \u0060rust/crates/rusty-claude-cli/src/main.rs\u0060 and \u0060rust/crates/tools/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/rusty-claude-cli/src/main.rs:14737\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":14737}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c581c92db58ed2f12255693cde1f85624cc5567ea26f7abd218337eaa94fc9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): rust/crates/sdk/src/session/reconciliation.rs:135-146 | rust/crates/sdk/src/session/reconciliation.rs:178-187 \u2014 both copies are in the same file, so extract the block 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/sdk/src/session/reconciliation.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"666b2319de021a0ad294ff7836bdb7ec42a76da1c8bb56793f50333543712018"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): rust/crates/runtime/src/config.rs:481-490 | rust/crates/runtime/src/config.rs:528-537 | rust/crates/runtime/src/config.rs:607-617 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/runtime/src/config.rs:481\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":"rust/crates/runtime/src/config.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac410a4e240db537be4da0f5f9724886243730e848c1458bc633b3acc2ee54cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/crates/api/src/providers/anthropic.rs:379-389 | rust/crates/api/src/providers/anthropic.rs:399-409 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/api/src/providers/anthropic.rs:379\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060request\u0060 to \u0060\u0026OAuthTokenExchangeRequest\u0060 in one and \u0060\u0026OAuthRefreshRequest\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":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"09213570d3a2e84c71deab7aaaf8db3eb7ad3437e59fc78e4ba9bd9b31945b27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/crates/api/src/providers/anthropic.rs:587-597 | rust/crates/api/src/providers/openai_compat.rs:371-381 \u2014 before extracting anything, compare \u0060rust/crates/api/src/providers/anthropic.rs\u0060 and \u0060rust/crates/api/src/providers/openai_compat.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8c84c086c246ce8e38074f87d080db97fc6a9d6ff509ff490757eed56019a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): rust/crates/claw-analog/src/lib.rs:2165-2175 | rust/crates/claw-analog/src/lib.rs:2225-2234 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/claw-analog/src/lib.rs:2165\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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":2165}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ccc96366cf6348eb3302421bcda9e1468df7d16419acc30fc5afe2e6bd5d330"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/crates/mock-anthropic-service/src/lib.rs:743-753 | rust/crates/mock-anthropic-service/src/lib.rs:769-779 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/mock-anthropic-service/src/lib.rs:743\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":"rust/crates/mock-anthropic-service/src/lib.rs"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e721fc99780f4cf42feffd0761f4f7241dcc9f52678579178da1368a55d5860"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/crates/runtime/src/mcp_stdio.rs:843-853 | rust/crates/runtime/src/mcp_stdio.rs:911-921 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/runtime/src/mcp_stdio.rs:843\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":"rust/crates/runtime/src/mcp_stdio.rs"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48e03086e3ada4a0c2ee57c9646ab1394b8e3b25fff336675310201d2edfed3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/crates/runtime/src/mcp_tool_bridge.rs:141-151 | rust/crates/runtime/src/mcp_tool_bridge.rs:246-256 \u2014 both copies are in the same file, so extract the block 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":"rust/crates/runtime/src/mcp_tool_bridge.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"19db968111200ab6493ea5bcc885bbd246c506cde5032b2f4f7af55352c82277"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/crates/runtime/src/session.rs:635-645 | rust/crates/runtime/src/session.rs:654-664 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/session.rs"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0366637f72f3405d89e70843502e6ebb59de815b74448da24bd6334622706a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:8831-8841 | rust/crates/rusty-claude-cli/src/main.rs:9359-9369 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/rusty-claude-cli/src/main.rs:8831\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":8831}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75757068ac3c40080b5d5edbe938e8c397618912dfe6ddd8ecfc6e38bdc76b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): rust/crates/sdk/src/session/reconciliation.rs:135-144 | rust/crates/sdk/src/session/reconciliation.rs:178-187 | rust/crates/sdk/src/session/reconciliation.rs:300-309 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/sdk/src/session/reconciliation.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b22b56ae5946b1fbc6077981d98ffbcbd99af4e21f3b824a9bcbf674a2a85c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/crates/api/src/error.rs:169-178 | rust/crates/api/src/error.rs:218-227 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/error.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24dfe12d0f5d1df8008d54374328a5cf4cf5cf70f1f3e3cc9ad685effc94039"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/crates/api/src/error.rs:221-230 | rust/crates/api/src/error.rs:251-260 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/api/src/error.rs:221\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":"rust/crates/api/src/error.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a14d233c92034decc54a279ed1081da407782c674680bb77ef448919397db49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/crates/api/src/providers/openai_compat.rs:246-255 | rust/crates/api/src/providers/openai_compat.rs:1618-1627 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/api/src/providers/openai_compat.rs:246\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":"rust/crates/api/src/providers/openai_compat.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10a964791703f38d30e2473f312752eb1505516a73f8a5d971d30d31cd47542"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/crates/commands/src/lib.rs:2808-2817 | rust/crates/commands/src/lib.rs:2981-2990 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/commands/src/lib.rs:2808\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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2808}}}],"partialFingerprints":{"codehealthFindingId/v1":"8673cc77471f5928d1b9ca50fa15e4dd63bc4725c563207d6e5852f3f2a66243"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/crates/commands/src/lib.rs:4450-4459 | rust/crates/commands/src/lib.rs:4605-4614 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/commands/src/lib.rs:4450\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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":4450}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea574398ac44ec58452dda23d06c9cf00c868ff346aa194badc11575f54adab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/crates/plugins/src/hooks.rs:270-279 | rust/crates/runtime/src/hooks.rs:731-740 \u2014 before extracting anything, compare \u0060rust/crates/plugins/src/hooks.rs\u0060 and \u0060rust/crates/runtime/src/hooks.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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. 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":"rust/crates/plugins/src/hooks.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45dc5e31e16f06e025fc62f2d2e97b03d22ab2affe26537371514caf6b19e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201310 lines \u00D7 3): rust/crates/commands/src/lib.rs:2005-2008 | rust/crates/runtime/src/config_validate.rs:471-480 | rust/crates/rusty-claude-cli/src/main.rs:2908-2917 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/commands/src/lib.rs:2005\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060rust/crates/runtime/src/config_validate.rs:470\u0060 calls \u0060iter\u0060, \u0060enumerate\u0060, \u0060from\u0060 and \u0060rust/crates/commands/src/lib.rs:2005\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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"7174cfb02ce6e2f8777c6ba89b925724a3b6f7322441dec8abe99abc0dee5ed3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/crates/runtime/src/trident.rs:276-285 | rust/crates/runtime/src/trident.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/runtime/src/trident.rs:276\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":"rust/crates/runtime/src/trident.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"a344a1a1f00cf9ffbffff38305146d7246d4933ec33ffeff9204b009ed2466be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:8317-8326 | rust/crates/rusty-claude-cli/src/main.rs:8343-8352 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/rusty-claude-cli/src/main.rs:8317\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":8317}}}],"partialFingerprints":{"codehealthFindingId/v1":"345db1634f8e896038d6166ec5ca0971c4717ba4f21905a70aef17381909f4a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/crates/api/src/providers/anthropic.rs:915-923 | rust/crates/api/src/providers/openai_compat.rs:1791-1799 \u2014 before extracting anything, compare \u0060rust/crates/api/src/providers/anthropic.rs\u0060 and \u0060rust/crates/api/src/providers/openai_compat.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd568d12d30e21817f9e2738a83eb8b2d91393126544432fa6c1a56e1e94fb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): rust/crates/commands/src/lib.rs:1994-2006 | rust/crates/rusty-claude-cli/src/main.rs:2894-2906 \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 \u0060rust/crates/commands/src/lib.rs:1994\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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":1994}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0b9cac6d11c005680e9606bc9c9676489440bdb222d3bf1e0d5a6e051d61e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/crates/commands/src/lib.rs:2834-2842 | rust/crates/commands/src/lib.rs:3012-3020 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/commands/src/lib.rs:2834\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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2834}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bee9ab2c699c55b3dcd86a1e1f022b62447ee712b03b78ef264fa41bb6d2341"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/crates/commands/src/lib.rs:4891-4899 | rust/crates/commands/src/lib.rs:4906-4914 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":4891}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bbd2277b2a26abc84b02b74061ef8c7f0d570358427b3c8619c4c46a72d13d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/crates/runtime/src/mcp_tool_bridge.rs:125-133 | rust/crates/runtime/src/mcp_tool_bridge.rs:162-170 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/runtime/src/mcp_tool_bridge.rs:125\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/mcp_tool_bridge.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"1700973d4b36e2431e9a5d3a5ca8e66a2a49f512444853bb2c7c7d6cfd99cc34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/crates/runtime/src/session.rs:396-404 | rust/crates/runtime/src/session.rs:691-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":"rust/crates/runtime/src/session.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5da00921ee4e9516a38c08682b4459d3e7891d168c9523ae80a2d8320d44ea2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:2713-2721 | rust/crates/rusty-claude-cli/src/main.rs:2730-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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":2713}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e089de4556083d5ca9cd405d0264da6cfa59961df940e11383cc1e200db8664"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:10918-10925 | rust/crates/rusty-claude-cli/src/main.rs:10927-10935 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/rusty-claude-cli/src/main.rs:10927\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":10918}}}],"partialFingerprints":{"codehealthFindingId/v1":"800e4573e502a2f12027d72d6d44d55a5ead1debb71d9ddd953f4937e6e034ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:13619-13628 | rust/crates/rusty-claude-cli/src/main.rs:13642-13650 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/rusty-claude-cli/src/main.rs:13619\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":13619}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56eb728ff0fcaf03444693b22f3c782e8ae86131e79f08f3df168c41b0f4e1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/crates/tools/src/lib.rs:6665-6673 | rust/crates/tools/src/lib.rs:6752-6760 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/tools/src/lib.rs"},"region":{"startLine":6665}}}],"partialFingerprints":{"codehealthFindingId/v1":"66006818da2c0539fa0d38d1c7957256176c5c9a85af0dab80d338c8bb528b40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): rust/crates/api/src/error.rs:171-178 | rust/crates/api/src/error.rs:220-227 | rust/crates/api/src/error.rs:250-257 \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":"rust/crates/api/src/error.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"9719fb586d42d74a9edcad101f61616fdec301e915efb73708998c1fb5803e01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): rust/crates/runtime/src/git_context.rs:76-83 | rust/crates/runtime/src/prompt.rs:474-481 | rust/crates/runtime/src/stale_base.rs:112-119 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/runtime/src/git_context.rs:76\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/git_context.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa8803230a1eadf848fb32e27a74f3dd52877e100be1b4db7a7e4fd0996aaa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): rust/crates/rusty-claude-cli/src/main.rs:1802-1809 | rust/crates/rusty-claude-cli/src/main.rs:2381-2388 | rust/crates/rusty-claude-cli/src/main.rs:2436-2443 \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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":1802}}}],"partialFingerprints":{"codehealthFindingId/v1":"e337aff76679037c2981f30061279fad704ca4aad68113d0c7a227b49c7ccd4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): rust/crates/rusty-claude-cli/src/main.rs:8301-8308 | rust/crates/rusty-claude-cli/src/main.rs:8315-8322 | rust/crates/rusty-claude-cli/src/main.rs:8341-8348 \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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":8301}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf262317df2d9c9302572ecf6026588c21c94917e74676ad584213e9196a386"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/crates/runtime/src/hooks.rs:379-386 | rust/crates/runtime/src/hooks.rs:391-398 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/hooks.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f1e5d15566135f05440116ade1c813a7c8979a2fb493b13463d1fec47fb08f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/crates/runtime/src/lane_events.rs:460-467 | rust/crates/runtime/src/report_schema.rs:375-382 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/runtime/src/lane_events.rs:460\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":"rust/crates/runtime/src/lane_events.rs"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be73d9a4142228be4052f400b0124965b528e6390a585e1f1097cb5442363c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:362-369 | rust/crates/rusty-claude-cli/src/main.rs:372-379 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/rusty-claude-cli/src/main.rs:362\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7927ea3890e9964f5e53de2c35cc73d119fa36027fac56fa62daaa20b2e8b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:6761-6777 | rust/crates/rusty-claude-cli/src/main.rs:7038-7054 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/rusty-claude-cli/src/main.rs:6761\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":6761}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca924c1252f00944640c387998d7ac38933be768d5ab55f0aec6794e0c7f2a2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:9079-9086 | rust/crates/rusty-claude-cli/src/main.rs:9096-9103 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/rusty-claude-cli/src/main.rs:9079\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":9079}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8a93f8101b6e02db48ac4f8337c987583dac6ac67649ad5997d53dc3513ace"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): rust/crates/rusty-claude-cli/src/main.rs:1786-1792 | rust/crates/rusty-claude-cli/src/main.rs:2366-2372 | rust/crates/rusty-claude-cli/src/main.rs:2421-2427 \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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":1786}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63b43118222a228c74b1e7f6e561874e42e356f661a8b4a719502252226ae78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): rust/crates/rusty-claude-cli/src/main.rs:13619-13626 | rust/crates/rusty-claude-cli/src/main.rs:13632-13638 | rust/crates/rusty-claude-cli/src/main.rs:13642-13648 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/rusty-claude-cli/src/main.rs:13619\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":13619}}}],"partialFingerprints":{"codehealthFindingId/v1":"78abf55971d285e1119d68f1b7830449464f1728d8db3f8518d18e09219ba2a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/crates/api/src/providers/anthropic.rs:883-889 | rust/crates/api/src/providers/openai_compat.rs:1757-1763 \u2014 before extracting anything, compare \u0060rust/crates/api/src/providers/anthropic.rs\u0060 and \u0060rust/crates/api/src/providers/openai_compat.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 80 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":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab527a9827b5f7cc206d562f64cbb2f511859cb0a1807ff5486a338442523513"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/crates/claw-analog/src/lib.rs:510-517 | rust/crates/claw-analog/src/lib.rs:548-555 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48dbf7d5b8e0c86fd131e553128acf6c03dd987724bf6c95f4480bf8488a9f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/crates/commands/src/lib.rs:2526-2532 | rust/crates/commands/src/lib.rs:2792-2799 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/commands/src/lib.rs:2526\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2526}}}],"partialFingerprints":{"codehealthFindingId/v1":"345fbda328c6c156be95de3b8fa401621a973411e0480adc866876cda19fd489"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/crates/plugins/src/hooks.rs:190-196 | rust/crates/runtime/src/hooks.rs:435-441 \u2014 before extracting anything, compare \u0060rust/crates/plugins/src/hooks.rs\u0060 and \u0060rust/crates/runtime/src/hooks.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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":"rust/crates/plugins/src/hooks.rs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c5de149582c03029b6b4d3b3907a9e82fe9885d0d3c636041dd071e24d4863"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:14690-14696 | rust/crates/rusty-claude-cli/src/main.rs:14702-14708 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/rusty-claude-cli/src/main.rs:14690\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":14690}}}],"partialFingerprints":{"codehealthFindingId/v1":"4340086175e5ab8ba8515ac51ffc48db526ca9fbc14d515d0ae670efd4d79304"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/crates/claw-analog/src/lib.rs:1968-1973 | rust/crates/claw-analog/src/lib.rs:2123-2128 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060rust/crates/claw-analog/src/lib.rs:2129\u0060 calls \u0060Some\u0060, \u0060get\u0060, \u0060and_then\u0060 and \u0060rust/crates/claw-analog/src/lib.rs:1974\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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":1968}}}],"partialFingerprints":{"codehealthFindingId/v1":"14431ef4661151dfc0ea78ba200b3e17a23808d848564ecc1b7e6c380ef2972d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/crates/commands/src/lib.rs:2321-2326 | rust/crates/commands/src/lib.rs:2437-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/commands/src/lib.rs:2321\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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2321}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ccf70ede06507917247a9848df8b323d86900010c6b746f8d973f87f802acb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/crates/commands/src/lib.rs:2483-2488 | rust/crates/commands/src/lib.rs:2749-2754 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/commands/src/lib.rs:2483\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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2483}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35313e04a8f9fdd0101a55cfda3661c6e2dc93c6289e044b771aab34c57c8ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:11839-11845 | rust/crates/rusty-claude-cli/src/main.rs:11851-11857 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/rusty-claude-cli/src/main.rs:11839\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":11839}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd41a86074d5c641648b3d8e2b24f980e6f341b435f320f68ca7c3cc31ed5fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/crates/sdk/src/frame.rs:235-240 | rust/crates/sdk/src/frame.rs:252-257 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/sdk/src/frame.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c01343289ca73037a95ffef87006d6fcc9d8368faec6484205bc01b197ae4d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): rust/crates/tools/src/lib.rs:2196-2201 | rust/crates/tools/src/lib.rs:2230-2235 | rust/crates/tools/src/lib.rs:2277-2281 | rust/crates/tools/src/lib.rs:2297-2301 \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 \u0060rust/crates/tools/src/lib.rs:2196\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/tools/src/lib.rs"},"region":{"startLine":2196}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a59d3f684dab3279df6e6e0d6596d2152b2f6be262f01f7473226629e508a56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): rust/crates/rusty-claude-cli/src/main.rs:11663-11667 | rust/crates/rusty-claude-cli/src/main.rs:11842-11846 | rust/crates/rusty-claude-cli/src/main.rs:11854-11858 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/rusty-claude-cli/src/main.rs:11663\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":11663}}}],"partialFingerprints":{"codehealthFindingId/v1":"749d36f6e96881473207719080f54470bf409c7a99b886ceae4408fd8a73231f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/crates/runtime/src/compact.rs:459-463 | rust/crates/runtime/src/trident.rs:669-673 \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 \u0060rust/crates/runtime/src/compact.rs:459\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":"rust/crates/runtime/src/compact.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06505b8eeee6edabd7289fca698d632e4bcba804a8615863f489fe55adc0ce2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:3670-3675 | rust/crates/rusty-claude-cli/src/main.rs:10199-10204 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060rust/crates/rusty-claude-cli/src/main.rs:3676\u0060 calls \u0060empty\u0060, \u0060as_ref\u0060, \u0060ok\u0060 and \u0060rust/crates/rusty-claude-cli/src/main.rs:10205\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":3670}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee67fddf546029a2ee23cc52fb3175fdd30b004ea2f5f11bb260a5271b69bbfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:11126-11130 | rust/crates/rusty-claude-cli/src/main.rs:11254-11258 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/rusty-claude-cli/src/main.rs:11126\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":11126}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b9b2ade24e76ea2c05fcd94b1f7d5a37e54e38f0384151c97b155c1c9e038b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/crates/tools/src/lib.rs:6230-6235 | rust/crates/tools/src/lib.rs:6299-6304 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/tools/src/lib.rs"},"region":{"startLine":6230}}}],"partialFingerprints":{"codehealthFindingId/v1":"da39b40f2742a2fb87542fc73af1bbc5e4936951a683e01b13c53e37465fd30e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/crates/api/src/providers/anthropic.rs:218-225 | rust/crates/api/src/providers/openai_compat.rs:219-226 \u2014 before extracting anything, compare \u0060rust/crates/api/src/providers/anthropic.rs\u0060 and \u0060rust/crates/api/src/providers/openai_compat.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 80 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":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58ea21b87907e383296b1f64d2db78fefd9352ae2a1c8601c57851932e863f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/crates/api/src/providers/anthropic.rs:787-793 | rust/crates/api/src/providers/openai_compat.rs:1748-1754 \u2014 before extracting anything, compare \u0060rust/crates/api/src/providers/anthropic.rs\u0060 and \u0060rust/crates/api/src/providers/openai_compat.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 80 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":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66f90acb9ba25c6ed134f4ed2b01259155f0e51e4e466e7a14bbed8a7d9b736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/crates/api/src/providers/anthropic.rs:937-946 | rust/crates/api/src/providers/openai_compat.rs:1812-1821 \u2014 before extracting anything, compare \u0060rust/crates/api/src/providers/anthropic.rs\u0060 and \u0060rust/crates/api/src/providers/openai_compat.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 80 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":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"25874ff94e70e0c20133b27665aec2cf72283e244ddf97d229f671e35216f3a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/crates/claw-analog/src/doctor.rs:251-260 | rust/crates/claw-analog/src/lib.rs:416-425 \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":"rust/crates/claw-analog/src/doctor.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"910f402a760aa19930dabace63f7c075ff9cd0d2cc2762051c7ef1e2a874a76e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/crates/claw-analog/src/lib.rs:259-265 | rust/crates/claw-analog/src/main.rs:211-217 \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":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"a095ade3beed4222083fbc7a9aca491368c0e551c8036018a8ce02952f01e094"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/crates/claw-rag-service/src/qdrant_index.rs:171-177 | rust/crates/claw-rag-service/src/search.rs:81-87 \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":"rust/crates/claw-rag-service/src/qdrant_index.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb4e8eb1384cc3077bea9e49595058a777897704a505f3567541eb1022a82f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:14550-14561 | rust/crates/tools/src/lib.rs:5722-5728 \u2014 before extracting anything, compare \u0060rust/crates/rusty-claude-cli/src/main.rs\u0060 and \u0060rust/crates/tools/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 117 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060client\u0060 to \u0060\u0026ApiProviderClient\u0060 in one and \u0060\u0026ProviderClient\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":14550}}}],"partialFingerprints":{"codehealthFindingId/v1":"559c8fc0c0e0e013015e380b209e5c12e150d93cf029c8015b7ab7fb541c3ab1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:14565-14574 | rust/crates/tools/src/lib.rs:5732-5741 \u2014 before extracting anything, compare \u0060rust/crates/rusty-claude-cli/src/main.rs\u0060 and \u0060rust/crates/tools/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/rusty-claude-cli/src/main.rs:14565\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":14565}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52944f2f94c20057c73c714849c369ab6aedcce838c0c005ba3cfe19889d4ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:14814-14825 | rust/crates/tools/src/lib.rs:5633-5644 \u2014 before extracting anything, compare \u0060rust/crates/rusty-claude-cli/src/main.rs\u0060 and \u0060rust/crates/tools/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/rusty-claude-cli/src/main.rs:14814\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":14814}}}],"partialFingerprints":{"codehealthFindingId/v1":"60eed394efca2614b1a96aa6a6e3b0cd84b87f59e4e56e24481e2a3111dc0710"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:14828-14834 | rust/crates/tools/src/lib.rs:5647-5653 \u2014 before extracting anything, compare \u0060rust/crates/rusty-claude-cli/src/main.rs\u0060 and \u0060rust/crates/tools/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 117 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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":14828}}}],"partialFingerprints":{"codehealthFindingId/v1":"7540b0819cd6df17a8165cb2bb2d2ec92796fbd66fa5de5ebcce94f184f3ce5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/crates/claw-analog/src/agents.rs:51-59 | rust/crates/claw-analog/src/doctor.rs:37-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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060p\u0060 to \u0060AgentsPermissionArg\u0060 in one and \u0060DoctorPermissionArg\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":"rust/crates/claw-analog/src/agents.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7fd9e544a7d620f906197b557acfeee435f9d7e86e03fe5222eb92633aa5aa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/crates/claw-analog/src/doctor.rs:262-270 | rust/crates/claw-analog/src/lib.rs:429-437 \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":"rust/crates/claw-analog/src/doctor.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"0771daf2b72fa53af1ce8f0127344b23da403e3f71c7a954e976b94e0409e4a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): rust/crates/runtime/src/mcp_stdio.rs:865-880 | rust/crates/runtime/src/mcp_stdio.rs:933-948 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/runtime/src/mcp_stdio.rs:865\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/mcp_stdio.rs"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd3b5eda187263107b74b777f90553c6e2cde8c02f5326572c18a7d6e2cb41a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:8073-8086 | rust/crates/rusty-claude-cli/src/main.rs:8222-8235 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/rusty-claude-cli/src/main.rs:8073\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":8073}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d7bc0db153767005f79a37f47099d0295856c5e2b7a46628a266f8f5904a78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): rust/crates/runtime/src/mcp_server.rs:101-112 | rust/crates/runtime/src/mcp_server.rs:125-136 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/runtime/src/mcp_server.rs:101\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":"rust/crates/runtime/src/mcp_server.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"842196d2dce5892556dc12cf6320274963a11a24d4ba0772ac71821a2c853a3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): rust/crates/commands/src/lib.rs:4333-4343 | rust/crates/commands/src/lib.rs:4404-4414 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/commands/src/lib.rs:4333\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":"rust/crates/commands/src/lib.rs"},"region":{"startLine":4333}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd5be31bfdca71e725f14429a37a0b47b64be3dece9ce3a1751174ca20409dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): rust/crates/mock-anthropic-service/src/lib.rs:892-902 | rust/crates/mock-anthropic-service/src/lib.rs:977-987 | rust/crates/mock-anthropic-service/src/lib.rs:1035-1045 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/mock-anthropic-service/src/lib.rs:892\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":"rust/crates/mock-anthropic-service/src/lib.rs"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3275aeb81619dfc1b497faa40b814c951041096dbe333b3432b18eee0ab018"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/crates/mock-anthropic-service/src/lib.rs:1240-1249 | rust/crates/mock-anthropic-service/src/lib.rs:1252-1261 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/mock-anthropic-service/src/lib.rs"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1482dc688cd4742e6751ae5c50269bd724d3561746c7661058a43e39adfa712"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/crates/plugins/src/lib.rs:1868-1877 | rust/crates/plugins/src/lib.rs:1936-1945 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/plugins/src/lib.rs:1868\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/plugins/src/lib.rs"},"region":{"startLine":1868}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f07d48d5e97eea1eeecfe1b11c2b4a3cdef336c0ddeb3549cdb1aec2580d64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/crates/commands/src/lib.rs:3569-3578 | rust/crates/plugins/src/lib.rs:1067-1076 \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 \u0060rust/crates/commands/src/lib.rs:3569\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":3569}}}],"partialFingerprints":{"codehealthFindingId/v1":"0246808c9959bbb0c464797ccfafa95f51a7ef0bf22dae15aebeb1784c78dae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/crates/runtime/src/worker_boot.rs:438-447 | rust/crates/runtime/src/worker_boot.rs:573-582 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/runtime/src/worker_boot.rs:438\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":"rust/crates/runtime/src/worker_boot.rs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd33c103a30e8487c55adc2523fc491181d4d4b63b1eaf73e1c1ee5ca4695a88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/crates/commands/src/lib.rs:2585-2594 | rust/crates/commands/src/lib.rs:2886-2895 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/commands/src/lib.rs:2585\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2585}}}],"partialFingerprints":{"codehealthFindingId/v1":"678cd0c49f66cd1a017f1adade94112341a51e94521072ef2561978d03759257"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): rust/crates/rusty-claude-cli/src/main.rs:12809-12818 | rust/crates/rusty-claude-cli/src/main.rs:12820-12829 | rust/crates/rusty-claude-cli/src/main.rs:14115-14124 \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. 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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":12809}}}],"partialFingerprints":{"codehealthFindingId/v1":"932e68a4dd8d54c85d9a8cef2c7c3b20811c90cac406250cdbbc0dac379e6af7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): rust/crates/plugins/src/lib.rs:1880-1889 | rust/crates/plugins/src/lib.rs:1951-1960 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/plugins/src/lib.rs:1880\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":"rust/crates/plugins/src/lib.rs"},"region":{"startLine":1880}}}],"partialFingerprints":{"codehealthFindingId/v1":"22713c1ff15cc610fbf718bc4282cd0132d3d6de68e6ba7be70b1e96d7088b76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/crates/commands/src/lib.rs:4473-4480 | rust/crates/commands/src/lib.rs:4620-4628 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/commands/src/lib.rs:4473\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060rust/crates/commands/src/lib.rs:4482\u0060 calls \u0060display\u0060, \u0060to_string\u0060 and \u0060rust/crates/commands/src/lib.rs:4630\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":4473}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e22977e56d42ac969b0515099a7aebc1392c83fe81ea88e784f27b0e0f4e79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): rust/crates/claw-analog/src/lib.rs:1836-1844 | rust/crates/claw-analog/src/lib.rs:2055-2063 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/claw-analog/src/lib.rs:1836\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":1836}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeef0aa1af7d2c700ad13ab33b5235ecb7899864ee698311d49d76f3624646d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): rust/crates/api/src/providers/openai_compat.rs:247-255 | rust/crates/api/src/providers/openai_compat.rs:1619-1627 | rust/crates/api/src/providers/openai_compat.rs:1671-1679 \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":"rust/crates/api/src/providers/openai_compat.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd24e71d75d2b42b1345b8787009925c38ac4dd306507e129d424f1e9bc29bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:1746-1753 | rust/crates/rusty-claude-cli/src/main.rs:1754-1761 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":1746}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2015f837fce769fd6ba565a369c221facbdb8639a33314c22e8a201df0ee437"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): rust/crates/runtime/src/conversation.rs:984-991 | rust/crates/runtime/src/conversation.rs:1044-1049 | rust/crates/runtime/src/conversation.rs:1055-1060 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/runtime/src/conversation.rs:984\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/conversation.rs"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e679bfb512f331b70200c911dc1e7cb8c9000c46c9df42ef240a1650e1ca31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/crates/runtime/src/config.rs:1691-1698 | rust/crates/runtime/src/config.rs:1700-1707 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/runtime/src/config.rs:1691\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":"rust/crates/runtime/src/config.rs"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"b145469ac505bb97f25d6b452d329c89c0bc11e1f921a0a7c575d6ef0db47d9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): rust/crates/claw-analog/src/lib.rs:1972-1979 | rust/crates/claw-analog/src/lib.rs:2130-2137 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/claw-analog/src/lib.rs:1972\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/claw-analog/src/lib.rs"},"region":{"startLine":1972}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd072daf4b5a992de482453c85f838edd61938a39a2b416e72972b0f880579ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/crates/commands/src/lib.rs:2489-2495 | rust/crates/commands/src/lib.rs:2521-2527 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/commands/src/lib.rs:2489\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2489}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd69f65eb9417888287cbcc65beb430ff440e023ad32af175ef6191b7c5a9a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): rust/crates/commands/src/lib.rs:2755-2761 | rust/crates/commands/src/lib.rs:2787-2793 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/commands/src/lib.rs:2755\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/commands/src/lib.rs"},"region":{"startLine":2755}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b463745f2e91ef29083f7008d86039ff78146fa35349d82b4c045f45443ff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/crates/sdk/src/frame.rs:222-227 | rust/crates/sdk/src/frame.rs:235-240 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/sdk/src/frame.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"c668d517060fe067f843121a69d01ec93b18e50455820cbb70d523cf23650f44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:10993-10998 | rust/crates/rusty-claude-cli/src/main.rs:11001-11006 \u2014 both copies are in the same file, so extract the block 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 \u0060rust/crates/rusty-claude-cli/src/main.rs:10993\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":10993}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69822febec1f4f94b812f852797e6b77f55deb9b6789e8b3a8486a81a14bf54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/crates/sdk/src/frame.rs:109-113 | rust/crates/sdk/src/frame.rs:131-135 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060rust/crates/sdk/src/frame.rs:109\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/sdk/src/frame.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"489dbe7a15e5b4eb7b286bb97c18342a0535aaf568b068d5907fed00e06c8160"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/crates/api/src/providers/anthropic.rs:759-764 | rust/crates/api/src/providers/openai_compat.rs:1719-1724 \u2014 before extracting anything, compare \u0060rust/crates/api/src/providers/anthropic.rs\u0060 and \u0060rust/crates/api/src/providers/openai_compat.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 80 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"a454f461afd7a0cf34dc623809ee4f1dd862e55236a8ebd091230409239587f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): rust/crates/claw-rag-service/src/qdrant_index.rs:65-69 | rust/crates/claw-rag-service/src/qdrant_index.rs:136-140 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/claw-rag-service/src/qdrant_index.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"3345e121d786bc529c1ebb60670cd10db3b6ca8266e71ccb9420a822397b20b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): rust/crates/rusty-claude-cli/src/main.rs:6789-6794 | rust/crates/rusty-claude-cli/src/main.rs:8443-8448 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":6789}}}],"partialFingerprints":{"codehealthFindingId/v1":"127884902696468935a35e0553e94b48975f9c61137893c770f84d44c92ee6cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): .omx/cc2/render_board_md.py:166-171 | .omx/cc2/render_board_md.py:174-179 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".omx/cc2/render_board_md.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21a27ea3f8a1f1baf599ac1657d5ab45e3420dfee656c28bdc2bd18409cbf5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/commands.py:24-33 | src/tools.py:25-34 \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":"src/commands.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebbb98df29b691b18f0b411c8ed95c88164cad982da63d075b20059cb310bece"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/main.py:128-132 | src/main.py:138-142 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"src/main.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd9a5a858bda0b409afcd610878af59681f1c8535065b22a6e8377a45c4ebc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): scripts/generate_cc2_board.py:500-504 | scripts/validate_cc2_board.py:41-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate_cc2_board.py"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09692e5d1d29e21cca0e36dfa64df385e6c3f4d17fae5da9a8f6c535a45810f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): scripts/generate_cc2_board.py:403-407 | scripts/validate_cc2_board.py:64-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/generate_cc2_board.py:408\u0060 calls \u0060get\u0060 and \u0060scripts/validate_cc2_board.py:69\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate_cc2_board.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bea6da2076f8bde82bbb26dc7101f6d2eabf20a7e79d6c70fbbe668c2b239b6"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: plugins: plugins: abstractness 0.03, instability 0.00, distance 0.97 \u2014 zone of pain \u2014 concrete and depended on by 4 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dcfc3380ac7ce84c1aae22039632cc78a65e08e3d1b433f504755538fbeb4a60"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: telemetry: telemetry: abstractness 0.13, instability 0.00, distance 0.88 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a033ead4043e723b409d4abd6582081bfb22ea6350df06d7ebe29fc9ba27842d"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: runtime: runtime: abstractness 0.02, instability 0.22, distance 0.76 \u2014 zone of pain \u2014 concrete and depended on by 7 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ef4fef2a1bd1ac2855af2ae1e46841e5b5386e01d69e7f467cafff3bc4f0a037"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rust/crates/claw-analog/src/doctor.rs: 4.0% line coverage (19/474)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/claw-analog/src/doctor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbec6bfc977e61163c0c8cbfee777965421613dc3e8e60b35ddd2f89d28c3d8b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rust/crates/claw-analog/src/main.rs: 0.0% line coverage (0/288)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/claw-analog/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a35c0fa76bfdd3a37017e2399b0d6a065412b90ec3a0b29d1313d41d07cb1c7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rust/crates/claw-rag-service/src/embed.rs: 46.7% line coverage (42/90)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/claw-rag-service/src/embed.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25e5a97add142a8f8ab4e4d2d58cd76cf79b972e48aa78e663b36a93484e5f8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rust/crates/claw-rag-service/src/lib.rs: 0.0% line coverage (0/3)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/claw-rag-service/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8278b51b8a04079bc6c1ddb09495491e2a19aca1eabf383b559ba0b450c8b66d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rust/crates/claw-rag-service/src/main.rs: 0.0% line coverage (0/82)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/claw-rag-service/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35052294851575243f5216495c002cab28d3a647009a79bf13696d646215d809"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rust/crates/compat-harness/src/lib.rs: 18.1% line coverage (41/226)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/compat-harness/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d762e594d99d2b693f956ea5abad89940880fa19402d15a7c649d4b022587cd"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rust/crates/mock-anthropic-service/src/main.rs: 0.0% line coverage (0/23)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/mock-anthropic-service/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8791f1287983ca6b389a8146c54cb07acc8fc15fcfe85c64b2d7d376a729f493"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rust/crates/runtime/src/mcp_server.rs: 41.5% line coverage (76/183)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/mcp_server.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e44184ff4c46a859ac0ab4ce4aaa0122c41e52f57b99763efdc020d28130346"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rust/crates/rusty-claude-cli/src/interrupt.rs: 5.6% line coverage (6/107)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/interrupt.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ebf8abd4c322619593f28747a027d8f57c6c172b910bef038ad43631f46127"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rust/crates/rusty-claude-cli/src/main.rs: 42.1% line coverage (4621/10982)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af865edbc8e06db947dbe00c24dbec0f2ae79e12e9023a97eb36fd56ca31c588"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rust/crates/rusty-claude-cli/src/setup_wizard.rs: 0.0% line coverage (0/198)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/src/setup_wizard.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f19c7ae721487de0ad068ed08c200b2d9becd569423e2117d39e3fe10f3420"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/crates/rusty-claude-cli/src/main.rs: rust/crates/rusty-claude-cli/src/main.rs changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in LiveCli::handle_repl_command at line 8380. 19 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 14:59:17 \u002B09:00\u0027 --until=\u00272026-11-10 14:59:17 \u002B09:00\u0027 --full-history --no-merges -- rust/crates/rusty-claude-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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":8380}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b16241e066bb4adb64ee82a64be742a3aa027f3e407a14a3db20126ea9c2f90"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rust/crates/runtime/src/conversation.rs: rust/crates/runtime/src/conversation.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in ConversationRuntime::run_turn at line 573. 9 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 14:59:17 \u002B09:00\u0027 --until=\u00272026-11-10 14:59:17 \u002B09:00\u0027 --full-history --no-merges -- rust/crates/runtime/src/conversation.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":"rust/crates/runtime/src/conversation.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b95102e815ad150173cbec1359810304bee1bd9bc80681762c40c5d4744db4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/crates/api/src/providers/mod.rs: rust/crates/api/src/providers/mod.rs changed 9 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is api::providers::metadata_for_model at line 235), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(windows): fix native runtime compatibility and enable workspace t\u2026 (#3378)\u201D; \u201Cfix: parallel tool-result pairing, terminal-scope path limit, credential hint\u201D; \u201CRevert \u0022Merge pull request #3341 from ultraworkers/fix/rebase-on-main\u0022\u201D; \u201Cfix: model_token_limit catch-all returns None for unknown models\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 14:59:17 \u002B09:00\u0027 --until=\u00272026-11-10 14:59:17 \u002B09:00\u0027 --full-history --no-merges -- rust/crates/api/src/providers/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":"rust/crates/api/src/providers/mod.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52e37c96a9e068fdcdcbcc3f99b2e44e1eb4c9c81cbc2fb7dce214e4c48f993"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/crates/api/src/providers/anthropic.rs: rust/crates/api/src/providers/anthropic.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is AnthropicClient::send_with_retry at line 414), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(api): retry 529 overloaded and gateway-flake 400 responses (#3381)\u201D; \u201Cfix(windows): fix native runtime compatibility and enable workspace t\u2026 (#3378)\u201D; \u201CRevert \u0022Merge pull request #3318 from ultraworkers/pr-3292\u0022\u201D; \u201Cfix(clippy): box ApiError::Api payload to clear result_large_err\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 14:59:17 \u002B09:00\u0027 --until=\u00272026-11-10 14:59:17 \u002B09:00\u0027 --full-history --no-merges -- rust/crates/api/src/providers/anthropic.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":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc297f8a8ac99d8226095ec073ecfdcbee627f4029734a51b8f88cb64bff463"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/crates/runtime/src/compact.rs: rust/crates/runtime/src/compact.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is runtime::compact::summarize_messages at line 203), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CRevert \u0022Merge pull request #3341 from ultraworkers/fix/rebase-on-main\u0022\u201D; \u201Cfix(clippy): resolve new lint violations in trident, compact, and claw-rag-service\u201D; \u201CRevert \u0022Merge pull request #3318 from ultraworkers/pr-3292\u0022\u201D; \u201Cfix(runtime): bound tool-result payloads to the actual context window\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 14:59:17 \u002B09:00\u0027 --until=\u00272026-11-10 14:59:17 \u002B09:00\u0027 --full-history --no-merges -- rust/crates/runtime/src/compact.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":"rust/crates/runtime/src/compact.rs"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"6799b5b51d939a88d68841aa84de24bb520a537065c5a302f0f08d5a1aae515e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/crates/runtime/src/prompt.rs: rust/crates/runtime/src/prompt.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is runtime::prompt::render_project_context at line 533), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(runtime): name the session model in the system prompt (#3359)\u201D; \u201CRevert \u0022Merge pull request #3318 from ultraworkers/pr-3292\u0022\u201D; \u201Cfix(runtime): auto-continue a turn the model stalled without a tool call\u201D; \u201Cfix(runtime): bound the git diff snapshot to a configurable budget\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 14:59:17 \u002B09:00\u0027 --until=\u00272026-11-10 14:59:17 \u002B09:00\u0027 --full-history --no-merges -- rust/crates/runtime/src/prompt.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":"rust/crates/runtime/src/prompt.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea5124776af053226df2c4784fb1f4a2ea7985696c3013fea1eb29b2b679ae6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/crates/rusty-claude-cli/src/setup_wizard.rs: rust/crates/rusty-claude-cli/src/setup_wizard.rs changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is rusty_claude_cli::setup_wizard::prompt_base_url at line 159), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CRevert \u0022Merge pull request #3318 from ultraworkers/pr-3292\u0022\u201D; \u201Cfix(clippy): clear remaining -D warnings failures in rusty-claude-cli\u201D; \u201Cfix(clippy): box ApiError::Api payload to clear result_large_err\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 14:59:17 \u002B09:00\u0027 --until=\u00272026-11-10 14:59:17 \u002B09:00\u0027 --full-history --no-merges -- rust/crates/rusty-claude-cli/src/setup_wizard.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":"rust/crates/rusty-claude-cli/src/setup_wizard.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8fa7bc344a01eb9fcfdbb503dbc2044c38263ae185049be11ba1550fb567c2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/crates/runtime/src/usage.rs: rust/crates/runtime/src/usage.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 15 (its worst body is runtime::usage::pricing_for_model at line 71), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(runtime): update model pricing for Anthropic and DeepSeek APIs\u201D; \u201CRevert \u0022Merge pull request #3318 from ultraworkers/pr-3292\u0022\u201D; \u201Cfix(runtime): auto-compaction must measure the live context, not a running total\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 14:59:17 \u002B09:00\u0027 --until=\u00272026-11-10 14:59:17 \u002B09:00\u0027 --full-history --no-merges -- rust/crates/runtime/src/usage.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":"rust/crates/runtime/src/usage.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c256dbc803ab101fba6f83969ca3fd7ce94b73f5434657b38121f905baa5ad1f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rust/crates/runtime/src/session.rs: rust/crates/runtime/src/session.rs changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is Session::from_jsonl at line 491), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(windows): fix native runtime compatibility and enable workspace t\u2026 (#3378)\u201D; \u201CRevert \u0022Merge pull request #3318 from ultraworkers/pr-3292\u0022\u201D; \u201Cfix(runtime): keep a failed turn\u0027s tool results, and size guards from the real context window\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 14:59:17 \u002B09:00\u0027 --until=\u00272026-11-10 14:59:17 \u002B09:00\u0027 --full-history --no-merges -- rust/crates/runtime/src/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":"rust/crates/runtime/src/session.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7b6cd593efd3b1327c8405f29ad132982e1ba8ba66c2aa28143fdd14adf471"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 8 significant file(s) lose their only recent owner: scripts/generate_cc2_board.py, rust/crates/runtime/src/report_schema.rs, rust/crates/telemetry/src/lib.rs, rust/crates/runtime/src/approval_tokens.rs, rust/crates/runtime/src/g004_conformance.rs, scripts/dogfood-probe.py, scripts/validate_cc2_board.py, scripts/cc2_board.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cda42f20de3fdbb389e84bb13e182431864a4fbdc66f45e024f3deb8e683982c"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 3 significant file(s) lose their only recent owner: rust/crates/tools/src/pdf_extract.rs, rust/crates/runtime/src/mcp_server.rs, rust/crates/runtime/src/summary_compression.rs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5b23591581dbad43f2bcdcde0a1c5ca33312a923cde37b99e829baa032773de9"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 3 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 (14 single-owned of 105 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; 105 of the 172 production source files in this repository met that bar). They are anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)), anonymized user #5 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: rust/crates/runtime/src/memory_store.rs, rust/crates/runtime/src/line_range_selector.rs, rust/crates/rusty-claude-cli/src/interrupt.rs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060rust/crates/rusty-claude-cli/Cargo.toml\u0060 makes this repository a deployable product (line 8)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/Cargo.toml"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0243ed19904b2b6dfd8676a287374e76b1521de0473ee07b8728129ba4d76d"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 15 project(s) overshoot their size bounds, lowering Project Cohesion to 8.7/10. The most over is \u0060rust/crates/runtime\u0060 (41675 LoC, 375 module-visible types across 1 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":"9d60075c5957a7de8d9721c4acda97c4b588a2c9c70efccc2b3bb4a538b29548"},"properties":{"commitSha":"8938f53790dbeb22902d8aa294ed59e33516cc5d"}},{"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":"f862a0d16c2401a0875aa84e4d07966053e228008580ebd5f1bd1179228c6887"},"properties":{"commitSha":"171a07b68c78ecee49c50ef9fc8cbbfdc71ab9f2"}},{"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":"800a2f8627144881e62087cc585efb368414445931b74c5cde02c85be243f815"},"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":"0f02b58e5d1d2fe3d97fa9eb600da984b1f20e558eef4b4428b91d5600a13029"},"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":"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":"63778fa624412affc09bbae17ed4e235deee47c1e8fbbd49594e08c2f223c987"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-552","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"535a3e50f9cab86d89e2603a798404e0e5090283a92e0efa6dc2092addf2653d"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-41","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01: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":"819d4bcfcc4c26dcfa589edead1b3789945d456086652b1f9ce5c4742b8266be"},"taxa":[{"id":"CWE-570","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-571","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":"6df4bd5aeb165131d68297191069e21dca7be60b9458676a895a3f43fe5fc56e"},"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":"9152765826f42e461a8b82073af76aeb290f05d332928e9c95ca3eea7b4ee12a"},"properties":{"dependency":{"package":"bincode","version":"1.3.3","advisory":"RUSTSEC-2025-0141","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":"8333aff14ccfb4c7013ccfbd70559b3348c6be736e5b65112bc3949e90dcec83"},"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":"10a43df7f09c777338564d229a9a94850e13b18405060d6049714efcf8b891bd"},"properties":{"dependency":{"package":"h2","version":"0.4.14","advisory":"RUSTSEC-2026-0258","aliases":["[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":"d21fa713f0a8f5067f78c92023ba3277b0480a2ea90369d435684015dc4bb1da"},"properties":{"dependency":{"package":"libsqlite3-sys","version":"0.30.1","advisory":"RUSTSEC-2026-0459","aliases":["[CVE redacted]","[GHSA redacted]","RUSTSEC-2026-0502"],"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":"e41eeb056f1354f07150fec9dfa80d75e8e1c5b2a035da33d356bbb5cfd74253"},"properties":{"dependency":{"package":"pulldown-cmark","version":"0.13.3","advisory":"RUSTSEC-2026-0414","aliases":["RUSTSEC-2026-0433"],"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":"6f0528343ddbce276b91cfff93d04caadf7b56c32acd47be533680d5b510e388"},"properties":{"dependency":{"package":"quick-xml","version":"0.38.4","advisory":"RUSTSEC-2026-0194","aliases":["RUSTSEC-2026-0195"],"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":"eed1d9b941ece9af12df8438ef721be9308fc9c2930dbc1da1a6ab9ce3c3ea76"},"properties":{"dependency":{"package":"quinn-udp","version":"0.5.14","advisory":"RUSTSEC-2026-0538","aliases":["[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":"a2b62e2a6e04c24b1afa7c8d244a9100d5bec3e2b48e3ba115916c7d1ec4eebc"},"properties":{"dependency":{"package":"rustix","version":"1.1.4","advisory":"RUSTSEC-2026-0486","aliases":["[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":"1ae10e114f42d0a4f04fcc59c5fee8d6e5afb60161b0a742369cbebaf6f5a9d5"},"properties":{"dependency":{"package":"rustls","version":"0.23.37","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0285","RUSTSEC-2026-0346","RUSTSEC-2026-0348","RUSTSEC-2026-0349"],"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":"46efc1539f7b26405485ca06aad549b5688b08923076fafd169d44d254cd1161"},"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":"e04e5b04c1e06a84c3115dd8eefbbceae5e24ce13b9b2703817119e7c7058129"},"properties":{"dependency":{"package":"rustls-webpki","version":"0.103.13","advisory":"RUSTSEC-2026-0382","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0381","RUSTSEC-2026-0383"],"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":"1666c1c293c2dcc7a2d976593300d527cea6dba1276aacb9cb016442b9a36a2b"},"properties":{"dependency":{"package":"tokio","version":"1.50.0","advisory":"RUSTSEC-2026-0386","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":"c3c7cba8de138e7366adef409adc02fc18cf8c9a0efb475b33b97bf74f2c9b12"},"properties":{"dependency":{"package":"webpki-roots","version":"1.0.6","advisory":"RUSTSEC-2026-0381","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"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":"3dd61594c33204b5f5347ed6c35de212d45d3b8c5e61a25423c0771fc8b38fda"},"properties":{"dependency":{"package":"yaml-rust","version":"0.4.5","advisory":"RUSTSEC-2024-0320","reachability":{"kind":"unknown"}}}},{"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":"d659c6e92a7152c126c6f4f0fc9ba5fe47371839fd50fc47de98d04bb26be48f"}},{"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":"e83b518b7f52f2dcaa5ae6040062bb11c1eb9b8af4b47d50866778e1f843e3bd"},"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":"ea39f5d698b99aa6d3852f4f4cb94d94362f7e8b8be7b5aa02fc62456a66d3f9"}},{"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":"fc8e3260a6c033ace48052bc5585a8cc2936d0b5587266777a503e1a6fae5cac"},"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":"19274250c2d3c1785ed14a2fec4f27e8dfcb6b306ecab8d759451b955c2cf088"},"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":"9d80fce46a5db6b798751f39d41c244654a073832a540a01af5c76fc8eff1f8a"},"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":"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":"6dc5382c34ed7bcaf89942cf8f9cd45d1c896909ab88260750ed89ade59f5a32"}},{"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":"rust/crates/claw-analog/src/doctor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2a98796ac92b37c99a8b065c43d7fcb5e849100f01c5966ff7d756f7042aed"}},{"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: rust/crates/claw-analog/src/agents.rs, rust/crates/claw-analog/src/main.rs, rust/crates/claw-rag-service/src/qdrant_index.rs, rust/crates/claw-rag-service/src/main.rs, rust/crates/claw-analog/src/config_cmd.rs, rust/crates/claw-rag-service/src/embed.rs, rust/crates/claw-rag-service/src/lib.rs (8 orphaned of 105 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; 105 of the 172 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":"rust/crates/claw-analog/src/agents.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98910dadc2f0d003860e1ce2a8109f17e362e476bec8c484706debe4316771ca"}},{"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":"rust/crates/claw-analog/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"666f016ffec22696d62347c0dfa26968848d5929c3c201708c3dfa341cc54ac6"}},{"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":"rust/crates/claw-rag-service/src/qdrant_index.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f63d8f8a9a660aa0269a22cec9010c9e7fa52145e2f53c76044ef35e1e819ac"}},{"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":"rust/crates/claw-rag-service/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4681f50392370de100dd9712bb996b1477b5061a0f97087e67f59413d596e2b2"}},{"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":"rust/crates/claw-analog/src/config_cmd.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee9f000bd2d372cea62d4ec072cf484be3c6e23732d56eeb09a5fd963bce2b6"}},{"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":"rust/crates/claw-rag-service/src/embed.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62089bf9adbc9f9bf48e570f10951a51e0a45c4a2ca80e62a2db2eecbda2590d"}},{"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":"rust/crates/claw-rag-service/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbca5cdf2650df12ee6ab9103d0a3f3c11374bdedb5d69a240cd236311838c3d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: compact.rs \u2194 usage.rs: \u0060rust/crates/runtime/src/compact.rs\u0060 and \u0060rust/crates/runtime/src/usage.rs\u0060 change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise 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 \u0060f0215979\u0060 Revert \u0022Merge pull request #3318 from ultraworkers/pr-3292\u0022; \u006022ad54c0\u0060 docs: describe the runtime public API surface; \u0060c8060355\u0060 wip: jsonl-session progress \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/compact.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"281d247b6efa0f9f8a6eef96b47a0a2d7e1543b533ceb8b349964e395cefc4da"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: oauth.rs \u2194 prompt.rs: \u0060rust/crates/runtime/src/oauth.rs\u0060 and \u0060rust/crates/runtime/src/prompt.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 between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise 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 \u006022ad54c0\u0060 docs: describe the runtime public API surface; \u0060c2e41ba2\u0060 fix: post-plugins-merge cleanroom fixes and workspace deps; \u0060df6230d4\u0060 cleanroom: apply clean-room scrub on latest codebase \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/oauth.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ad4740e6effcf01e5af96dba1dce07ac1a8e316ae785b7224792b7b8875e27"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: conversation.rs \u2194 render.rs: \u0060rust/crates/runtime/src/conversation.rs\u0060 and \u0060rust/crates/rusty-claude-cli/src/render.rs\u0060 change together 53% of the time (8 of the 15 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 \u0060c9d214c8\u0060 feat: cache-tracking progress; \u00609efd029e\u0060 wip: hook-pipeline progress; \u00602387a54b\u0060 wip: hook-pipeline progress \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/conversation.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60760abd12deef3fcb21929e715f8604b811bf7ee40e66386f143c5b2d0e4b8e"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2205d4dfb34dd053e2e8fac08aa2700127a515cc46e6017b761f5a3e94a0d211"},"taxa":[{"id":"CICD-SEC-4","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":"1b3856dc48c94a2ef2fb1ec98294eb281aa479096b2de4ad945576786b374c23"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 1/6 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060rust/crates/api\u0060, \u0060rust/crates/claw-analog\u0060, \u0060rust/crates/claw-rag-service\u0060, \u0060rust/crates/mock-anthropic-service\u0060, \u0060rust/crates/tools\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P4","level":"note","message":{"text":"No rollback/health safety: Deployment is orchestrated by compose, but no service declares a \u0060healthcheck:\u0060 and nothing pins a previous image to fall back to \u2014 the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"db6bab8a28a2145f47e5a4e6683cda39d2ba0296c723238e8057da979ae1c706"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: Deployment is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever reaches the release trigger goes to production unreviewed, so a mistaken merge or tag is live before anyone can stop it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P5","level":"warning","message":{"text":"No DR/backup evidence: A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced \u2014 a volume that survives a container recreate is not a tested restore from catastrophic loss."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5daabb38c90b07af65b8738cf94ce884e90a7d8fef810d341de5c186188c8fe0"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::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":"rust/crates/claw-rag-service/src/main.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a7d94618fcf8cf04eaee985250bb1958a26a6a77603fad7524e8cddae4e6bb"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::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":"rust/crates/claw-rag-service/src/main.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8ef7f38639afe8c00e5766ae87f90a546debc2a0a2ef73d45651a74ca3c51e"}},{"ruleId":"S1","level":"note","message":{"text":"No app-layer HTTPS enforcement detected: This repository starts an HTTP server and nothing in its Rust source or committed \u0060Rocket.toml\u0060 secures the transport: no TLS served (actix-web \u0060bind_rustls\u0060/\u0060bind_openssl\u0060, axum-server \u0060bind_rustls\u0060 with a \u0060RustlsConfig\u0060, tonic \u0060ServerTlsConfig\u0060, a \u0060TlsAcceptor\u0060, Rocket\u0027s \u0060[default.tls]\u0060), no \u0060Strict-Transport-Security\u0060 header, no \u0060X-Forwarded-Proto\u0060 read from a TLS-terminating proxy \u2014 so its traffic may cross the network in clear text. (\u22122.0 on this card.) The server: \u0060axum::serve(\u0060 (rust/crates/claw-rag-service/src/main.rs:131)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8697c7a8b4c37084f15e81b8ec84d4cf62954730be74a0816d39b2127a21fd9b"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, \u2026) is set on a response this repository\u0027s Rust server sends \u2014 defense in depth, even when a proxy could set them. (\u22122.0 on this card.) The server: \u0060axum::serve(\u0060 (rust/crates/claw-rag-service/src/main.rs:131)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd19c680309417e132c0be93c2002123f0664b42afe6172b1319da65a6a57ba7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060needle in module.name.lower() or needle in module.source_hint.lower()\u0060 appears character-identically in 2 files \u2014 src/commands.py, src/tools.py. 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":"src/commands.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a5ce4c568b2efd0dc38ece27b7411ecdc7d5d2bfdc948c7e9a68e58a1364a7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error.is_retryable() \u0026\u0026 attempts \u003C= self.max_retries \u002B 1\u0060 appears character-identically in 2 files \u2014 rust/crates/api/src/providers/anthropic.rs, rust/crates/api/src/providers/openai_compat.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":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48cf72030238ebad7cf80fa554392c1455b251c19cedc062e1e5c948206a344"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lowered.contains(\u0022no parseable body\u0022) || lowered.contains(\u0022connection reset\u0022) || lowered.contains(\u0022broken pipe\u0022) || lowered.contains(\u0022empty \u2026\u0060 appears character-identically in 2 files \u2014 rust/crates/api/src/providers/anthropic.rs, rust/crates/api/src/providers/openai_compat.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":"rust/crates/api/src/providers/anthropic.rs"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25893ea6bbdcdd9ec73c3f30ee58bb43d9748acb9d7aa613510c3ad43e41cba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized.contains(\u0022cargo test\u0022) || normalized.contains(\u0022cargo nextest\u0022) || normalized.contains(\u0022npm test\u0022) || normalized.contains(\u0022pnpm te\u2026\u0060 appears character-identically in 2 files \u2014 rust/crates/runtime/src/bash.rs, rust/crates/tools/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":"rust/crates/runtime/src/bash.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"6391b2e8bbba2cba65663294a0824301b6072fcf985c36cb7b7e0b2e06eea05a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060default_anthropic_base\u0060 turns every \u0060Err\u0060 into \u0060\u0022https://api.anthropic.com\u0022.into()\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":"rust/crates/claw-analog/src/doctor.rs"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae677812ddb8c75331500fbb5ed4960d0c51737b511c81f2262e89e44000d8d3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060list_entry_paths\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":"rust/crates/runtime/src/memory_store.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"877b0e5dbb35513bc4d08c4c391901a2b888ec515d93558662050f34ccc34c70"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060discover_tmux_panes\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":6153}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3da247895febd87ce6100dcb5163d9634fa6e248a577b01481333281e445c3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060render_help_topic\u0060 turns every \u0060Err\u0060 into \u0060\u0022agents help unavailable\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":"rust/crates/rusty-claude-cli/src/main.rs"},"region":{"startLine":10642}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dcc9a186618118fcaea51098fa67702f1df4e23ab26b8cc5644b7b28fe56443"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060h.contains(\u0022git init\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060h.contains(\u0022git init\u0022)\u0060 also satisfies \u0060h.contains(\u0022git\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/rusty-claude-cli/tests/output_format_contract.rs"},"region":{"startLine":5615}}}],"partialFingerprints":{"codehealthFindingId/v1":"9087df55e01dc2a3281ed47bd06e1654489c4c04608202fe81144b9d6b2c6146"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060normalized.contains(\u0022pnpm test\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060normalized.contains(\u0022pnpm test\u0022)\u0060 also satisfies \u0060normalized.contains(\u0022npm test\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust/crates/runtime/src/bash.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"b757032c9ae5a3338eff52baea7720a097fa8e565ce242d1826f713a1d47957b"}}],"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-22","guid":"b68d9ca7-bdde-d057-a6cc-9f8b1e739552","name":"Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)","shortDescription":{"text":"Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/22.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-41","guid":"23289c31-5a10-e05c-8ba0-37a495c2799d","name":"CWE-41","shortDescription":{"text":"CWE-41"},"helpUri":"https://cwe.mitre.org/data/definitions/41.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-552","guid":"3492436b-eca2-9c54-9ba3-5dade427c903","name":"Files or Directories Accessible to External Parties","shortDescription":{"text":"Files or Directories Accessible to External Parties"},"helpUri":"https://cwe.mitre.org/data/definitions/552.html"},{"id":"CWE-570","guid":"1c94c05a-8663-e95c-b750-8a0329b22647","name":"CWE-570","shortDescription":{"text":"CWE-570"},"helpUri":"https://cwe.mitre.org/data/definitions/570.html"},{"id":"CWE-571","guid":"c0fe8265-1b68-da53-9217-4ebb9a96d5f7","name":"CWE-571","shortDescription":{"text":"CWE-571"},"helpUri":"https://cwe.mitre.org/data/definitions/571.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-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-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":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"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-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":36,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}