{"$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":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D22","name":"Internal API Consistency","shortDescription":{"text":"Internal API Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D22"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"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"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"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"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"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"]}],"properties":{"cwe":["CWE-506"]}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX7","name":"Slice cohesion","shortDescription":{"text":"Slice cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/AX7"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"DM1","name":"Aggregate boundaries","shortDescription":{"text":"Aggregate boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/DM1"},{"id":"DM4","name":"Rich vs anemic domain model","shortDescription":{"text":"Rich vs anemic domain model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"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":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"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":"flowd::main (cyclomatic 158): flowd::main has cyclomatic complexity 158 (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":"src/main.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d49f31a9d8d7154909bf2fe36fccb1c2c2745912de87e26789c7f2eaef91b01"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::sync::run_sync (cyclomatic 100): flowd::sync::run_sync has cyclomatic complexity 100 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":1271}}}],"partialFingerprints":{"codehealthFindingId/v1":"f669e567b832beb7deb1771d4131df2bda141b91b5ae2646ab48d64f7532a6bc"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::commit::run_with_check_sync (cyclomatic 95): flowd::commit::run_with_check_sync has cyclomatic complexity 95 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":3898}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f91aa34a96844c9c0ba9ca50413e5d5dc800af457b55599e3b105e6bf59596"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::sync::run_jj_sync (cyclomatic 90): flowd::sync::run_jj_sync has cyclomatic complexity 90 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":3237}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83ac4469d21e0e8f273b5aea9aae820e44cac49dbdbbbaf78a3001fe839707a"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::commit::run_commit_queue (cyclomatic 84): flowd::commit::run_commit_queue has cyclomatic complexity 84 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":8959}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d3fc67f2e61623c8c3b0764ff1046709468d81b465959fe5fa0fb18a97d80d"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::run (cyclomatic 76): flowd::ai::run has cyclomatic complexity 76 (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":"src/ai.rs"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4285b5d8e903c953a2b296d19d0dade8f2703037b615ad8bc7a72b67a606c02"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::startup_policy_for (cyclomatic 63): flowd::startup_policy_for has cyclomatic complexity 63 (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":"src/main.rs"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"6152be9adc15d3e59593a1b17195dbc7ded6538f4d902b61bef6554c3525a494"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::env::bootstrap_cloudflare_secrets (cyclomatic 39): flowd::env::bootstrap_cloudflare_secrets has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":2653}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a9ee418b9bc543c1074cc47af2703f78da41342f9d29c438a430563dd4488e"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::sync_plan::render_markdown (cyclomatic 38): flowd::sync_plan::render_markdown has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync_plan.rs"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3db6a1307a570ddde290ce3b2f21ecedf7d9e1a983fd2243a88408e43c57c2a"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::setup::setup_deploy (cyclomatic 37): flowd::setup::setup_deploy 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":"src/setup.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"4775185b2aa53c9b7d89e0d7b86f965328bab33c56b2c3787435d0283fce5157"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::commit::approve_all_queued_commits (cyclomatic 35): flowd::commit::approve_all_queued_commits has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":7712}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ebe08e138ce2c51ab99a831467d24b527a16b4583e3595690178e69adc4455a"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::deploy_setup::handle_key (cyclomatic 35): flowd::deploy_setup::handle_key has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy_setup.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e102d08cd5395ad9452ecdef3a65619ea396acd94973b9de4eeaa017df2c11"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::commit::run_codex_review_once (cyclomatic 34): flowd::commit::run_codex_review_once has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":5043}}}],"partialFingerprints":{"codehealthFindingId/v1":"107d09a3c221c0a6dec1adc51eaaad7f1cb7d40c7869d86fb23a9826c985e7fb"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::publish::run_github (cyclomatic 33): flowd::publish::run_github has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/publish.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"07297a3aaf983e9915db286bd4ff65ecc5fe2cb0a56b3e376f2a758dbbd111cc"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::scan_all_project_sessions (cyclomatic 31): flowd::ai::scan_all_project_sessions has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: flowd::ai::run_provider (cyclomatic 53) 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":"src/ai.rs"},"region":{"startLine":15654}}}],"partialFingerprints":{"codehealthFindingId/v1":"23028c818f7abea46e7e352596d65bbd7514548b4e54845bfab8c204fb9cf638"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::tasks::run_command_with_pty (cyclomatic 30): flowd::tasks::run_command_with_pty has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":2552}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f58f06f4b695347b704563ae774d1f940b20c065d00ed9f1bf93bac1b70dc1"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::recover_row_score (cyclomatic 30): flowd::ai::recover_row_score has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: flowd::ai::run_provider (cyclomatic 53) 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":"src/ai.rs"},"region":{"startLine":7470}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4eb7ac073868c99c4591e9ba56aaa8dee396e539a6e999b7b9f65535d17504b"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::run_sessions (cyclomatic 30): flowd::ai::run_sessions has cyclomatic complexity 30 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file\u0027s highest cyclomatic complexity: flowd::ai::run_provider (cyclomatic 53) 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":"src/ai.rs"},"region":{"startLine":15469}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec9be05fbf86e1a8e31745e79b5545cdba7500fd9645e40114462ef2d6942f0"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::env_setup::handle_key (cyclomatic 30): flowd::env_setup::handle_key has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env_setup.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d5d7ce7da3d79fe230eaf3bf4588caa49ab51ec0ccc29a2570c62cd5a49d07"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::codex_memory::fact_score (cyclomatic 29): flowd::codex_memory::fact_score has cyclomatic complexity 29 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_memory.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82a53c9255ff152dc6e004995de8f076aacd5be04ccbb1da53035eb8d0ed3d5"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::commit::run_invariant_gate (cyclomatic 29): flowd::commit::run_invariant_gate has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":3264}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6b1e1274ccf81d3bd097853f86d607360862c25439f08a19a6ff8ffe21145e"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::copy_session (cyclomatic 29): flowd::ai::copy_session 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: flowd::ai::run_provider (cyclomatic 53) 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":"src/ai.rs"},"region":{"startLine":13286}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b508d69f9a00017d81ef085fde1b0ff646431f0d03e4c7824fe9c64a3584f81"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::copy_session_by_search (cyclomatic 29): flowd::ai::copy_session_by_search 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: flowd::ai::run_provider (cyclomatic 53) 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":"src/ai.rs"},"region":{"startLine":13481}}}],"partialFingerprints":{"codehealthFindingId/v1":"0011a3dd78d83602b60997e52d3a2919d662f3cf115f4c8de7ed6dbb5a50c9a8"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::repos::bootstrap_home_branch (cyclomatic 29): flowd::repos::bootstrap_home_branch has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/repos.rs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"631f1929015db852cfe27a4d4794ebebd62712548f357afa3baf3b91ae6272d7"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::commit::run_claude_review (cyclomatic 28): flowd::commit::run_claude_review has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":5543}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22b2876df3464a4047dd606b82adcb71c0a65c490e8e9eeb414f0df3464ff54"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::env::fetch_env_vars (cyclomatic 28): flowd::env::fetch_env_vars has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":3688}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20a5994507f4b08a5d2e55909fa644f23b2e8a50faca17048b2a89a2bf99608"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::supervisor::monitor_daemons (cyclomatic 27): flowd::supervisor::monitor_daemons 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":"src/supervisor.rs"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"d99687239ce9411aa1ffbac115ec4cf2b80cfb2be314faa0f583b7a5872a081d"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::deploy::deploy_host (cyclomatic 27): flowd::deploy::deploy_host 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":"src/deploy.rs"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f9107d1ede8463abe8e372f7e554c44a229600d238582e36131c5d2024a429"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::deploy::deploy_cloudflare (cyclomatic 27): flowd::deploy::deploy_cloudflare 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":"src/deploy.rs"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a72f96e75bcde683e2b3d2abd2fc6a2d67b5392cb13bfdff6fae5aef9dd94b0"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::upstream::sync_upstream (cyclomatic 26): flowd::upstream::sync_upstream has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/upstream.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"708d37f416ae9b1b8fd1316c0b11e4d90c6daa4c458523b31721c386fdd366c5"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::gh_release::create_release (cyclomatic 25): flowd::gh_release::create_release has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/gh_release.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb50618e1766f4f0c079e38a603ac0346154b40d9b6ce5064fd8cf6fe5d8ad52"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::deps::build_pick_entries (cyclomatic 25): flowd::deps::build_pick_entries 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":"src/deps.rs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8248df1301bff642cb535826ff6f2320d67bc58d4046cfea72d5603a2de4e36"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::config::merge_config (cyclomatic 25): flowd::config::merge_config has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config.rs"},"region":{"startLine":2535}}}],"partialFingerprints":{"codehealthFindingId/v1":"94bd335c53d2c99d2b26664f77df38d38847be9ee439d8c057575fe790cbc6b3"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::env::show_keys (cyclomatic 25): flowd::env::show_keys 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":"src/env.rs"},"region":{"startLine":3081}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51d2f850b1e68e19e9633ec9d443d1b752658e9e5e9ad28d429c9ff4023350f"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::skills::fetch_skills (cyclomatic 24): flowd::skills::fetch_skills has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/skills.rs"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab24b45c919f9fd6285e7b8697030336876dd00e2351907375624ed17012b323"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::sync::run_switch (cyclomatic 24): flowd::sync::run_switch has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":1952}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e4a94ac116da275cf14c581bc3ad14dc531fc5dc2ed5bd3de65139693bea08"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::commit::parse_review_selection_spec (cyclomatic 24): flowd::commit::parse_review_selection_spec has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a03e9de40c845e6f7b0a2df6caa83f5f4263032d09cf1b72411e3e5c9628db"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::commit::parse_commit_message_selection_spec (cyclomatic 24): flowd::commit::parse_commit_message_selection_spec has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7910c943c9845c1671d84be0f778344279aa4077b40fa050095e6d445990b0"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::updates::render_markdown (cyclomatic 24): flowd::updates::render_markdown has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/updates.rs"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6831934ab36d5c24a8e86eea456a6add7395054bb29248297b6e04ebbb8da4b"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::read_context_since (cyclomatic 24): flowd::ai::read_context_since 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: flowd::ai::run_provider (cyclomatic 53) 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":"src/ai.rs"},"region":{"startLine":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb554430d5f92c9c179b154b8729a30d90af4b4a09ecccfc6d20172932784395"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::list_sessions (cyclomatic 24): flowd::ai::list_sessions 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: flowd::ai::run_provider (cyclomatic 53) 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":"src/ai.rs"},"region":{"startLine":3942}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c273d8f0ffb8914e03f7229762b821118d309efa78e84f08d8f1b7ea9f2ea48"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::strip_codex_session_followup_prefix (cyclomatic 24): flowd::ai::strip_codex_session_followup_prefix has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: flowd::ai::run_provider (cyclomatic 53) 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":"src/ai.rs"},"region":{"startLine":6053}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea62a5a5f8c5343f8673fe9ce339b0b4f559c36c1f46ba48255deac59aaa289c"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::copy_context (cyclomatic 24): flowd::ai::copy_context 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: flowd::ai::run_provider (cyclomatic 53) 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":"src/ai.rs"},"region":{"startLine":13839}}}],"partialFingerprints":{"codehealthFindingId/v1":"435968acabdc3e689ccb44529f3bc207cb33f9c1c255c954b12e1c8ccc95caf1"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::url_inspect::inspect_url (cyclomatic 24): flowd::url_inspect::inspect_url has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/url_inspect.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b0b50404b1a3027ebb85e8fb20bd82be3bae1f9c4402e2bbc6d45e93f22504"}},{"ruleId":"D1","level":"warning","message":{"text":"flow_commit_scan::scan_diff_for_secrets (cyclomatic 24): flow_commit_scan::scan_diff_for_secrets has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/flow_commit_scan/src/lib.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"941fe86f0681fd6588596e18de1eec9cf35a29b0e0431d9c9e43be3e1d8f9d25"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::hive::discover_agents (cyclomatic 23): flowd::hive::discover_agents 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":"src/hive.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e6bab4431196b667039de3b56f169b326ab7307aee7628fec65eed7162c7b9"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::deploy::run_prod_with_project_context (cyclomatic 23): flowd::deploy::run_prod_with_project_context 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":"src/deploy.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"b413386654994995019822110f56ed7759c737452cca16b0af9ab2fbe3dac079"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::env::set_project_env_var_internal (cyclomatic 23): flowd::env::set_project_env_var_internal 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":"src/env.rs"},"region":{"startLine":3430}}}],"partialFingerprints":{"codehealthFindingId/v1":"6064be981ea6d8b9a86414d78299ca027ca353d7b2b1f9c78bfb3b33f26f83df"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::codex_memory::score_code_path (cyclomatic 22): flowd::codex_memory::score_code_path has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_memory.rs"},"region":{"startLine":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e51d4cda0273b985afdcad32321c3afba52dd12ea7cae451d49071521191c6"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::setup::repair_existing_host_config (cyclomatic 22): flowd::setup::repair_existing_host_config has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup.rs"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a59720d89c99f4568de60637166c1f3a0fbf0c576b976bb44dc0d4128bcfcb"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::collect_codex_doctor_snapshot (cyclomatic 22): flowd::ai::collect_codex_doctor_snapshot has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: flowd::ai::run_provider (cyclomatic 53) 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":"src/ai.rs"},"region":{"startLine":8566}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d91c87cc48b36471757cd1273021fdd9b9b3193f98258830757cd513661735c"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::setup::run (cyclomatic 21): flowd::setup::run has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"82cf3d38f8c1e4ac655849841bd9d2565a7e8e65b8e41a5d6862c3eb345e16a4"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::sync::merge_remote_branch_into_current (cyclomatic 21): flowd::sync::merge_remote_branch_into_current has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":4002}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2eae75f3c84bc8344f7589beab95b18ae9fa10e52f5d58784b7fc75a0d4eb9"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::commit::warn_secrets_in_diff (cyclomatic 21): flowd::commit::warn_secrets_in_diff has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66ad9ce2080b18617198b85b60a82922f5fa6977486df64e03cf81b34b5439e"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::codex_project_ai_command (cyclomatic 21): flowd::ai::codex_project_ai_command 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: flowd::ai::run_provider (cyclomatic 53) 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":"src/ai.rs"},"region":{"startLine":10972}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37a3754a7ddaf208456258ccea3209a74363b1c0c4f9043e78468710c39ff23"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::read_cross_project_context (cyclomatic 21): flowd::ai::read_cross_project_context 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: flowd::ai::run_provider (cyclomatic 53) 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":"src/ai.rs"},"region":{"startLine":15889}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da2bfea9846ee05e81751e92457b9ac20d9274a360bfd2e071f5a1e95906476"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai_project_manifest::build_manifest (cyclomatic 21): flowd::ai_project_manifest::build_manifest has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_project_manifest.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1b8ffbd4825d60ac2f9b6f2f5a4f5bcdc6452c5743a67eac4185c85cedad95"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::bin::ai_taskd_client::run (cyclomatic 20): flowd::bin::ai_taskd_client::run has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/ai_taskd_client.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a5a947d7f040e562ef2e3b44ca0a11fcdd9709e3c5633bc9e492071992e4d9"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::commit::run_fast (cyclomatic 20): flowd::commit::run_fast 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":"src/commit.rs"},"region":{"startLine":2203}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4b3cb84d9bb852850c87ed97c29e5fed6dde665ca7ae796c6f6e7eca9d71c9"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::commit::run_kimi_review (cyclomatic 20): flowd::commit::run_kimi_review has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":5941}}}],"partialFingerprints":{"codehealthFindingId/v1":"5efb5e2ae5b6cda1ed5a05de1a21e99cba8e7c0986b949747ca1e39fa99f5cf8"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ssh_keys::upsert_ssh_block (cyclomatic 20): flowd::ssh_keys::upsert_ssh_block 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":"src/ssh_keys.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5e9ce1735b91f4fe006a867c2d35efe65e42e6b73577a395b50351dbe8a882"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::commit::run_sync (cyclomatic 19): flowd::commit::run_sync 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":"src/commit.rs"},"region":{"startLine":1979}}}],"partialFingerprints":{"codehealthFindingId/v1":"dddcbae172e5168eefcd6fb2961c4edf8a79a01d54d64e5b201f067d80006194"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::commit::run_pre_commit_test_gate (cyclomatic 19): flowd::commit::run_pre_commit_test_gate 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":"src/commit.rs"},"region":{"startLine":3683}}}],"partialFingerprints":{"codehealthFindingId/v1":"36137f47a3b5812881095a7fca212b285931aaf94284d1d62c04742b8c7f4d4e"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::tasks::run (cyclomatic 19): flowd::tasks::run has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4559d8cef45963e4b982693943a231a271bd39e99ab47d108813ea41c6f764a"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::deploy_setup::draw_ui (cyclomatic 19): flowd::deploy_setup::draw_ui has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy_setup.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"4627f064ced376ea1bb81fc34f18ba7f0e172800ec4861c5a225f62a3d5bea67"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::build_codex_eval_opportunities (cyclomatic 19): flowd::ai::build_codex_eval_opportunities 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. This is NOT this file\u0027s highest cyclomatic complexity: flowd::ai::run_provider (cyclomatic 53) 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":"src/ai.rs"},"region":{"startLine":9156}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a53b5569a6f58b03b2ee62ff20911ddb563bf53326f5af6464b1023db68e659"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::build_codex_open_plan (cyclomatic 19): flowd::ai::build_codex_open_plan 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: flowd::ai::run_provider (cyclomatic 53) 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":"src/ai.rs"},"region":{"startLine":11374}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13f67abe3479059cb16b5e2fa1cd2f05ee77a51a2863b7d1151f128f054d4c9"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::code::move_sessions (cyclomatic 19): flowd::code::move_sessions 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":"src/code.rs"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fe57f9b3f1f19d5074c6905d3cb976629a84857d3983e672921cc5517f0640"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::repos::clone_repo (cyclomatic 19): flowd::repos::clone_repo 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":"src/repos.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70b2c6c9713f19a7fe4a6b57719a44627c10385dba27e4ca05dfe0ae98e35a2"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::codex_memory::collect_symbol_candidate_paths (cyclomatic 18): flowd::codex_memory::collect_symbol_candidate_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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_memory.rs"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"788423b4c5850b9faf4d62468c188d56a63ebd4531dba4a9bc99d20d497933c2"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::fish_trace::parse_meta_file (cyclomatic 18): flowd::fish_trace::parse_meta_file 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":"src/fish_trace.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b03965e12245f306ade004e007ec265a9bc972f0164eb9cdb6ce46eecdba0e8"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai_everruns::wait_for_completion_sse (cyclomatic 18): flowd::ai_everruns::wait_for_completion_sse 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":"src/ai_everruns.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2524455fb0e06567befa4a88eea99f7f7f5dd720f0febd6f7b24e5d218645b"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::deploy::run_with_project_context (cyclomatic 18): flowd::deploy::run_with_project_context 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":"src/deploy.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0fff6749b48f0139f502619cbfc97c0be6d12778589a782eb70a20fb1f3f2e1"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::pr_preview::collect_preview_issues (cyclomatic 18): flowd::pr_preview::collect_preview_issues has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pr_preview.rs"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d7d1e8f0747487bd472a00e7cd1f8e241fa13959754d06b6e714c2ee0f2689"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::processes::show_task_logs (cyclomatic 18): flowd::processes::show_task_logs has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/processes.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b50237a13671ccb91488503980b488fa7277b6f1391be1d62a4a0aa3e5e18e7"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::processes::show_hub_task_logs (cyclomatic 18): flowd::processes::show_hub_task_logs 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":"src/processes.rs"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"42278e8996e6f554a88d9a1ea5a0ce01e9d0393f137256be14c5ea8cd724464f"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::code::copy_codex_session_file (cyclomatic 18): flowd::code::copy_codex_session_file 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":"src/code.rs"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"76dc89dce7f60d183d5bb266624e54820f079cb062871533285752fe4502fb57"}},{"ruleId":"D1","level":"warning","message":{"text":"EverrunsApi::read_sse_batch (cyclomatic 17): EverrunsApi::read_sse_batch 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":"src/ai_everruns.rs"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa37f545194c8d2d837e56dcc8a1bf94abf1f36f6bf9ef742631efa24fa1405"}},{"ruleId":"D1","level":"warning","message":{"text":"OptionsConfig::merge (cyclomatic 17): OptionsConfig::merge has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config.rs"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff34dd8499f635389ccf8a771e189a06ae40d9ed14d59ffc5a71b33933800ab"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::gh_release::detect_version (cyclomatic 17): flowd::gh_release::detect_version 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":"src/gh_release.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9a74f36ee2df9076dad7b7785a3fb08c97558c4c5ba090a9939fa072aab095"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::sync::restore_stash_result_with_packet_dir (cyclomatic 17): flowd::sync::restore_stash_result_with_packet_dir 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":"src/sync.rs"},"region":{"startLine":5146}}}],"partialFingerprints":{"codehealthFindingId/v1":"631a2676ed3bc4953a4ea9892e942b5f490ba7e4b476d8fc6740dcc2a5f06c21"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::commit::openrouter_chat_completion_with_retry (cyclomatic 17): flowd::commit::openrouter_chat_completion_with_retry 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":"src/commit.rs"},"region":{"startLine":6317}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d95ae2ae0b6d3e6d62b4825651141bee83e8dccbfcce54ddd6caece6194fbe5"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::commit::write_agent_traces (cyclomatic 17): flowd::commit::write_agent_traces 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":"src/commit.rs"},"region":{"startLine":14664}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a8dc8027df66243c6377a6551bd684cf95a76d46f86d443f4528d4a1f558d6"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::codex_runtime::build_skill_catalog (cyclomatic 17): flowd::codex_runtime::build_skill_catalog 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":"src/codex_runtime.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"20559a0641c792f2533c6650ee69ea75bbfac18462239f17a834083f71be5ea1"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::tasks::select_discovered_task (cyclomatic 17): flowd::tasks::select_discovered_task 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":"src/tasks.rs"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"981bc758761de53c9bc7b6f9b1a3c8b50f3298c0f3da5391c5f8c0fee8650148"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::tasks::execute_task (cyclomatic 17): flowd::tasks::execute_task 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":"src/tasks.rs"},"region":{"startLine":1595}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d3d2c36aaffee00567e969dbb863c9420b64f11e06b73185b83547803ca424"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::tasks::run_command_with_pipes (cyclomatic 17): flowd::tasks::run_command_with_pipes 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":"src/tasks.rs"},"region":{"startLine":2858}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0dfc3f62051a6bd68e3908ebd786b9cf997ec09a68075236cb3ddf74f3c0148"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::get_session_exchanges_since (cyclomatic 17): flowd::ai::get_session_exchanges_since 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: flowd::ai::run_provider (cyclomatic 53) 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":"src/ai.rs"},"region":{"startLine":1486}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a9858ab143868c97560f132677d11b91e8bdfe8d75d3b3783f7a322715bb5a"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::parse_session_file (cyclomatic 17): flowd::ai::parse_session_file 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: flowd::ai::run_provider (cyclomatic 53) 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":"src/ai.rs"},"region":{"startLine":3101}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa538931e9392e5e0c41d96375918e1806b27eddd084abbd4af38a60257ca78f"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::read_last_context (cyclomatic 17): flowd::ai::read_last_context 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: flowd::ai::run_provider (cyclomatic 53) 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":"src/ai.rs"},"region":{"startLine":14053}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae99a03cc341c470b657aa28077971486c44fcdc4a5221754031fe0d0128b37"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::task_match::run_with_tasks (cyclomatic 17): flowd::task_match::run_with_tasks 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":"src/task_match.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"b264e0481d2aa36d02b72dd635326393f0d4fc769333f75a6a4772be1c5e8934"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::home::run (cyclomatic 16): flowd::home::run has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/home.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b22c5bdaa7dda3e5b46fccd417efcc72db7f9b5375a8993f141c59c5a7927cd"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::setup::load_server_setup_template (cyclomatic 16): flowd::setup::load_server_setup_template 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":"src/setup.rs"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"97135e1eeb66fe2d36b3d52db6cc9f60021a8230f96af52df795c83fc7260c20"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::setup::apply_server_template (cyclomatic 16): flowd::setup::apply_server_template has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup.rs"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb096ea3f0cf806d98a4dbf69cf1dd3f53838daf689a89feb911004a389b750e"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::upgrade::run (cyclomatic 16): flowd::upgrade::run has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/upgrade.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5993062e3dacea0cc9e7d36cb82f672888dc161de74faa91114897c1e52c3da"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::services::run_stripe (cyclomatic 16): flowd::services::run_stripe 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":"src/services.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"212b6370ce29af22446e9f7155c1c09efa6ee7ebefaab5c367017f179f16e68b"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::git_guard::run_git_repair (cyclomatic 16): flowd::git_guard::run_git_repair has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/git_guard.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"b893e4318a4d537b93fc9cda705aebf80eb6d7ecc9370bb6745506f6773ba273"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::commit::try_capture_unhash_bundle (cyclomatic 16): flowd::commit::try_capture_unhash_bundle has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":15030}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a8a2638454562f16eaaef717b2af6b8ddc7055c9a424706cbc2d15f8bc7f48"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::deploy::setup_cloudflare (cyclomatic 16): flowd::deploy::setup_cloudflare 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":"src/deploy.rs"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"e893abfad1eb505cb98342ca145981fc5ac210666668944fe4a451a5e8f1fd5d"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::proxy::summary::compute_summary (cyclomatic 16): flowd::proxy::summary::compute_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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/proxy/summary.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bfb9709f834ac82309ec0462e522ab6296ed500dcc31afab07332f67b9f6607"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::proxy::summary::suggest_fix (cyclomatic 16): flowd::proxy::summary::suggest_fix has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/proxy/summary.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b9be00edce96718bdf091a53a029068ef5c25e28ae0761cbc800dc2ca3182e"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::read_codex_turn_patch_changes (cyclomatic 16): flowd::ai::read_codex_turn_patch_changes 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: flowd::ai::run_provider (cyclomatic 53) 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":"src/ai.rs"},"region":{"startLine":10050}}}],"partialFingerprints":{"codehealthFindingId/v1":"0063bac0cf5512934f09294acb2ce429181e1e4388546b9942ae2c0e82d9a2e3"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::ai::codex_trace_command (cyclomatic 16): flowd::ai::codex_trace_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: flowd::ai::run_provider (cyclomatic 53) 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":"src/ai.rs"},"region":{"startLine":10868}}}],"partialFingerprints":{"codehealthFindingId/v1":"b40ee97964795d6608a7e220512e990f94721fc13e50998551d2d8e069325092"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::code::migrate_to_path (cyclomatic 16): flowd::code::migrate_to_path has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/code.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4376673ef3340c2a755e56946e0b8ecefdfac307d1906646351982d3d5d632"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::env_setup::draw_ui (cyclomatic 16): flowd::env_setup::draw_ui has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env_setup.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"f663fa414c0053e2c2f87e3d26b1be53c1f3ae7d94ccd2028bb6a52cba7ea6ae"}},{"ruleId":"D1","level":"warning","message":{"text":"flowd::repos::run_migrate_home_branch (cyclomatic 16): flowd::repos::run_migrate_home_branch 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":"src/repos.rs"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"026f5fb70a777c6889501f9379ed52d7b8557140e0c0883e3c64de6f6068e427"}},{"ruleId":"D1","level":"warning","message":{"text":"bench-moonbit-rust-ffi.main (cyclomatic 16): bench-moonbit-rust-ffi.main has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/bench-moonbit-rust-ffi.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5ee8e36194041f427a1fa889ee01353d203dfc1f83ba6d50d58631b0d8d115"}},{"ruleId":"D1","level":"warning","message":{"text":"build_rl_runtime_dataset._normalize_seq (cyclomatic 16): build_rl_runtime_dataset._normalize_seq has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/build_rl_runtime_dataset.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b943998dff298b0268d8081762057534a3ca30ee965107336db7ac92ff7844"}},{"ruleId":"D1","level":"warning","message":{"text":"build_rl_runtime_dataset._build_report (cyclomatic 16): build_rl_runtime_dataset._build_report has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/build_rl_runtime_dataset.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0672d5646722559d187e7a4da57924f595accabff73311b9a6322eaffe37129"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::sync::run_sync (cognitive 227): flowd::sync::run_sync has cognitive complexity 227 (threshold 15). Drivers by points: if/else 95 (188 pts), boolean chains 23, loops 3 (10 pts), match/switch 3 (6 pts) (nesting depth added 103). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":1271}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b1a60f0743a47fd62933713ac19493348fc11f9ae1b2d94a5e210e715c9933"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::sync::run_jj_sync (cognitive 227): flowd::sync::run_jj_sync has cognitive complexity 227 (threshold 15). Drivers by points: if/else 92 (196 pts), boolean chains 16, loops 3 (8 pts), match/switch 2 (7 pts) (nesting depth added 114). 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":"src/sync.rs"},"region":{"startLine":3237}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef82a9559c62887f21765d6ff0715a00266fa6c30ffc39e4002fe4e605f7cd46"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::run_with_check_sync (cognitive 180): flowd::commit::run_with_check_sync has cognitive complexity 180 (threshold 15). Drivers by points: if/else 75 (131 pts), match/switch 8 (21 pts), boolean chains 16, loops 5 (12 pts) (nesting depth added 76). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":3898}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf376092761238b65785db68b3391adbeb9f7c010a4b021bb72b04ec6b6f6aec"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::run_commit_queue (cognitive 168): flowd::commit::run_commit_queue has cognitive complexity 168 (threshold 15). Drivers by points: if/else 55 (124 pts), match/switch 8 (22 pts), boolean chains 13, loops 4 (9 pts) (nesting depth added 88). 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":"src/commit.rs"},"region":{"startLine":8959}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06bab5d018d498e9026d71552198377bbaa7e89323eda9bb2611b5a43d3999a"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::scan_all_project_sessions (cognitive 115): flowd::ai::scan_all_project_sessions has cognitive complexity 115 (threshold 15). Drivers by points: if/else 21 (76 pts), loops 7 (36 pts), boolean chains 3 (nesting depth added 84). 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":"src/ai.rs"},"region":{"startLine":15654}}}],"partialFingerprints":{"codehealthFindingId/v1":"278477c98d0f272a7c19f5ff2cb94eb097683a635e965cbc737fd6c01916d398"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::copy_session_by_search (cognitive 114): flowd::ai::copy_session_by_search has cognitive complexity 114 (threshold 15). Drivers by points: if/else 20 (89 pts), loops 5 (22 pts), boolean chains 3 (nesting depth added 86). 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":"src/ai.rs"},"region":{"startLine":13481}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d51bf68673239be1f2c719b3df5f6c3f9695bb7252546da705c9bd789b7026e"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::sync_plan::render_markdown (cognitive 99): flowd::sync_plan::render_markdown has cognitive complexity 99 (threshold 15). Drivers by points: if/else 24 (64 pts), loops 11 (32 pts), boolean chains 3 (nesting depth added 61). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync_plan.rs"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81d1f131d687ecc80d4b9388eba6b355f2837970f534905a176586d8e1118db"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::main (cognitive 98): flowd::main has cognitive complexity 98 (threshold 15). Drivers by points: if/else 38 (76 pts), boolean chains 15, match/switch 4 (7 pts) (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c890d2fd0d30e425efb4e88081b1c8c5911321bc59a059f874c2ad008ce1ff"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::setup::setup_deploy (cognitive 78): flowd::setup::setup_deploy has cognitive complexity 78 (threshold 15). Drivers by points: if/else 43 (68 pts), boolean chains 7, match/switch 1 (3 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0deab9d699bb8f98a9df89217e99ade241c1c69dcdd50d9fb447ce45681a531"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::supervisor::monitor_daemons (cognitive 78): flowd::supervisor::monitor_daemons has cognitive complexity 78 (threshold 15). Drivers by points: if/else 19 (63 pts), loops 5 (10 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 51). 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":"src/supervisor.rs"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1966dd05167b20afd176df86bfca407ce379a14a658d82d31dbc22f68c0f8aa"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::hive::discover_agents (cognitive 72): flowd::hive::discover_agents has cognitive complexity 72 (threshold 15). Drivers by points: if/else 17 (61 pts), loops 5 (11 pts) (nesting depth added 50). 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":"src/hive.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6ff0ce7e863e764b530a82f393864c15ece7bd89ed625c8b7db64c7bfc606d"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::deps::build_pick_entries (cognitive 71): flowd::deps::build_pick_entries has cognitive complexity 71 (threshold 15). Drivers by points: if/else 22 (52 pts), loops 6 (14 pts), match/switch 2 (5 pts) (nesting depth added 41). 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":"src/deps.rs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18f0625fadabb250ac986975b8c6336732d0698e7e702433ecead465987e053"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::publish::run_github (cognitive 68): flowd::publish::run_github has cognitive complexity 68 (threshold 15). Drivers by points: if/else 36 (65 pts), boolean chains 3 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/publish.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"1620feb85d65cea6153f33ea30f7f0e5156d6f31f9ace0688c5715d993900193"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::approve_all_queued_commits (cognitive 67): flowd::commit::approve_all_queued_commits has cognitive complexity 67 (threshold 15). Drivers by points: if/else 23 (51 pts), boolean chains 7, loops 4 (6 pts), match/switch 2 (3 pts) (nesting depth added 31). 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":"src/commit.rs"},"region":{"startLine":7712}}}],"partialFingerprints":{"codehealthFindingId/v1":"614ca8c4a096a098dcaff860d51d579cb665689ba0bfd78e75a401fa9c84ca4d"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::env::bootstrap_cloudflare_secrets (cognitive 65): flowd::env::bootstrap_cloudflare_secrets has cognitive complexity 65 (threshold 15). Drivers by points: if/else 32 (55 pts), boolean chains 4, loops 3, match/switch 1 (3 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":2653}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c659f2d1b1a23ff853236a8f9dbb976f719fcb45dcb60ee376877e66728ca5c"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::run_codex_review_once (cognitive 64): flowd::commit::run_codex_review_once has cognitive complexity 64 (threshold 15). Drivers by points: if/else 23 (49 pts), match/switch 5 (10 pts), loops 4 (5 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":"src/commit.rs"},"region":{"startLine":5043}}}],"partialFingerprints":{"codehealthFindingId/v1":"37667b6dc8f20ba7215a151efbb1069a472feae19c9a4ff1343c77e59f4ef479"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::setup::load_server_setup_template (cognitive 62): flowd::setup::load_server_setup_template has cognitive complexity 62 (threshold 15). Drivers by points: if/else 14 (56 pts), match/switch 1 (6 pts) (nesting depth added 47). 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":"src/setup.rs"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe446f79f0f480fa0727bf81de750c0b1e139647a07b135cadaecb53e55ec11"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::deploy::deploy_cloudflare (cognitive 62): flowd::deploy::deploy_cloudflare has cognitive complexity 62 (threshold 15). Drivers by points: if/else 27 (53 pts), boolean chains 3, loops 1 (3 pts), match/switch 1 (3 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fbcc6d61d3ffd50ba1acdddd6ac3a645a5645131c3210179a0adc194595b836"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::recover_row_score (cognitive 62): flowd::ai::recover_row_score has cognitive complexity 62 (threshold 15). Drivers by points: if/else 35 (60 pts), boolean chains 1, loops 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":7470}}}],"partialFingerprints":{"codehealthFindingId/v1":"86af531de25e822d5773ddbf48178cbcfc1033906a67acf07afa2b4c8a3891b1"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::env::show_keys (cognitive 59): flowd::env::show_keys has cognitive complexity 59 (threshold 15). Drivers by points: if/else 18 (37 pts), loops 5 (15 pts), match/switch 1 (5 pts), boolean chains 2 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":3081}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bfee6a7fdae11c4d2036e1ab358c08a6161db7f0eb7a04c39e9c2072d7d807c"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::run_invariant_gate (cognitive 56): flowd::commit::run_invariant_gate has cognitive complexity 56 (threshold 15). Drivers by points: if/else 19 (41 pts), loops 5 (11 pts), boolean chains 4 (nesting depth added 28). 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":"src/commit.rs"},"region":{"startLine":3264}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a142314e51d933819e388de14eda9efce4c31296e9c0315942d52f181334be"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::tasks::run_command_with_pty (cognitive 56): flowd::tasks::run_command_with_pty has cognitive complexity 56 (threshold 15). Drivers by points: if/else 24 (48 pts), loops 3 (4 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":2552}}}],"partialFingerprints":{"codehealthFindingId/v1":"663041a924f57557856b06688ca1527bc3a7a60dd045d1177ba17b21cfc09cd4"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::codex_project_ai_command (cognitive 54): flowd::ai::codex_project_ai_command has cognitive complexity 54 (threshold 15). Drivers by points: if/else 19 (38 pts), loops 4 (15 pts), match/switch 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":10972}}}],"partialFingerprints":{"codehealthFindingId/v1":"834e9be5ca9c0da7ceca6afd69d4a7f506f34af1b025ce882a864545635bb344"}},{"ruleId":"D2","level":"warning","message":{"text":"flow_commit_scan::scan_diff_for_secrets (cognitive 54): flow_commit_scan::scan_diff_for_secrets has cognitive complexity 54 (threshold 15). Drivers by points: if/else 16 (44 pts), boolean chains 6, loops 2 (4 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/flow_commit_scan/src/lib.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf59f8099ee9a70bda70ca3fcaa37e3d03dada3412637b5126fddeb969dfe1b"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::processes::show_hub_task_logs (cognitive 52): flowd::processes::show_hub_task_logs has cognitive complexity 52 (threshold 15). Drivers by points: if/else 17 (41 pts), loops 3 (8 pts), match/switch 1 (3 pts) (nesting depth added 31). 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":"src/processes.rs"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22ac894ec099721c18fc368c00703844cb3c1769cb4e1c2df5c26dd12f17b0b"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::updates::render_markdown (cognitive 51): flowd::updates::render_markdown has cognitive complexity 51 (threshold 15). Drivers by points: if/else 15 (33 pts), loops 6 (16 pts), boolean chains 2 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/updates.rs"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"05547c36852d5adfa86635d68d5438558bcb1d9190b76260cf2958a428435343"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::deploy::deploy_host (cognitive 51): flowd::deploy::deploy_host has cognitive complexity 51 (threshold 15). Drivers by points: if/else 23 (39 pts), boolean chains 5, loops 1 (4 pts), match/switch 1 (3 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f747cedafa8ef02edc32bd75e97ad028605bde099ca722640776b061e03d63e"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::parse_session_file (cognitive 49): flowd::ai::parse_session_file has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (48 pts), boolean chains 1 (nesting depth added 33). 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":"src/ai.rs"},"region":{"startLine":3101}}}],"partialFingerprints":{"codehealthFindingId/v1":"59428ec480c308fb650819e4bd628bf1493ffe0a217bccc2f77a701bfb02594e"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::deploy_setup::handle_key (cognitive 48): flowd::deploy_setup::handle_key has cognitive complexity 48 (threshold 15). Drivers by points: if/else 14 (34 pts), match/switch 8 (14 pts) (nesting depth added 26). 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":"src/deploy_setup.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05562afcaf287285fca7c26352b1848260f2742a6b663b7a154bafcbe2c8b17"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::code::copy_codex_session_file (cognitive 48): flowd::code::copy_codex_session_file has cognitive complexity 48 (threshold 15). Drivers by points: if/else 14 (44 pts), loops 2, match/switch 1 (2 pts) (nesting depth added 31). 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":"src/code.rs"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0187cb6414e7f2d507caabaf4cb3859184f8ff13d66fb74ced5e13059be939"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai_project_manifest::build_manifest (cognitive 48): flowd::ai_project_manifest::build_manifest has cognitive complexity 48 (threshold 15). Drivers by points: if/else 18 (45 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_project_manifest.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"872c3b020a91d86e3586b41c5255e0dfc22c63a41b094983feaf1fd904f32763"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::url_inspect::inspect_url (cognitive 46): flowd::url_inspect::inspect_url has cognitive complexity 46 (threshold 15). Drivers by points: if/else 12 (28 pts), match/switch 6 (14 pts), boolean chains 3, loops 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/url_inspect.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5ef81a3fe42c670fdcb6aa0eb73abee3df82c0d2e89b9ca1aeef2d152fe6f4"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::run_claude_review (cognitive 43): flowd::commit::run_claude_review has cognitive complexity 43 (threshold 15). Drivers by points: if/else 19 (34 pts), match/switch 3 (5 pts), loops 3, 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":"src/commit.rs"},"region":{"startLine":5543}}}],"partialFingerprints":{"codehealthFindingId/v1":"4227401f325ba962209b5c98e44be1f95583cbd5378c955c27f73f6523f5a1db"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::copy_session (cognitive 42): flowd::ai::copy_session has cognitive complexity 42 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 7, match/switch 2 (6 pts), loops 1 (2 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":"src/ai.rs"},"region":{"startLine":13286}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4abab0725f3edb6a043cbfc4f8ec57a7fe413595ce6547a7ae1d6bcf0880759"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::env_setup::handle_key (cognitive 42): flowd::env_setup::handle_key has cognitive complexity 42 (threshold 15). Drivers by points: if/else 12 (30 pts), match/switch 7 (12 pts) (nesting depth added 23). 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":"src/env_setup.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"038a118c401a1e63d5eb3cf456c705b9dde26da6382575adb78ce79840506abc"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::gh_release::detect_version (cognitive 41): flowd::gh_release::detect_version has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (37 pts), loops 2 (4 pts) (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/gh_release.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"1416dc32165fef0154e494628113e8c95470fdf3355c98bc927e8cb424322c20"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::write_agent_traces (cognitive 41): flowd::commit::write_agent_traces has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (28 pts), match/switch 3 (9 pts), loops 2 (4 pts) (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":"src/commit.rs"},"region":{"startLine":14664}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e13a9922ced9a584bff8831c49fd563285acd188a123f807b9865e8735534e"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::tasks::select_discovered_task (cognitive 41): flowd::tasks::select_discovered_task has cognitive complexity 41 (threshold 15). Drivers by points: if/else 21 (39 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"81387e3500bf22d29d1d914c3f6bc6f711fa31f87d4f9396fd09a0ab90977558"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::read_context_since (cognitive 41): flowd::ai::read_context_since has cognitive complexity 41 (threshold 15). Drivers by points: if/else 19 (34 pts), match/switch 2 (4 pts), loops 2 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"8986f60c8020a0b3f90880414eb3c86d5e2d68a05c7872f9cc31913cc5e7f8eb"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::copy_context (cognitive 41): flowd::ai::copy_context has cognitive complexity 41 (threshold 15). Drivers by points: if/else 18 (30 pts), match/switch 2 (6 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":13839}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b5ec26f1ec1bbd843e6f756747a04502fda0a4a5856a566688f1be261a8bf4"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::fix_html_comments_to_jsx (cognitive 40): flowd::commit::fix_html_comments_to_jsx has cognitive complexity 40 (threshold 15). Drivers by points: if/else 8 (27 pts), loops 2 (6 pts), match/switch 1 (6 pts), boolean chains 1 (nesting depth added 28). 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":"src/commit.rs"},"region":{"startLine":15598}}}],"partialFingerprints":{"codehealthFindingId/v1":"867e5cd5159aed202f38c7a11673f48bff61d4cb7fbe8d3e4f10a6c6f906b5e0"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::repos::bootstrap_home_branch (cognitive 40): flowd::repos::bootstrap_home_branch has cognitive complexity 40 (threshold 15). Drivers by points: if/else 20 (33 pts), boolean chains 6, 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":"src/repos.rs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"513b7b8a2ff0d56a48f06e2a8aa924ced6ba3857614a089c2bad7f39abb0ef77"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai_everruns::wait_for_completion_sse (cognitive 39): flowd::ai_everruns::wait_for_completion_sse has cognitive complexity 39 (threshold 15). Drivers by points: if/else 8 (24 pts), loops 3 (7 pts), match/switch 2 (5 pts), boolean chains 3 (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":"src/ai_everruns.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4c1bd0fdfc7c29564cdd9d0adf985166a53a1ff7be980f8f091ca45b3d2fe7"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::env::fetch_env_vars (cognitive 39): flowd::env::fetch_env_vars has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (25 pts), match/switch 6 (9 pts), boolean chains 5 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":3688}}}],"partialFingerprints":{"codehealthFindingId/v1":"4972a82e56469cb3a713ea3184d5ddc38d4308d8616db3bc5f29bd2445dcad50"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::server::processes_list (cognitive 38): flowd::server::processes_list has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (27 pts), loops 4 (11 pts) (nesting depth added 24). 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":"src/server.rs"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a2ce48b135505612e1985c489468a6688a1e4630b95f959e59aae4227a2ecd"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ssh_keys::upsert_ssh_block (cognitive 38): flowd::ssh_keys::upsert_ssh_block has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (33 pts), boolean chains 4, 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":"src/ssh_keys.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b3f30c70f759a1b974c742d0960bd324d94338f950dde8e8d7999a3ba7dffb"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::upstream::sync_upstream (cognitive 38): flowd::upstream::sync_upstream has cognitive complexity 38 (threshold 15). Drivers by points: if/else 25 (32 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/upstream.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee36ac9b95bdf9fa6a1f429e819a15e9df61214f1c8f10062953dba5d8c6ab5"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::warn_secrets_in_diff (cognitive 36): flowd::commit::warn_secrets_in_diff has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (31 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb3f8da2bbf789d6cbc378cb5ca4cf85ea4b8d01f753ba7aa0b2001d81082d7"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::code::update_codex_session_file (cognitive 36): flowd::code::update_codex_session_file has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (32 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/code.rs"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3d2f110169e8d6cdcdcbf5c938c85f960171fa6097e47206c6625faea199e1"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::env::set_project_env_var_internal (cognitive 36): flowd::env::set_project_env_var_internal has cognitive complexity 36 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 5, match/switch 3 (4 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":"src/env.rs"},"region":{"startLine":3430}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bcc4ca04aa4323a53ac04c664f6ab49f08a9fafce809aa1d124032abbd6d1a5"}},{"ruleId":"D2","level":"warning","message":{"text":"PrEditService::run_loop (cognitive 35): PrEditService::run_loop has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (26 pts), loops 3 (7 pts), match/switch 1 (2 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pr_edit.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"c416266335de02f8703cfac9d788ee50c0637d3995cce788583f36337f22eb61"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::gitignore_policy::staged_gitignore_violations (cognitive 35): flowd::gitignore_policy::staged_gitignore_violations has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (32 pts), loops 2 (3 pts) (nesting depth added 23). 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":"src/gitignore_policy.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc819aeaa192f2fdcb38f89d350a4b5bccfd217ef93c203f42e655335c2f9164"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::openrouter_chat_completion_with_retry (cognitive 35): flowd::commit::openrouter_chat_completion_with_retry has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (24 pts), match/switch 3 (6 pts), boolean chains 4, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":6317}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64acc7b5a89ad5a6fafef2c6bb4f9eb9bee2849997e41b7ca41605960ae3043"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::deploy::setup_cloudflare (cognitive 35): flowd::deploy::setup_cloudflare has cognitive complexity 35 (threshold 15). Drivers by points: if/else 19 (32 pts), match/switch 1 (3 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":"src/deploy.rs"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9794345dfc9430b0d60e56f94dceba1778750b3012b6a9206389d11bb3b8d3"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::read_cross_project_context (cognitive 35): flowd::ai::read_cross_project_context has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (30 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":15889}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2d8af7d36c6f22f815e0caab866fd5d5ed48f219f769b18caffdd0bbf858ec"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai_everruns::wait_for_completion_poll (cognitive 34): flowd::ai_everruns::wait_for_completion_poll has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 3 (7 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_everruns.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7eb7186356bb863fb36c5c5e429539dfc2a2af59775d06a76bf1083fa6d5173"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::supervisor::print_status_views (cognitive 34): flowd::supervisor::print_status_views has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (33 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/supervisor.rs"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aac7263c773faec0d9c37df8e591e54d6a15ce86503122096e0077e9f4b5d52"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::sync::run_switch (cognitive 34): flowd::sync::run_switch has cognitive complexity 34 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 5, match/switch 2 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":1952}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf29201e38a763cf70628ff03009b635135554300309682487d5102a0c9d23a1"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::list_sessions (cognitive 34): flowd::ai::list_sessions has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (22 pts), match/switch 2 (5 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":3942}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ba7ccf86140f1f77d623096a2cbf52e6545ce962ede4cc4a43b1a5f5e9c7d2"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::build_codex_open_plan (cognitive 34): flowd::ai::build_codex_open_plan has cognitive complexity 34 (threshold 15). Drivers by points: if/else 20 (28 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":11374}}}],"partialFingerprints":{"codehealthFindingId/v1":"6173df595eaf80dcb34936536d6c9f6bb435925508afef63195eee1a79f4d912"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::parse_commit_message_selection_spec (cognitive 33): flowd::commit::parse_commit_message_selection_spec has cognitive complexity 33 (threshold 15). Drivers by points: if/else 25 (30 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"2940c4aafa0093d4d871ac9d81c9acfd2837dcfd1649e55592d2ff1c051e4a73"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::proxy::summary::compute_summary (cognitive 33): flowd::proxy::summary::compute_summary has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (29 pts), loops 4 (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":"src/proxy/summary.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe6faf77c9976f9e0ac2999eb495f65c3e5aaf3c3963159e94e2bf1e13082dd"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::setup::repair_existing_host_config (cognitive 32): flowd::setup::repair_existing_host_config has cognitive complexity 32 (threshold 15). Drivers by points: if/else 22 (32 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":"src/setup.rs"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e57711bc9034ad267f09e5bc437a779b61d61b887df3deda61e94cb5b21f2d5"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::review_bookmark_prefix (cognitive 32): flowd::commit::review_bookmark_prefix has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (32 pts) (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":8334}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fe9f078de2213083d9f51a52e17dcd8f9738de3838e568176eb1f6da68d973"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::parse_pr_edit_markdown (cognitive 32): flowd::commit::parse_pr_edit_markdown has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 4 (10 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":"src/commit.rs"},"region":{"startLine":11563}}}],"partialFingerprints":{"codehealthFindingId/v1":"11aa6fe1b91df6beaec75e0e12eee3b29ba824e49f79460a4930c520a69cfc5d"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::traces::fetch_task_runs (cognitive 32): flowd::traces::fetch_task_runs has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (17 pts), match/switch 7 (14 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/traces.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc4ebbe06b1a7b5c3067aa70172b8b8b3b89011d1f53bfd255dc7a5b0b99b10"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::get_session_exchanges_since (cognitive 32): flowd::ai::get_session_exchanges_since has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (28 pts), match/switch 1 (3 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":"src/ai.rs"},"region":{"startLine":1486}}}],"partialFingerprints":{"codehealthFindingId/v1":"c043a87265c14a0f387568d8c5ad0c0877dc18dfc31ef6adbd32a388b8903215"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::codex_trace_command (cognitive 32): flowd::ai::codex_trace_command has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (31 pts), match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":10868}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b104d9ae2c80bcda81d44e3ebca08439c900910298f7620155c6affd064163"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::run_sessions (cognitive 32): flowd::ai::run_sessions has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (17 pts), loops 4 (7 pts), match/switch 3 (5 pts), boolean chains 3 (nesting depth added 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":"src/ai.rs"},"region":{"startLine":15469}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28697202d558d5c6f7996a9eed3ee4cbda7a00d4204f8b3d364a65a61b1076f"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::pr_edit::parse_title_body (cognitive 32): flowd::pr_edit::parse_title_body has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 4 (10 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":"src/pr_edit.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"9138aa9a61f5fa2010d9da96a595a5f0a0980b9e685882c83025ef172844dc79"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::gh_release::create_release (cognitive 31): flowd::gh_release::create_release has cognitive complexity 31 (threshold 15). Drivers by points: if/else 21 (27 pts), loops 2, boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/gh_release.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfad1ad06a3daaac12b60b6215c40b57af3561e5bcc3b268cca01ccb12b497a"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::skills::fetch_skills (cognitive 31): flowd::skills::fetch_skills has cognitive complexity 31 (threshold 15). Drivers by points: if/else 21 (29 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/skills.rs"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6cfd41b0acd83aab64cd1ed27229c2b2dbcd913eb69e4a02260385f190c81d"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::parse_review_selection_spec (cognitive 31): flowd::commit::parse_review_selection_spec has cognitive complexity 31 (threshold 15). Drivers by points: if/else 22 (26 pts), boolean chains 5 (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":"src/commit.rs"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06c263d63f0c0216f9b580cb8aed69f17c5d9e9be5331902cfaa25d45bb2ebc"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::configured_codex_bin_for_workdir (cognitive 31): flowd::commit::configured_codex_bin_for_workdir has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (30 pts), loops 1 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":5374}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4bac2d3c29a6ef017ee1d91c6f8736401b09edd3ee7a6de432ca646aad9c339"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::tasks::run (cognitive 31): flowd::tasks::run has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (24 pts), match/switch 2 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"1428c5bdb57896dfd02e78c3ec4faa3dea060c451660ce9c8bb9511ddbe21460"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::tasks::run_command_with_pipes (cognitive 31): flowd::tasks::run_command_with_pipes has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (26 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":2858}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04d36359a5740064f5f67205ce898040afd46c02a090ff42744e8bb3b729cc5"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::services::run_stripe (cognitive 30): flowd::services::run_stripe has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (23 pts), loops 3 (5 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":"src/services.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fc5c2d9d6eef621d4b35757ad14b4c7129a44887fcf10bb76d9da5b313beae"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::commit_queue_enabled_from_config (cognitive 30): flowd::commit::commit_queue_enabled_from_config has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (30 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. This shape REPEATS in the file: 2 other methods here (flowd::commit::commit_queue_on_issues_enabled, flowd::commit::resolve_commit_message_override) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":"src/commit.rs"},"region":{"startLine":2865}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab10d7c59186b0023b0d2724812adfa5a529b7acc612ca15a11eb2ff68815a7"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::commit_queue_on_issues_enabled (cognitive 30): flowd::commit::commit_queue_on_issues_enabled has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (30 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. This shape REPEATS in the file: 2 other methods here (flowd::commit::commit_queue_enabled_from_config, flowd::commit::resolve_commit_message_override) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":"src/commit.rs"},"region":{"startLine":2902}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db69965a1f777c1035fcb29911ac465fcc10a11575870f44eb28b683a2b8005"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::resolve_commit_message_override (cognitive 30): flowd::commit::resolve_commit_message_override has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (30 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. This shape REPEATS in the file: 2 other methods here (flowd::commit::commit_queue_enabled_from_config, flowd::commit::commit_queue_on_issues_enabled) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":"src/commit.rs"},"region":{"startLine":11980}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ba40a43474a27006549c6659d0b00f8d48b3f8ee39c867ad846de80cabcb4f"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::code::move_sessions (cognitive 30): flowd::code::move_sessions has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 4, 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":"src/code.rs"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"19938e398b6bb24d71bc3f3156a9eefcc4f693c82de99d693af5b0fb2348ad96"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::repos::run_migrate_home_branch (cognitive 30): flowd::repos::run_migrate_home_branch has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 3, loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/repos.rs"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"046fcb7e04e12aa950107ec03b6ff556a238bb7ee22e4fbec93832ec5e7614d9"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::jj::print_status_snapshot (cognitive 29): flowd::jj::print_status_snapshot has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 4 (5 pts), match/switch 1 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jj.rs"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"4026802d333ebb1a38403827445657b25c40f16e8f853c09f9afbc8034e3a6be"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::sync::merge_remote_branch_into_current (cognitive 29): flowd::sync::merge_remote_branch_into_current has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (22 pts), match/switch 2 (5 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":4002}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c32a0a28944ea2ce7bc503d76dafb40156d6def476af3c62b984d4f655ed368"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::sync::restore_stash_result_with_packet_dir (cognitive 29): flowd::sync::restore_stash_result_with_packet_dir has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (25 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":5146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b901e1c604faa0686edf00911a42f8607bd765624981e3675c24b77887fd60"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::commit_with_check_review_url (cognitive 29): flowd::commit::commit_with_check_review_url has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (29 pts) (nesting depth added 16). 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":"src/commit.rs"},"region":{"startLine":2754}}}],"partialFingerprints":{"codehealthFindingId/v1":"996748ff7a58b026b9d87ebce1ba67e326880cdadeef744719a90ed73a4f25e9"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::deploy::run_prod_with_project_context (cognitive 29): flowd::deploy::run_prod_with_project_context has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (27 pts), boolean chains 1, match/switch 1 (nesting depth added 17). 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":"src/deploy.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"87fbfc918ea5c0bd43ca9ea5be8dcff8f555057272167e23f3f037de94d9718a"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::config::merge_config (cognitive 29): flowd::config::merge_config has cognitive complexity 29 (threshold 15). Drivers by points: if/else 19 (24 pts), loops 3 (4 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config.rs"},"region":{"startLine":2535}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb81ae81112c7bffd4df596663c399aad85516dec82d7d0349ef0a700264f9b3"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::repos::clone_repo (cognitive 29): flowd::repos::clone_repo has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (22 pts), match/switch 3 (4 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/repos.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"7866c092ba90d9241e3938a50a42c3bcaa931fb8e98b25a81741d1beacb45694"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::skills::myflow_token (cognitive 28): flowd::skills::myflow_token has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (28 pts) (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/skills.rs"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc36476d52278c46edf19d7e6ab5b5614aae93f50762cba07b59e51946a6840a"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::myflow_token (cognitive 28): flowd::commit::myflow_token has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (28 pts) (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":14116}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7137077a6690fb4023afe3b688b64af189f91f16df1fe66159a8267ba39f0e9"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::read_last_context (cognitive 28): flowd::ai::read_last_context has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (22 pts), match/switch 2 (4 pts), loops 2 (nesting depth added 14). 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":"src/ai.rs"},"region":{"startLine":14053}}}],"partialFingerprints":{"codehealthFindingId/v1":"89121f872ceefcf820fd8532b463c261b050c54cf57ee823b15840c769666718"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::processes::show_task_logs (cognitive 28): flowd::processes::show_task_logs has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (17 pts), loops 2 (6 pts), match/switch 3 (5 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/processes.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3bbbc0bc450ce509ab9a46a5e2289c556e1a5adaef5d6b6e7c2d065dc7eadfe"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::repos::discover_repos (cognitive 28): flowd::repos::discover_repos has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 4 (8 pts), loops 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/repos.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c214b0d6379d4eb0b057248b27cdcdac6b17ede55badcbb67aeab243a7e0341"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::codex_memory::score_code_path (cognitive 27): flowd::codex_memory::score_code_path has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 4, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_memory.rs"},"region":{"startLine":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"500a1f28ef2c7f0d0c993d70aeae30d5b07baf8e2cdb1249257ea2cf005c0343"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::sync::resolve_upstream_branch_in (cognitive 27): flowd::sync::resolve_upstream_branch_in has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 1 (nesting depth added 14). 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":"src/sync.rs"},"region":{"startLine":4325}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bbf7794c35c817bc114b9c95df7d6ad73536bfa493aa46ab5414f75c8efabb8"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::run_fast (cognitive 27): flowd::commit::run_fast has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (16 pts), match/switch 3 (7 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":2203}}}],"partialFingerprints":{"codehealthFindingId/v1":"1184c3c9943f7dc9bfb783999e7034a1365829249d086c64bdc52e56f8a74a8e"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::run_pre_commit_test_gate (cognitive 27): flowd::commit::run_pre_commit_test_gate has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 3, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":3683}}}],"partialFingerprints":{"codehealthFindingId/v1":"698d9f4dde55d03eaf08bb43ddc5172bb65424b79ba100ed50617c9229f78403"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::run_kimi_review (cognitive 27): flowd::commit::run_kimi_review has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (21 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":5941}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa239b1b72d43524fe60a85e8f26301fb62b5c839a9f48abec3a1e1624411cca"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::run_pr_feedback (cognitive 27): flowd::commit::run_pr_feedback has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":11385}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb117f399ca48d0662ee3b56d2a43fbc3842dc16b3d06523399ad3a3b8409c3"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::publish::build_repo_snapshot (cognitive 27): flowd::publish::build_repo_snapshot has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (21 pts), match/switch 2 (3 pts), boolean chains 2, 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":"src/publish.rs"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"803c1d899971cae7d1a4a7b777ba5d91d9234d23bc7aba9a2a7feefee5324fe7"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::logs::stream_server_logs (cognitive 27): flowd::logs::stream_server_logs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 2 (11 pts), match/switch 3 (11 pts), loops 2 (5 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":"src/logs.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9e533b0874e5492fc0c72af9f2ff8343d1c9c9df7e83f4fcd4a8e1351d8d19"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::collect_codex_doctor_snapshot (cognitive 27): flowd::ai::collect_codex_doctor_snapshot has cognitive complexity 27 (threshold 15). Drivers by points: if/else 22, boolean chains 5. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":8566}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3c3234db70e93548093dffb2b4ed8106365a5cb16aff9f2ce80d99b6bc6fd7"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::codex_skill_eval_command (cognitive 27): flowd::ai::codex_skill_eval_command has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (18 pts), loops 3 (8 pts), match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":11088}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b12d5f41547ae524f44541ee38340b45cb5f94e193c5d3ecc16a02fdaff924"}},{"ruleId":"D2","level":"warning","message":{"text":"build_rl_runtime_dataset._normalize_seq (cognitive 27): build_rl_runtime_dataset._normalize_seq has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 6, error handling 1 (4 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":"scripts/build_rl_runtime_dataset.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ceb6fb0b19698f561f5774a6565de9dbd408acd5c6129280b5a26a1a47b509d"}},{"ruleId":"D2","level":"warning","message":{"text":"ParallelRunner::run_task (cognitive 26): ParallelRunner::run_task has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (21 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/parallel.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8bb13356e03c1a10f0ff7c580f25b3761516eefa5105a7200060a85a318fb7d"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::codex_memory::collect_symbol_candidate_paths (cognitive 26): flowd::codex_memory::collect_symbol_candidate_paths has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 4, loops 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":"src/codex_memory.rs"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc6fcaa605fbbbe2bf2545343f55bf23ed83149e5c9703745943f837b795cfe"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::agents::invoke_gen_capture_streaming (cognitive 26): flowd::agents::invoke_gen_capture_streaming has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 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":"src/agents.rs"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"c518ec14fff66b7f8459baf5c6012f3cdf56f17c5a8d629fa31de866e5beae5f"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::supervisor::reconcile_removed (cognitive 26): flowd::supervisor::reconcile_removed has cognitive complexity 26 (threshold 15). Drivers by points: loops 5 (15 pts), if/else 6 (11 pts) (nesting depth added 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/supervisor.rs"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"658731c434d720ffd7d20d7d97b06e4ec3a55c596cc80c37d7b938aae5f5c294"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::commit_with_check_review_token (cognitive 26): flowd::commit::commit_with_check_review_token has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (26 pts) (nesting depth added 14). 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":"src/commit.rs"},"region":{"startLine":2799}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a00ff730c592e8786e4398cb8af9da6a2a5f201f7841b96f6f9eacad81bfb6"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::codex_runtime::clear_runtime_states (cognitive 26): flowd::codex_runtime::clear_runtime_states has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 3 (6 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":"src/codex_runtime.rs"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7468dda77b63a7c649f54c60100d1c86ef8c277050c865bce9726b61149aa5"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::strip_codex_session_followup_prefix (cognitive 26): flowd::ai::strip_codex_session_followup_prefix has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 11, match/switch 1 (2 pts), loops 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":6053}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4327d9e517221ce21fad7cf46022074446b0a15c7201312f039577d6b177e4"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::daemon::wait_for_daemon_ready (cognitive 26): flowd::daemon::wait_for_daemon_ready has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (21 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 14). 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":"src/daemon.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b84045e3c713afeb1d01f1b172735e3c8fec6a4634333b255315ed4ce52616"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::env::list (cognitive 26): flowd::env::list has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (22 pts), loops 2 (3 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":3206}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6b6002000ddfe81e903837474b030e9d2dbf4753fd4c3f48eea56be01b2d9f"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::codex_skill_eval::build_scorecard (cognitive 25): flowd::codex_skill_eval::build_scorecard has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (20 pts), loops 3 (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":"src/codex_skill_eval.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82a7546a15ee88c443bf61756e5516fd9345406681fd7c3ecde6f4ae3bb0c0b"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::setup::create_flow_toml_interactive (cognitive 25): flowd::setup::create_flow_toml_interactive has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (22 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup.rs"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4cae16cd0fc1de764cd92535532f4c6b63ba2b087097ac6e9d51154c509128"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::task_failure_agents::load_settings (cognitive 25): flowd::task_failure_agents::load_settings has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (25 pts) (nesting depth added 16). 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":"src/task_failure_agents.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc6641caaceb859099189d50958ce53b03e609e36f2d5cc92b1bb8cd8c9faa7"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::run_sync (cognitive 25): flowd::commit::run_sync has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (13 pts), match/switch 3 (7 pts), boolean chains 4, loops 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":1979}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd5040c207913c9b222176e757f688257c05fe03ba28777460445a950330fae"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::resolve_pr_for_open (cognitive 25): flowd::commit::resolve_pr_for_open has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17 (24 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":"src/commit.rs"},"region":{"startLine":11721}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a08ad2802d8a7c4497ce928472c69425593f0375c52e3a3caa17a80a7d682ee"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::tasks::execute_task (cognitive 25): flowd::tasks::execute_task has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (17 pts), match/switch 2 (5 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":1595}}}],"partialFingerprints":{"codehealthFindingId/v1":"6faf1ed3acc7e9395fdef4d955b2000ea900a56fdab722ca2f69e119a55916ca"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::release_signing::status (cognitive 25): flowd::release_signing::status has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 4 (10 pts), match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/release_signing.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"a833eaa75a2a2e1f91b065fee0353122383c96aa2e8c16f0f9918b06afc91cd9"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::timestamp_in_window_cached (cognitive 25): flowd::ai::timestamp_in_window_cached has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (25 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd9566534cc60ed5e1fbb10ae8af2302bd8a45832f83ca8621e6a05aa39b57e"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::upstream::setup_upstream_internal (cognitive 25): flowd::upstream::setup_upstream_internal has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17 (21 pts), loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/upstream.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4586c20d9ac3a8d7e9e5ad22d717c1c13802d70f76de081377b3c8212ce47cb"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::upstream::pull_upstream (cognitive 25): flowd::upstream::pull_upstream has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (24 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":"src/upstream.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ece97def2407523bdeaa5c808bd3560e3b9f91fbf5a5098d96f8b583035d7f"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::codex_memory::fact_score (cognitive 24): flowd::codex_memory::fact_score has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 2 (4 pts), boolean chains 3, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_memory.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed88f0aa6626341f88ef9d38cc17f34bc4f58e57badc30e6b0a8ba2aa749858d"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::upgrade::run (cognitive 24): flowd::upgrade::run has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/upgrade.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc18fbfdaf582e7cf2320018420f1f32a411dcd51e466ea3304e54caa1dacf56"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::supervisor::ensure_supervisor_running (cognitive 24): flowd::supervisor::ensure_supervisor_running has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (23 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/supervisor.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0bb05d9d44a862b172c31abfc9cdf17f7a0ba60cd3fa62481194f11ec52c8d5"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::git_guard::run_git_repair (cognitive 24): flowd::git_guard::run_git_repair has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/git_guard.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"73411b99551de2c8a3a7842247c6639fd743265dd5708a440de1536e955a6f54"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::usage::extract_flags (cognitive 24): flowd::usage::extract_flags has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 2 (4 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":"src/usage.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef48d701a76379d6e5ed7afbbbebabb3655aa5e5fb0065afeb8d034018dca8d4"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::run_required_skill_gate (cognitive 24): flowd::commit::run_required_skill_gate has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 3 (5 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":3059}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0498b9c330ba0ad721f3dc0a8e75151f019f99b112b29e769aecb2860677e9d"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::deploy::update_flow_toml_cloudflare (cognitive 24): flowd::deploy::update_flow_toml_cloudflare has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 1 (2 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":"src/deploy.rs"},"region":{"startLine":2187}}}],"partialFingerprints":{"codehealthFindingId/v1":"65cd72cf4ee56719e65ea1ef7a7a0084af98908c839ceef30c9cf01a67bf132b"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::code::migrate_to_path (cognitive 24): flowd::code::migrate_to_path has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20 (24 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":"src/code.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"b150dc742267ed489a75b15d983370b93f846ddcd00dcfaf358f3cd1b0449474"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::task_match::run_with_tasks (cognitive 24): flowd::task_match::run_with_tasks has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/task_match.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3dea28e1d4dc66684bd7bbe43494f21e8bd8d88e05e7e7b39bb07657aec3745"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::home::load_link_mappings (cognitive 23): flowd::home::load_link_mappings has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (19 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/home.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aef1fbed9c9efecf6092d18f1165c5290f728a088721d2e64755ac83e39e1b3"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::deps::resolve_js_repo (cognitive 23): flowd::deps::resolve_js_repo has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (22 pts), loops 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deps.rs"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"380fc4a1fc60270472ecd62ea8fa7c1a0e2fa086ce07149e1db15fbb99c25508"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::gitignore_policy::run_scan (cognitive 23): flowd::gitignore_policy::run_scan has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 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":"src/gitignore_policy.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"4666192774a4505ca21dc5eedacab3147bc508ee1365e0d8f8b595a10d04f8a7"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::jj::run_workspace (cognitive 23): flowd::jj::run_workspace has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 4 (5 pts) (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jj.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8708ef02b0fcd0f6230e506873ce632725b7eeb6c3f20e1b7f37f0d5f093ad"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::sync::try_resolve_conflicts_with_codex (cognitive 23): flowd::sync::try_resolve_conflicts_with_codex has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (21 pts), loops 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7a43a52eb0b432aaf6c1826c5e757383ecdee2467b6620d043725432089862"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::sync::try_resolve_conflicted_files (cognitive 23): flowd::sync::try_resolve_conflicted_files has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (9 pts), match/switch 2 (7 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"906a877a6bb4d290e8d510a52153334a2bb732a090ccd5b6fe39f21ea2656993"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::sync::resolve_tracking_remote_branch_in (cognitive 23): flowd::sync::resolve_tracking_remote_branch_in has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (22 pts), boolean chains 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":4262}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c66fe303ebe111433b0f0af7f95773b3fb84f522103e67c2e30f4ae4ed27845"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::run_pr_open_edit (cognitive 23): flowd::commit::run_pr_open_edit has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":11813}}}],"partialFingerprints":{"codehealthFindingId/v1":"7562c0f4fb076feff0d9d7203dd98affbde609861194f802ee7276865f33e14d"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::deploy::check_health (cognitive 23): flowd::deploy::check_health has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (23 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":"src/deploy.rs"},"region":{"startLine":3119}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b3cf5d8320d9259f26f1a5adc0be663d83f687b545c5a2987ba771d0a4e628"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::tasks::selector_matches_patterns (cognitive 23): flowd::tasks::selector_matches_patterns has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a544d8398798ff9c26728ad095ff89a1a35da0240ebc53ad05b0f07ec2460e"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::codex_memory_command (cognitive 23): flowd::ai::codex_memory_command has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 1 (3 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":10703}}}],"partialFingerprints":{"codehealthFindingId/v1":"312dcfc8b931393fc8f0ec6b84fb30ad421b381223f4ca0fe63f201549b8fe66"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::processes::show_all_logs (cognitive 23): flowd::processes::show_all_logs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (18 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/processes.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1111f0fdbd2cb8d124c1bba486452e1a4ed2acd2a5110ed7aafbb2258c575c4"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ask::build_prompt (cognitive 23): flowd::ask::build_prompt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 4 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ask.rs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"34cb84fcd1f169a5bf8c098d9993e8948db8ef84216465d599857b5d97e07d8e"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::env::fetch_project_cloud_env_entries (cognitive 23): flowd::env::fetch_project_cloud_env_entries has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (4 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":1676}}}],"partialFingerprints":{"codehealthFindingId/v1":"368e74f8c724704c9583684f8827aab5740163ba41cea7bf517095467b9f757f"}},{"ruleId":"D2","level":"warning","message":{"text":"designer_memwatch.select_workspace_processes (cognitive 23): designer_memwatch.select_workspace_processes has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 4 (5 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/designer_memwatch.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22006897628215362a738634a84a1a720c6aa573c337fd5d661495dc0d1ebb2"}},{"ruleId":"D2","level":"warning","message":{"text":"EverrunsApi::read_sse_batch (cognitive 22): EverrunsApi::read_sse_batch has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_everruns.rs"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f10b72cff5e4fd744a4e12998792f9b7cb189f1babcb13035482e75828df87"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::deps::resolve_cargo_repo (cognitive 22): flowd::deps::resolve_cargo_repo has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (21 pts), loops 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deps.rs"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d98e57e11c0850ba5eda446b4ede6fb32d850e9d481d95948ffdbbb5a4ef8b"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::setup::run (cognitive 22): flowd::setup::run has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (16 pts), match/switch 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2589bc76b8f06ce9c27adb9bff391ad97152b1accbe565438ab378ec2e784e0"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::recipe::extract_first_shell_block (cognitive 22): flowd::recipe::extract_first_shell_block has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (20 pts), boolean chains 1, loops 1 (nesting depth added 13). 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":"src/recipe.rs"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1548ccc5c0d58a4a94488841d848612dce32a57c79b5642dd3ad94130442362"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::delegate_to_hub_with_check (cognitive 22): flowd::commit::delegate_to_hub_with_check has cognitive complexity 22 (threshold 15). Drivers by points: if/else 19 (22 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":15328}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf35744083c7ab199acf38bf21600d09c83d5f951d639c1543eb5c92d0a3156"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::updates::select_delta (cognitive 22): flowd::updates::select_delta has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (20 pts), match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/updates.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d2b57a1e575b991c0cbd64fba882abb588f2468b69364a0b0c6122972102a3"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::discover::discover_tasks_from_root_artifacts (cognitive 22): flowd::discover::discover_tasks_from_root_artifacts has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 3 (6 pts), match/switch 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/discover.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99a6dc094d1ca8970e466137cb24530436854c46c23b0c0555c820ec1310147"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::health::ensure_ai_server (cognitive 22): flowd::health::ensure_ai_server has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/health.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e76f81132f6ba433798dfec49433e11d8ac3579fb3632ca5ac2dd6a7fa3b8c"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::parse_codex_session_file (cognitive 22): flowd::ai::parse_codex_session_file has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (21 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":3173}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd8f5c1c9c2080439b9d5e2b5c21d1559ed07a0c380ba262cdae3a98ff45109"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::reconcile_codex_session_completions (cognitive 22): flowd::ai::reconcile_codex_session_completions has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":10516}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8bf8a9bdf98eabb5d9f78f52df776acb9c1b38241e2255e17a0c3eca4b4fa2f"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::codex_session_docs::render_summary_markdown (cognitive 22): flowd::codex_session_docs::render_summary_markdown has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (15 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_session_docs.rs"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"229d06ff944d7cb89a9d2ac49eabc2c1950e6b7cfc9bf4be91cd7ea023b7b888"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::code::discover_code_repos (cognitive 22): flowd::code::discover_code_repos has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (13 pts), match/switch 2 (5 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/code.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"b624cdb877ebad839d808d6685272b61daa6fbc71c0b35741679292ea68eac96"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::changes::normalize_env_keys (cognitive 22): flowd::changes::normalize_env_keys has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/changes.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b41f76d90dc064411ba423ac95298571dd762ad13bd85cc9d52b346009598f"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::codex_memory::select_render_fact_hits (cognitive 21): flowd::codex_memory::select_render_fact_hits has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_memory.rs"},"region":{"startLine":1757}}}],"partialFingerprints":{"codehealthFindingId/v1":"edbad9a77c470c471bd3296b69349f20750ab0b2524540054b2d609210e84ddd"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::home::run (cognitive 21): flowd::home::run has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, match/switch 4 (7 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/home.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"70dc5554df9143037ec6a6fe9c516fb8b7f86c754c6f62d6c120299ad314cc18"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::setup::apply_server_template (cognitive 21): flowd::setup::apply_server_template has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16 (21 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup.rs"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"314a957e1e6c9edfc13cd52a73ca579e58a752ca9d1f6f6c9d595ae69ac8fda1"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::setup::ensure_env_file (cognitive 21): flowd::setup::ensure_env_file has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup.rs"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c989910015d45e9ca00e4a85d6f34814ef92c5c2eb3c86954894051b6b50d2"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::setup::host_name_tokens (cognitive 21): flowd::setup::host_name_tokens has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (21 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":"src/setup.rs"},"region":{"startLine":2024}}}],"partialFingerprints":{"codehealthFindingId/v1":"6669fa83d3bb1dfd738c9222b37d208c51dace0e3c9357ac9aaa2c31f97372c7"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::proxy_command (cognitive 21): flowd::proxy_command has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 1 (3 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.rs"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"9637d6ddc3b437f24c74a1464f78122916be67b4882f85c594b148c63d4c42ee"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::jj::attention_items (cognitive 21): flowd::jj::attention_items has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 3, boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jj.rs"},"region":{"startLine":1450}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8fc6e33f091a1a2ce821457f2ad816d9a02d840dde0a06be9ff046fd779771"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::sync::push_with_autofix (cognitive 21): flowd::sync::push_with_autofix has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 3, 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":"src/sync.rs"},"region":{"startLine":5560}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f694484e7c409cb933554d8bf63ff79eaf8d495a443865964872a917510f9f"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::commit_review_fallback_specs (cognitive 21): flowd::commit::commit_review_fallback_specs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (21 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. This shape REPEATS in the file: one other method here (flowd::commit::commit_message_fallback_specs) 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":"src/commit.rs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"a514e9315781fde9fc6e9d639875bbda2b052d83ae25c053cf7ec24a8d0d5573"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::commit_message_fallback_specs (cognitive 21): flowd::commit::commit_message_fallback_specs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (21 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. This shape REPEATS in the file: one other method here (flowd::commit::commit_review_fallback_specs) 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":"src/commit.rs"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb122c42d3a0b92926532ef514477f98c00eec8d9bd4c1b9740bb88d0b0f1dc3"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::parse_rise_output (cognitive 21): flowd::commit::parse_rise_output has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (21 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":"src/commit.rs"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d3e1ef5fc7bbf09f53347585cd86e22dd9548cb859e1b5c7c29ea9a2fbb71d"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::tasks::resolve_ambiguous_task_match (cognitive 21): flowd::tasks::resolve_ambiguous_task_match has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 2, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21b6db6b1683e5e4ecf744bba57bf65d3907fb2286dae3a8fc37756e125c44f"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::deploy_setup::extract_wrangler_envs (cognitive 21): flowd::deploy_setup::extract_wrangler_envs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (18 pts), loops 1 (3 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":"src/deploy_setup.rs"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cab96ea2e127fe73ded916ae14bcf2032df18e520d9bca91d95d190b9b32b52"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::decode_cursor_project_path (cognitive 21): flowd::ai::decode_cursor_project_path has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":2804}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f6f2ed4489db6e041e9e3a5853f33c9149510f7d9b3543105208a487ae044d"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::read_codex_turn_patch_changes (cognitive 21): flowd::ai::read_codex_turn_patch_changes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 2, loops 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":10050}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff60f0e39fa9bfbf7f2732912b71f7b037d7b6ee67aba9c50accb20f7cddf817"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::read_session_history (cognitive 21): flowd::ai::read_session_history has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (21 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":"src/ai.rs"},"region":{"startLine":13660}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c9904081aaf088ee4314d14c37b8f26a87bb9e6f14834134bf36d4cf0404a1"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::web::list_ai_tree_entries (cognitive 21): flowd::web::list_ai_tree_entries has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 3 (8 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/web.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62bfb7af45eaed90e0a0ee5bf143f15cc8e34350d14206b246a692496e4a5f9"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::push::resolve_fork_owner (cognitive 21): flowd::push::resolve_fork_owner has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (21 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":"src/push.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec3841dff1f5cd3c0a747188a3d90610d46238a9801c5d198e71adc68f244f3"}},{"ruleId":"D2","level":"warning","message":{"text":"rl_signal_summary.main (cognitive 21): rl_signal_summary.main has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 4 (6 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/rl_signal_summary.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbff2d89dd3ec766d7f50b7bfe2d68890fad93193e8e71c9cf904ed7b69989d7"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::codex_memory::extract_symbol_snippets (cognitive 20): flowd::codex_memory::extract_symbol_snippets has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_memory.rs"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"2694343dd8ebab484bf817eddb16bae2bdcd5b06c0efe51145275e1f203c2253"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::start::update_gitignore (cognitive 20): flowd::start::update_gitignore has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/start.rs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e2ac00793b9b9118afc90b6ae85604d4df519e7c25decd00931cf8442165db"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::jj::build_sync_plan (cognitive 20): flowd::jj::build_sync_plan has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 4 (6 pts) (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jj.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5a6dfcfae2f941d067f2fc428a0f995be33d54f36501b037165e6856889173"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::sync::push_with_autofix_force (cognitive 20): flowd::sync::push_with_autofix_force has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":5638}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65852bfb364df841f6e74fd8f9693aec9947cf477ad03b45548e03ece803f9f"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::generate_commit_message (cognitive 20): flowd::commit::generate_commit_message has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":12885}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c80d37a57bd7bf88df9f979b807b19d8137f7ce53826fa1733da65680e9fdd6"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::codex_runtime::build_skill_catalog (cognitive 20): flowd::codex_runtime::build_skill_catalog has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 4 (5 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_runtime.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc0657c6aeae8838141c764a278744a0f7000593599a3f8bc088089237579ff"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::new_session_for_target (cognitive 20): flowd::ai::new_session_for_target has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 2, 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":"src/ai.rs"},"region":{"startLine":5541}}}],"partialFingerprints":{"codehealthFindingId/v1":"248f763a40c0a6d9cd3a5e268f31505e41a40fbd93e57aee1e5025db891c7f83"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::url_inspect::markdown_metadata (cognitive 20): flowd::url_inspect::markdown_metadata has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/url_inspect.rs"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cfb0f92b117fedbe2b108fb441f437d3902ed1c652cdf7aada4b901b1821e30"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::sync_plan::build_codex_prompt (cognitive 20): flowd::sync_plan::build_codex_prompt has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (12 pts), loops 5 (8 pts) (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":"src/sync_plan.rs"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f35aa76efbe270f16e6d8670d2eb46935385102b7412ddc065851048d4d55c2"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::codex_skill_eval::visit_lines_reverse (cognitive 19): flowd::codex_skill_eval::visit_lines_reverse has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_skill_eval.rs"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4208091346a1f7939b0ad1d3d2938d0c8dfbec0ccde0e38e983cfbdad2115e"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::bin::ai_taskd_client::run (cognitive 19): flowd::bin::ai_taskd_client::run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (11 pts), match/switch 2 (5 pts), boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/ai_taskd_client.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d33dd859c25f263c5a70b5a1cfc2bd8a1d61091a1fb3333e6a5860f694f886"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::jd::start_background_maintenance_loop (cognitive 19): flowd::jd::start_background_maintenance_loop has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (18 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":"src/jd.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae80c84d2cc34b5a9b9c14a31f83732cd53577cc994e08b5b2da2215ba422d9"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::setup::project_hints (cognitive 19): flowd::setup::project_hints has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (6 pts), match/switch 1 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup.rs"},"region":{"startLine":2439}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcda7bdcd1c3b2b4eefbcfb241ec778b774d1660cec8a20f382bc49c591f0276"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::jj::workspace_doctor_lines (cognitive 19): flowd::jj::workspace_doctor_lines has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (13 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jj.rs"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb3e54c98de0655e5e51a6c96fd8c5d5426f2ccc5009f7899cbbc51e5ae27d7"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::sync::collect_unique_sync_commit_refs (cognitive 19): flowd::sync::collect_unique_sync_commit_refs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":2839}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92acfa0106ecf45ef94c1505363d041f70aa3abc6ee90b775f326b4f31a08de"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::bin::flow-workspace-bootstrap::collect_files_for_warm (cognitive 19): flowd::bin::flow-workspace-bootstrap::collect_files_for_warm has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 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":"src/bin/flow-workspace-bootstrap.rs"},"region":{"startLine":1305}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46dde76984dbdaf4967cc3c21fc04d79a8d5ddb797dfbd68fbf9be452936e37"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::send_rise_request_text (cognitive 19): flowd::commit::send_rise_request_text has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (19 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":"src/commit.rs"},"region":{"startLine":1638}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1c407adb817e8a6b352b40f7d0f4678530c05cc8a9b894c68f1336f059490d"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::find_ai_scratch_tests (cognitive 19): flowd::commit::find_ai_scratch_tests has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":3490}}}],"partialFingerprints":{"codehealthFindingId/v1":"b530292aec6ef48c9ca02863a626f355ac85729d139ee930d2fd5c10807dcf71"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::find_related_tests (cognitive 19): flowd::commit::find_related_tests has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":3586}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08d57df47e76ef661939809b5f713607736d56dc52ed75c01bf6774c2e5645b"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::unwanted_staged_paths (cognitive 19): flowd::commit::unwanted_staged_paths has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":6700}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eeb300782bdf7ae8deb71e45737f5b584954d79d9a58380ea75abf95c74a5bd"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::run_pr (cognitive 19): flowd::commit::run_pr has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 4, match/switch 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":"src/commit.rs"},"region":{"startLine":9534}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f38ef213a3d3b8d0b6b119bcc888b6957ae4667fe9a40516d89ac5cd1d3d95"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::try_capture_unhash_bundle (cognitive 19): flowd::commit::try_capture_unhash_bundle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (15 pts), match/switch 3, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":15030}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d5f024077496288309160ab0e899a1c4528c9a7771905ad48f6146847aa4c6"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::hive::match_agents (cognitive 19): flowd::hive::match_agents has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hive.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ced2e25ed987a9caa92ad9915e22c89945531c588809f201d9d9e80f7d80b8"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai_server::resolve_ai_config (cognitive 19): flowd::ai_server::resolve_ai_config has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_server.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"873ffb672577a12241b23618da92de495bb00a302ac22e02e580d603184d9638"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::undo::list_actions (cognitive 19): flowd::undo::list_actions has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/undo.rs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9f07e4e11191c5285604ec9015acdcb37f1c54844a4f8ff4f07e7110962a5f"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::fish_install::run (cognitive 19): flowd::fish_install::run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 3, 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":"src/fish_install.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"9057aca7ad3853bea1d893b86a43fbc84064fd56a64fbfecc6526c942a18efd8"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::pr_preview::collect_preview_issues (cognitive 19): flowd::pr_preview::collect_preview_issues has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pr_preview.rs"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"788d5a440a6181b4a5a119ef4909389d765cf4e1ec9835468e32dc0f4ed112d6"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::code::new_from_template (cognitive 19): flowd::code::new_from_template has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 3 (4 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/code.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a2d28abdad9817c76e52048b72a04b8d00d57aeef1b7e9692f9c947d704363"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::code::migrate_project (cognitive 19): flowd::code::migrate_project has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16 (19 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/code.rs"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5deb5cac2ba82bb416be48de45412484f105fa06d61844eabf55045a063794c"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::trace::latest_event (cognitive 19): flowd::trace::latest_event has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/trace.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6bf392b5ef0e5717e7e31ca1f4addb949a1ddaca716178ff3f623df3cd4f67"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::daemon::load_merged_config_with_path (cognitive 19): flowd::daemon::load_merged_config_with_path has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (7 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":"src/daemon.rs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b8aa658818748717a37f66013ff31f31fb5a5bb01e8ffbe39cc569343860b3"}},{"ruleId":"D2","level":"warning","message":{"text":"flow_commit_scan::generic_secret_assignment_is_false_positive (cognitive 19): flow_commit_scan::generic_secret_assignment_is_false_positive 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":"crates/flow_commit_scan/src/lib.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c2d7b625fca113166ec07b3d922ce8f38ec89eab6f15eccbe791783541e89e"}},{"ruleId":"D2","level":"warning","message":{"text":"run-health-checks.runGiteditShareCheck (cognitive 19): run-health-checks.runGiteditShareCheck has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 6 (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":"scripts/run-health-checks.mjs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8b51bd0be831080a38a1bb72408bd257070a3d1006dad17f616287a1295268"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::fixup::fix_toml_content (cognitive 18): flowd::fixup::fix_toml_content has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (17 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":"src/fixup.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fef603655c7d1e5bd8b73e994bc7f7a2b1403b51aa95f04b9c7b53f592f918b"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::sync::try_resolve_rebase_conflicts (cognitive 18): flowd::sync::try_resolve_rebase_conflicts has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":4918}}}],"partialFingerprints":{"codehealthFindingId/v1":"854d78ab33e02822616475f99ccace2695e8a319a56a8470e2cac170111fff0a"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::registry::calver_version (cognitive 18): flowd::registry::calver_version has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (16 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":"src/registry.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"90500048b10ef27caa3e9728fb6c035ee9d315c3b31467e3d07e46ff1efd42c1"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::run_pr_open (cognitive 18): flowd::commit::run_pr_open has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (17 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":"src/commit.rs"},"region":{"startLine":9615}}}],"partialFingerprints":{"codehealthFindingId/v1":"055376ea1242f52e298cb6d57e5104a6372b344b56fd2fd01ad03eac990f953f"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::branches::rank_branches (cognitive 18): flowd::branches::rank_branches has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/branches.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"6739e5006266527eca621351d8e40d6e0c2f96c0fee701a269fea4227487c831"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::tasks::inject_global_env (cognitive 18): flowd::tasks::inject_global_env has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (5 pts), match/switch 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (flowd::tasks::inject_global_env_pty) 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":"src/tasks.rs"},"region":{"startLine":2406}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a0c5518000126c023009e36b6bf7629aec702041414d3116665550d6cc9c58"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::tasks::inject_global_env_pty (cognitive 18): flowd::tasks::inject_global_env_pty has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (5 pts), match/switch 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (flowd::tasks::inject_global_env) 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":"src/tasks.rs"},"region":{"startLine":2479}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d3c6c3b042f3999f93c3d70cd4f21907c57ab79e4fb3245828636c6dc8af6a"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::traces::fetch_agent_events (cognitive 18): flowd::traces::fetch_agent_events has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 5 (10 pts), if/else 4 (7 pts), loops 1 (nesting depth added 8). 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":"src/traces.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"17139f07345103114b4d2947042d9d04e6462c501530e8796aa7c449269f34b3"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::build_codex_eval_opportunities (cognitive 18): flowd::ai::build_codex_eval_opportunities has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, 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":"src/ai.rs"},"region":{"startLine":9156}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c0aad7888eb3cbcf80468e0992c09504aa8f0ddd2381a0a0d892f289a4847c"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::resolve_codex_references (cognitive 18): flowd::ai::resolve_codex_references has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":12464}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bceeaf86baba73d4744c72f38cd3ea19c8a42b79ee883cfa2da9607a0a8a9b6"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::codex_session_docs::gather_session_signals (cognitive 18): flowd::codex_session_docs::gather_session_signals has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_session_docs.rs"},"region":{"startLine":1646}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2b6f85ebb9ae01216a806a7f6bd936f82a2e61c0b5a6b292e36a01c65d35b2"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::activity_log::recent_events_at (cognitive 18): flowd::activity_log::recent_events_at has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/activity_log.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc643689b659a92d194b5780dad1eea2a0f57e8abb2e677ede67fd8e80464b01"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::code::copy_zvec_agent_qa_paths (cognitive 18): flowd::code::copy_zvec_agent_qa_paths has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/code.rs"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"e708aa9172bdde491441c4938b7f7cc1447faab5ee3c006d1ec99302bcc68b2f"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::macos::audit_services (cognitive 18): flowd::macos::audit_services has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/macos.rs"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab4b13b8ac841c16137f014415895323a89cc4b6e8ea410d55cd4590e1e030c"}},{"ruleId":"D2","level":"warning","message":{"text":"build_rl_runtime_dataset._normalize_flow (cognitive 18): build_rl_runtime_dataset._normalize_flow has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 3 (7 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/build_rl_runtime_dataset.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a99bbf8596c6d3cf1428c8ddcb30a7446a978b9c4ee9b63bc56aa44125c080"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai_tasks::discover_tasks_from_root_artifacts (cognitive 17): flowd::ai_tasks::discover_tasks_from_root_artifacts has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 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":"src/ai_tasks.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b695a52995e511cdd007fec89364e2587b7f66f524e1e7b5b2147142fb00321"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::setup::host_config_mismatch_reason (cognitive 17): flowd::setup::host_config_mismatch_reason has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup.rs"},"region":{"startLine":1852}}}],"partialFingerprints":{"codehealthFindingId/v1":"e80e597a01c4bbcadce5f0bfdfd298f42860d3ec17807369a15c33f0bc2c0d68"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::sync::resolve_tracking_remote_and_fetch (cognitive 17): flowd::sync::resolve_tracking_remote_and_fetch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":2463}}}],"partialFingerprints":{"codehealthFindingId/v1":"46444eadfc0f5b3a7970a33141eb8fbe8f84a89bee89067a7688e556ab49b824"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::server::sync_servers (cognitive 17): flowd::server::sync_servers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 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":"src/server.rs"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b0f22ab987918644c21bf36f924f9f4a78216e6bd24537a68fec87395ade39"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::bin::flow-workspace-bootstrap::run_warm (cognitive 17): flowd::bin::flow-workspace-bootstrap::run_warm has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 4 (5 pts), match/switch 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/flow-workspace-bootstrap.rs"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe0d6b2530bdbf390ccc2f8261abf6f14ea30462b829785c8f3be1144674f89"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::write_pr_feedback_snapshot (cognitive 17): flowd::commit::write_pr_feedback_snapshot has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":10430}}}],"partialFingerprints":{"codehealthFindingId/v1":"322a612ff4ce01293bfb4e1b8f2921d8e9cb2921e23d4c3dbdd18a857ace7426"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::generate_commit_message_opencode_run (cognitive 17): flowd::commit::generate_commit_message_opencode_run has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":12644}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ff77c1aa2de523ce4052cdea263d466f54d056ac958567c3949bcacd62e506"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai_server::quick_prompt (cognitive 17): flowd::ai_server::quick_prompt has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_server.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"889757ebf06ce89dd2e63f12f56efde66219d0270964fe53588d2d7e0395e04f"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::deploy::run_with_project_context (cognitive 17): flowd::deploy::run_with_project_context has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b6f27d028f1d7ca5a3f68a9abf3d496a0993b895fe74db4090e2665a45af8f0"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::deploy::ensure_cloudflare_api_token (cognitive 17): flowd::deploy::ensure_cloudflare_api_token has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":2716}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2c70e84d93d5edfb713def33f0ab9a1ea97092d7111bd484b3127fd1214f8a"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::tasks::resolve_task_dependencies (cognitive 17): flowd::tasks::resolve_task_dependencies has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 1 (3 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":"src/tasks.rs"},"region":{"startLine":3175}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3005b9c899fb892c0003ab3e7d20f9640279018636bc5d5740d0fbc841291b"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::deploy_setup::discover_wrangler_configs (cognitive 17): flowd::deploy_setup::discover_wrangler_configs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (nesting depth added 10). 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":"src/deploy_setup.rs"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"3538f3253a8551ab8326246ae08b70438a0422e30d8ec4fd1d9ca39c094aef54"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::failure::render_ai_prompt (cognitive 17): flowd::failure::render_ai_prompt has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 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":"src/failure.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"9012c8de525c9ed08a5744162ec5d7fc7e2f51939514cf2ee147219f32c530e4"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::display_session_ids (cognitive 17): flowd::ai::display_session_ids has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 4 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":3736}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d2817fc07c24bdb31f01b71d87606ddcb1a7657bc9068f9ccee17bfc68871b"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::codex_enable_global (cognitive 17): flowd::ai::codex_enable_global has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/ai.rs"},"region":{"startLine":9629}}}],"partialFingerprints":{"codehealthFindingId/v1":"124926082b8a2dfaaa7510d5d3abf4b93a580e0f9d90d4e92265ff401594fcb7"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::launch_resolved_resume_session (cognitive 17): flowd::ai::launch_resolved_resume_session has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/ai.rs"},"region":{"startLine":14889}}}],"partialFingerprints":{"codehealthFindingId/v1":"42273091ffbfcf5f775ac66b8b6b477e66a34378a5cab9b1ff8b8d64318fb421"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::code::new_project (cognitive 17): flowd::code::new_project has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (17 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/code.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc09e7cb890717000cc27535c16e7546ce68c7e25799bcb25ed51b12667076b7"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::code::update_zvec_agent_qa_paths (cognitive 17): flowd::code::update_zvec_agent_qa_paths 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":"src/code.rs"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"417552e89f06dcf421f31509093e5b18490841862ae893abc24e47ffafa38b2b"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::repo_capsule::run_alias (cognitive 17): flowd::repo_capsule::run_alias has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 2 (6 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":"src/repo_capsule.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d98635438bb0e0675de6c89253a959450585b78c52917393590f0497192c94f"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::features::parse_yaml_frontmatter (cognitive 17): flowd::features::parse_yaml_frontmatter has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/features.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f23801c58b9c741bc23fbb2b8b028e0614f59eaa43784c588f96b1fc9f542bf"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::daemon::show_status_with_path (cognitive 17): flowd::daemon::show_status_with_path has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"2007571bb2899708f1903f9447e048e4efb5b71f7e9ef29dd8a327d89d9c76db"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::info::parse_git_remotes (cognitive 17): flowd::info::parse_git_remotes 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":"src/info.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4626af6611aaf0a7c24b6511241f5ee93b2ed20ac72f8180a516a944729c0f2f"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::env::setup (cognitive 17): flowd::env::setup has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":3008}}}],"partialFingerprints":{"codehealthFindingId/v1":"1542a5dbeab840e99eac8593cb1d475980e9a2896683134850ade0907fdfe03a"}},{"ruleId":"D2","level":"warning","message":{"text":"bench-moonbit-rust-ffi.main (cognitive 17): bench-moonbit-rust-ffi.main has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), loops 3, boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/bench-moonbit-rust-ffi.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0445f296f1a6031a1bce87cb0c55f56b8e2bb8498d5226e4b3aa76072b5d11d"}},{"ruleId":"D2","level":"warning","message":{"text":"build_rl_runtime_dataset._build_report (cognitive 17): build_rl_runtime_dataset._build_report has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 5, ternaries 3 (4 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/build_rl_runtime_dataset.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe43abb39ab81fbc400d2a2e00b32171847c5b00f65d9b58ac97145098bbb65"}},{"ruleId":"D2","level":"warning","message":{"text":"OptionsConfig::merge (cognitive 16): OptionsConfig::merge has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config.rs"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"2013b2acf1c44ca2aff0714bb70ceef97c2e6db780609d8cb6052de18ed84a85"}},{"ruleId":"D2","level":"warning","message":{"text":"ParallelRunner::strip_ansi (cognitive 16): ParallelRunner::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":"src/parallel.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd1a8fe178c4826af6739388f137d5c86e2c58926b36dc6fb188f6d8b7bfedcc"}},{"ruleId":"D2","level":"warning","message":{"text":"ParallelRunner::run (cognitive 16): ParallelRunner::run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 4 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/parallel.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbff9de7a6faa5eeb0d9a2fd8feacc532978f94c9bea1cffa07f3cfb357aba72"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::home::ensure_link_targets (cognitive 16): flowd::home::ensure_link_targets has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/home.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a5395ff9e62953bdf65e9b01156d9e44b2e856a004b6a601edb2bcc3ebb5db"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::agents::run_agents_rules (cognitive 16): flowd::agents::run_agents_rules has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (16 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agents.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"f438fc33a7ab037d929d271808b4c2ce98874ea242c382e055083648875d8210"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::deps::load_cargo_lock (cognitive 16): flowd::deps::load_cargo_lock has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (4 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":"src/deps.rs"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76b8330576454754156d71a56fb8681d71810a0c27b00e55189e5ac4dd5a357"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::setup::ensure_pnpm_only_built_deps (cognitive 16): flowd::setup::ensure_pnpm_only_built_deps has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), loops 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup.rs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"af70455c23554494ac208aa71ae88b3fd25b6fb66b27ea63803972e5a48f576d"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::setup::has_catalog_protocol (cognitive 16): flowd::setup::has_catalog_protocol has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (4 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":"src/setup.rs"},"region":{"startLine":2400}}}],"partialFingerprints":{"codehealthFindingId/v1":"d832b97485327c316848b0c380dbf68498d2027cd09f2fb27c3d00b36c93fc02"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::explain_commits::explain_last_n_commits (cognitive 16): flowd::explain_commits::explain_last_n_commits has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/explain_commits.rs"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9214d452605c067279d9919ab022adf080d1f2d1fc4f39186dacd8b56fe170"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::supervisor::bootstrap_daemons (cognitive 16): flowd::supervisor::bootstrap_daemons has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (7 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":"src/supervisor.rs"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b969922a1ca1bf0858b48470ac2f2ab727de4b8225e7c1657629a49ca755d28"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::jj::compact_status_lines (cognitive 16): flowd::jj::compact_status_lines has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jj.rs"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d006b4ca66bfc8ffcac3fab7be8aec52a6933931618811af6f9d9c0b51e3d74"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::jj::stack_summaries (cognitive 16): flowd::jj::stack_summaries has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 3, loops 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jj.rs"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4a7f2dec0de0f8ac1aadc8c58618013dcb26195311010db3535a60f3b72298"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::sync::run_checkout (cognitive 16): flowd::sync::run_checkout has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":2238}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11fe72ca65becbd5c8b044f75b035dbe0b7310c4f699f0ceee153b3a0a10d79"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::sync::parse_intent_to_add_paths (cognitive 16): flowd::sync::parse_intent_to_add_paths has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 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":"src/sync.rs"},"region":{"startLine":5067}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b66f7d2d058883387363683b80ef1f2700416568d6109a0a0995cab5804683"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::watchers::run_poltergeist_watcher (cognitive 16): flowd::watchers::run_poltergeist_watcher has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/watchers.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d1365797646ac2d6e34f1e3a25ceb6f05a6f4113a6b1d5eb6cbce2c0478538"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::recipe::load_recipes (cognitive 16): flowd::recipe::load_recipes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), 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":"src/recipe.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4536226835906d0a4b143a3d7040f183e968b275aa93399af46853caa96468"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::doctor::prompt_yes (cognitive 16): flowd::doctor::prompt_yes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 1 (4 pts), boolean chains 1 (nesting depth added 9). 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":"src/doctor.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b88e9705dc0d7a354b15e42b24d3e611e89ab4c43c2796e3e362a92cbf84d5d"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::commit_with_check_async_enabled (cognitive 16): flowd::commit::commit_with_check_async_enabled has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (16 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":"src/commit.rs"},"region":{"startLine":2576}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ff0ccc5bc8fa0a45fce5b06e5970ce84f262d038ef6c9736499b3e3f9f154d"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::open_review_in_rise (cognitive 16): flowd::commit::open_review_in_rise has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 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":"src/commit.rs"},"region":{"startLine":7274}}}],"partialFingerprints":{"codehealthFindingId/v1":"caaf4abdf41ed516ecebed2f458ef6c826bd3cac7b7e816637c443f41c011909"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::gh_review_thread_ids_by_comment_url (cognitive 16): flowd::commit::gh_review_thread_ids_by_comment_url has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":9934}}}],"partialFingerprints":{"codehealthFindingId/v1":"beec68bc9cd6c6838f3ddafd4fe4a1a8c5e0e09c70e8943f23d4ca8dcf52dd45"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::load_pr_feedback_data (cognitive 16): flowd::commit::load_pr_feedback_data has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 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":"src/commit.rs"},"region":{"startLine":11101}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9238d86d06b1e8534de4fd23c2e0952a3d34de8869708add608dbafc7dc28e3"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::gitedit_token (cognitive 16): flowd::commit::gitedit_token has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (nesting depth added 9). 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":"src/commit.rs"},"region":{"startLine":13825}}}],"partialFingerprints":{"codehealthFindingId/v1":"01949eced9c8a07d4cef00169883618d97510ab8befaa60227b3e0e986a9754b"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::fix_trailing_whitespace (cognitive 16): flowd::commit::fix_trailing_whitespace has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":15657}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ddc770fda4ef4dc8f3eb3ee77390c0686a422c321abdf98b589084a6f216c88"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::commit::get_review_instructions (cognitive 16): flowd::commit::get_review_instructions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (nesting depth added 9). 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":"src/commit.rs"},"region":{"startLine":15853}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c292eb4c55073b4648f839660f558d4cf9a5081cc6005f2db2f40c7b1d30e33"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::publish::resolve_gitedit_owner (cognitive 16): flowd::publish::resolve_gitedit_owner has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (16 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/publish.rs"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68a747729403917548dc7ead6025fc3beeb037a3ab5f66e7bd53d67a6059e08"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::codex_runtime::prepare_runtime_activation (cognitive 16): flowd::codex_runtime::prepare_runtime_activation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_runtime.rs"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"51cc2d21f0329d67a182e2f90430f6146696067c8847533f4f69f5826cda439e"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::release_signing::sync (cognitive 16): flowd::release_signing::sync has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/release_signing.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"941d729fef8a3e64f3cea7fe06df0a5e7c71bb3c439b6137953c9cf27cf697ed"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::get_context_since_checkpoint_for_path (cognitive 16): flowd::ai::get_context_since_checkpoint_for_path has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"1674ea0d47f30fc383d15e23966e0fcb3d6cbc3f44638e1c617b122e5ef67ea0"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::codex_transcript_match_score (cognitive 16): flowd::ai::codex_transcript_match_score has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, loops 1, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":7344}}}],"partialFingerprints":{"codehealthFindingId/v1":"db617bb7f5aabb44ecb091d686830d5250a2bf3e2af9f741d1e92c7900b8fdfe"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai::assert_codex_doctor (cognitive 16): flowd::ai::assert_codex_doctor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":8853}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c208fbd047ab9fbf52dd65f5cd5606ade559683fd9f11cab555614edb29f9ec"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::codex_session_docs::slugify (cognitive 16): flowd::codex_session_docs::slugify has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_session_docs.rs"},"region":{"startLine":1581}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ce4beac10fbc4afd9f62a1fc8a3a3ef2389a7b49b866dd657891be6a27e043"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai_taskd::serve (cognitive 16): flowd::ai_taskd::serve has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), match/switch 3 (6 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":"src/ai_taskd.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"7952f78b39af039d1f0b78700b4fdabed167e6867c6f93caebcc3970a78595a0"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::ai_taskd::handle_request (cognitive 16): flowd::ai_taskd::handle_request has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (3 pts), boolean chains 2 (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":"src/ai_taskd.rs"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"524b4c6eae3cc8e71adb26cea0bb658a1bd8ec802114d3fc25d534299925afa1"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::repo_capsule::read_text_hint (cognitive 16): flowd::repo_capsule::read_text_hint has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/repo_capsule.rs"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0db73b7f1c3d02b2054e4b910bd2a08171e1cff040cbb0dbbdbad65487b7501"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::url_inspect::print_crawl_result (cognitive 16): flowd::url_inspect::print_crawl_result has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/url_inspect.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f2106f8c696a2737f14a9cb06e57293143d71119144f7f45d2bb2ed5946fdf"}},{"ruleId":"D2","level":"warning","message":{"text":"flowd::env::guide (cognitive 16): flowd::env::guide has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":2579}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6bf7a90a49eaad097c0284f9daf0b37dabd758b227808107b24b32441aa67bb"}},{"ruleId":"D2","level":"warning","message":{"text":"ci_blacksmith.rewrite_workflow (cognitive 16): ci_blacksmith.rewrite_workflow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/ci_blacksmith.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7936677d4084c07c4fb9510b0103a27464ae5c9838b6b2bed02490edbaa055"}},{"ruleId":"D2","level":"warning","message":{"text":"designer_memwatch.main (cognitive 16): designer_memwatch.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/designer_memwatch.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1ba06927ea149087c086e3a06fb976fa5d19105befc1a3fb388abc70e36a61"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ai.rs: FileTooLong \u2014 11731 significant 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 479 free functions. The bar is 500 significant lines; this is 11231 over it, 23.46\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45f0f8a385ecbd8cd2877eee995ae47e6d28a133e74a74e45c256bdb289712e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/commit.rs: FileTooLong \u2014 11307 significant 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 391 free functions. The bar is 500 significant lines; this is 10807 over it, 22.61\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":"src/commit.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b738e62d55ccbfcc06a85983e57501d503a15ceda679bf8635b56c49f11929"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/sync.rs: FileTooLong \u2014 4197 significant 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 166 free functions. The bar is 500 significant lines; this is 3697 over it, 8.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b91aeaa03417113b1b1cf7fef9efad89570c6030e90f630da7a7ffe723c1154"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/cli.rs: FileTooLong \u2014 3310 significant 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 2810 over it, 6.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":"src/cli.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f109f4ba98439ac843f4ce5c70fd5c8c5a6f795cac2fdf369f601e1a346deb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/env.rs: FileTooLong \u2014 2874 significant 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 125 free functions. The bar is 500 significant lines; this is 2374 over it, 5.75\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4efc6c64939fed0de641c42a80ad532a5cf603ef622dd14e3e4aaf5268cdc84"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::sync::run_sync: FunctionTooLong \u2014 flowd::sync::run_sync runs 497 significant 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 397 over it, 4.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":1271}}}],"partialFingerprints":{"codehealthFindingId/v1":"8294e109583147dff9b64f4f6c5e19ce607cf7d7cb1c7d9dad763f6782488bac"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::sync::run_jj_sync: FunctionTooLong \u2014 flowd::sync::run_jj_sync runs 484 significant 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 384 over it, 4.84\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":3237}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e8775624f44aa42bb8499741626a69c463c1a5c19dac98d14dbf7d82956281"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/tasks.rs: FileTooLong \u2014 2255 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 89 free functions. The bar is 500 significant lines; this is 1755 over it, 4.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1261a5d79a6dba7fd49d504a294dbe08b6d0ed01cb4ab0e0167276d621a93bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::main: FunctionTooLong \u2014 flowd::main runs 449 significant 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 349 over it, 4.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":"src/main.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19da47c870800e38095ebafae8ff3eb4da7afa531fc8f7aa067a1de8183fed6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/deploy.rs: FileTooLong \u2014 2216 significant 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 102 free functions. The bar is 500 significant lines; this is 1716 over it, 4.43\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":"src/deploy.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5cef1120b24703775b1e46438b8be35820fe3c6c1fffc2366d5d91471fa2a05"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/setup.rs: FileTooLong \u2014 2082 significant 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 100 free functions. The bar is 500 significant lines; this is 1582 over it, 4.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12bd25082664cd1ee1207f720533785567602f0b34bf8118690130bad3b6bae9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/jj.rs: FileTooLong \u2014 2020 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 106 free functions. The bar is 500 significant lines; this is 1520 over it, 4.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":"src/jj.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f29bca2ab7ed3cfef9438e838bd1120f7a9eea7e0c8694ebd771fd0fa169970"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/config.rs: FileTooLong \u2014 1926 significant 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 58 free functions. The bar is 500 significant lines; this is 1426 over it, 3.85\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":"src/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4945c3bcfb06e8e0bf42248c5194e236ebe17412d594290e36ced9b966a475"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/codex_session_docs.rs: FileTooLong \u2014 1505 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 68 free functions. The bar is 500 significant lines; this is 1005 over it, 3.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_session_docs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28e4ac69ae0b1f950040eee5f6a387b376b14908fcbe1310cfb967ad35deeb5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/pr_preview.rs: FileTooLong \u2014 1491 significant 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 52 free functions. The bar is 500 significant lines; this is 991 over it, 2.98\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pr_preview.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a824cfc5a96ed1ccb1bdbd1a4bbc4b99bb85fc6c5e3c576c657ded165fd666"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/codex_memory.rs: FileTooLong \u2014 1455 significant 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 51 free functions. The bar is 500 significant lines; this is 955 over it, 2.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":"src/codex_memory.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3cd38db52a6ed929bf9e7aea9df4b5e89e4d0efdb3bea0a4f67df48d446e12b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::ai::run: FunctionTooLong \u2014 flowd::ai::run runs 285 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 185 over it, 2.85\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"44228677c273c544745396a496028a4208b3b0582d90762923bca7bae723b895"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/repos.rs: FileTooLong \u2014 1416 significant 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 60 free functions. The bar is 500 significant lines; this is 916 over it, 2.83\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":"src/repos.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb6f75b46d3da305d0b5903ba666518bbd12e3af4bb64cbd09a196f8ce435b9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/sync_plan.rs: FileTooLong \u2014 1337 significant 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 59 free functions. The bar is 500 significant lines; this is 837 over it, 2.67\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync_plan.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"359ca58f835b20068e4c68aa0e3ad4435e287667a294ca06065bab97d89f3163"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/code.rs: FileTooLong \u2014 1178 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 54 free functions. The bar is 500 significant lines; this is 678 over it, 2.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/code.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6cd59f649f9f92e995ad06e365ebc2824272e7ad90e1a20f7a9863fd9ba0e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bin/flow-workspace-bootstrap.rs: FileTooLong \u2014 1152 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 56 free functions. The bar is 500 significant lines; this is 652 over it, 2.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":"src/bin/flow-workspace-bootstrap.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6afd1c28ac50c2b27f1467299e22db53c4cfa63c98da492e21d81610dc4fd14f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/updates.rs: FileTooLong \u2014 1151 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 44 free functions. The bar is 500 significant lines; this is 651 over it, 2.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":"src/updates.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4536a9454f760eae1822ec1243b16708bf09cafcf0757f4923f80542576ea3ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/deps.rs: FileTooLong \u2014 1030 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 56 free functions. The bar is 500 significant lines; this is 530 over it, 2.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deps.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e973735432456d42be43819b24361f4c30095f8bdd9159fbed4c3246156a97"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/workflow.rs: FileTooLong \u2014 1026 significant 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 43 free functions. The bar is 500 significant lines; this is 526 over it, 2.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/workflow.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5078f004781be08d4456c002ef24d7809398e5c02c9ba7e67a014f69529efa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/url_inspect.rs: FileTooLong \u2014 1025 significant 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 45 free functions. The bar is 500 significant lines; this is 525 over it, 2.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/url_inspect.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd0a46140d1422bf5dd38e425cc616d2da5a6a6239ceda50e0164507b2c751c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::ai::run_provider: FunctionTooLong \u2014 flowd::ai::run_provider runs 203 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 103 over it, 2.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5cc1523a5a838207cb6918389cfe3d170be33e9f9facf9a81d34ff559cd57f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::pr_preview::collect_preview_issues: FunctionTooLong \u2014 flowd::pr_preview::collect_preview_issues runs 198 significant 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 98 over it, 1.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pr_preview.rs"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea11f0fcd75ff1d2d66f1f0e0af1cd30556687bbb3a5f4065d2d6694ecf5ce5a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::repos::bootstrap_home_branch: FunctionTooLong \u2014 flowd::repos::bootstrap_home_branch runs 197 significant 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 97 over it, 1.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/repos.rs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"c660c28c8a5129d825c3f8d2a8350e92bc8286ffc21cb6202562cd0cbc6d3bc8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::tasks::run_command_with_pty: FunctionTooLong \u2014 flowd::tasks::run_command_with_pty runs 195 significant 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 95 over it, 1.95\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":2552}}}],"partialFingerprints":{"codehealthFindingId/v1":"071705db2a1e821ab05e35c65ef41d7ef3793fa68bf1c9a9ff01a982bb7d034c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/skills.rs: FileTooLong \u2014 968 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 54 free functions. The bar is 500 significant lines; this is 468 over it, 1.94\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":"src/skills.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6810eacca15c8d4c9601919f5facfde0982af499d9aa40fb9ee2305638dd86"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ai_everruns.rs: FileTooLong \u2014 962 significant 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 462 over it, 1.92\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":"src/ai_everruns.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5d6a4cc125c7ded1bfa20fd3775bbee2b0fbd3684e85e625e4e7c1c69714c3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::ai::build_codex_open_plan: FunctionTooLong \u2014 flowd::ai::build_codex_open_plan runs 192 significant 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 92 over it, 1.92\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":11374}}}],"partialFingerprints":{"codehealthFindingId/v1":"059286447e6b003f0b86a14233c1de84daadf7a59e8fceb72cff9cd25473cdd0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::env::bootstrap_cloudflare_secrets: FunctionTooLong \u2014 flowd::env::bootstrap_cloudflare_secrets runs 185 significant 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 85 over it, 1.85\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":2653}}}],"partialFingerprints":{"codehealthFindingId/v1":"54abed917d4a33db37830465cd1f7d1996490a241775d8304c8d9107dcf659c4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::publish::run_github: FunctionTooLong \u2014 flowd::publish::run_github runs 184 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 84 over it, 1.84\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/publish.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"91261e123c07439cee57bc529aba7dc6ad5c4375037627808de3f9e9e83b11ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/supervisor.rs: FileTooLong \u2014 904 significant 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 52 free functions. The bar is 500 significant lines; this is 404 over it, 1.81\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/supervisor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a1a2bba1e2c50d9b13a39422ce9327c39775d3aa618bd261a0cf3ed1064eb1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::deploy_setup::draw_ui: FunctionTooLong \u2014 flowd::deploy_setup::draw_ui runs 180 significant 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 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy_setup.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"744bf341e2b2d95fa7e56d47511a9d9a8d5c8da04cba065d1b25ef18791223a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/agents.rs: FileTooLong \u2014 888 significant 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 43 free functions. The bar is 500 significant lines; this is 388 over it, 1.78\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agents.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bceedc668bf002876a99d0948798e9e0245e4bc6800c686627ecaf263898a262"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/flow_config.rs: FileTooLong \u2014 863 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 44 free functions. The bar is 500 significant lines; this is 363 over it, 1.73\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/flow_config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c70875917f4b1e38dbccb90835c945bb19c5092af6d0be170462c806a7ba39"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/server.rs: FileTooLong \u2014 851 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 40 free functions. The bar is 500 significant lines; this is 351 over it, 1.70\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df7482129bcc1db218b82aa25eaf59d2e4e0767ffb138002ff767e5d4c1ba6a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/main.rs: FileTooLong \u2014 820 significant 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 320 over it, 1.64\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8051fac64e936f7c1865babf7d506a8673f918fe3a29b7d5daf1e9c85ef2e6ab"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::workflow::inspect_jj_repo: FunctionTooLong \u2014 flowd::workflow::inspect_jj_repo runs 160 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/workflow.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd6cc46b080f539df1c9729db529a973cb057be376251858e77f74c0f9bc74b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::tasks::execute_task: FunctionTooLong \u2014 flowd::tasks::execute_task 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":"src/tasks.rs"},"region":{"startLine":1595}}}],"partialFingerprints":{"codehealthFindingId/v1":"8049fc23beca327d58e33353da4413068f595292c87e5d77c0481a1ab2bbc3c9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/repo_capsule.rs: FileTooLong \u2014 773 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 56 free functions. The bar is 500 significant lines; this is 273 over it, 1.55\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":"src/repo_capsule.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfcb13b7764fea7f0a72eada7d6dbfe275dc7c909325293951dbc2a0c5e522ae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ai_taskd.rs: FileTooLong \u2014 772 significant 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 272 over it, 1.54\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_taskd.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18951d7502d3275a9d6cac1cf11071ab3fc2af214b85e02ae3ae9d6c810c16f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::ai_taskd::run_request: FunctionTooLong \u2014 flowd::ai_taskd::run_request runs 154 significant 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 54 over it, 1.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_taskd.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"23cd5c8b3d68dded2ef5cfef7aeacef81764885c93041179cfca61c56308e00f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::sync::run_switch: FunctionTooLong \u2014 flowd::sync::run_switch runs 152 significant 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 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":1952}}}],"partialFingerprints":{"codehealthFindingId/v1":"626d3b6c38139fbd3b75c41fa79c8ef196b06fa4b564f2bd23fe758f4ae77372"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/deploy_setup.rs: FileTooLong \u2014 759 significant 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 259 over it, 1.52\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy_setup.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc3c541514b15d605f1389f0f1b09fec8f7a30740d5a6a6fdc596f33cf56a4a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::env_setup::draw_ui: FunctionTooLong \u2014 flowd::env_setup::draw_ui runs 151 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env_setup.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"2246dbc5a50aa59c0221723608e06130c2e6dc41b75326afdba56b9a10f00045"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/codex_telemetry.rs: FileTooLong \u2014 753 significant 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 253 over it, 1.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_telemetry.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8bf5c616b2a133612b3287bb6b1886f39a0fa5c4cd0ebec245a030a15eac4fd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::supervisor::monitor_daemons: FunctionTooLong \u2014 flowd::supervisor::monitor_daemons 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":"src/supervisor.rs"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0162bac525ee0ea58e1c9a6cf73d722614bcc8d627f870243a471a73116177e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/publish.rs: FileTooLong \u2014 722 significant 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 222 over it, 1.44\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/publish.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d76330fb0a1368eb649da613bd4c53c525230dde8908238c22436ead1516c0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Config: TooManyFields \u2014 43 stored fields. The bar is 30 stored fields; this is 13 over it, 1.43\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8b526dbeecb411c1fa9d7d7b6b7a9f9c9c1006ff04b2800d1355f10170ce94"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::codex_skill_eval::build_scorecard: FunctionTooLong \u2014 flowd::codex_skill_eval::build_scorecard runs 143 significant 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 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_skill_eval.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"341e4b62077c4a71db6f85efa65fcc39041d78c9822bf55965e7ccf58ab6a74d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::setup::setup_deploy: FunctionTooLong \u2014 flowd::setup::setup_deploy runs 143 significant 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 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f5b27c77549d51036cff5752ed1dd7793e773c589f61910ef16083f4fd2368b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::ai::collect_codex_doctor_snapshot: FunctionTooLong \u2014 flowd::ai::collect_codex_doctor_snapshot 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":"src/ai.rs"},"region":{"startLine":8566}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e15a22172f1e4214a138cc4e52b75b712a5046f8024d18d3b64512c80fc7cac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/designer_memwatch.py: FileTooLong \u2014 705 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 205 over it, 1.41\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":"scripts/designer_memwatch.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"885311341c3fe944e828ffae8f11418b5b8ce08eaf882ea2ad66c5f5847e6088"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::startup_policy_for: FunctionTooLong \u2014 flowd::startup_policy_for runs 141 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.rs"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"545a47ed30b30aab03fc1479a3457d8c78e48538e01b98894611f996eabe8836"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::proxy::summary::compute_summary: FunctionTooLong \u2014 flowd::proxy::summary::compute_summary 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":"src/proxy/summary.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a88ae2cdf68d794be9bf00d0b75315bf9618d2419fc8d2173622f85aac5243"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/log_server.rs: FileTooLong \u2014 690 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 40 free functions. The bar is 500 significant lines; this is 190 over it, 1.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/log_server.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c59926d274e475b8cbaad2edcf7b6f6f1a7e4525628f6309177ebd434dd2c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::tasks::run: FunctionTooLong \u2014 flowd::tasks::run 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":"src/tasks.rs"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"8885345c0b4127955a3490224cfb495e88b45f4999bdc6a1aa4d34a3b351e333"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/install.rs: FileTooLong \u2014 685 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 38 free functions. The bar is 500 significant lines; this is 185 over it, 1.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"efbd70e4c9cfe0668bea2871365124fbb8b5f0ab60cda6477b1ab6bc0d42241d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::ai_project_manifest::build_manifest: FunctionTooLong \u2014 flowd::ai_project_manifest::build_manifest 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":"src/ai_project_manifest.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d85fada2316cfae8733a30a8ce3b0a823fae28dd7cc6fadd643efdb35df7270"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/domains.rs: FileTooLong \u2014 667 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 45 free functions. The bar is 500 significant lines; this is 167 over it, 1.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/domains.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1891646ef0310cba4f616901c748312318498be2358df6b374653ca4729a56"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::ai::build_codex_resolve_workflow_explanation: FunctionTooLong \u2014 flowd::ai::build_codex_resolve_workflow_explanation runs 130 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":7990}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d42075a790c432c2046fd4ac1c890cbb4b80ad4a92d381ca46cb45f3f3a9be3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::ai::build_pr_feedback_workflow_explanation: FunctionTooLong \u2014 flowd::ai::build_pr_feedback_workflow_explanation runs 128 significant 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 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":8162}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e6ea80c6909e9016ca1b5eda227bd606936aad20e4e2e37a82c293beed50f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/env_setup.rs: FileTooLong \u2014 638 significant 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 138 over it, 1.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env_setup.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf163dfb79fc9a722a91afaa726e57a739b2eb578ea1958795ef074aa4e1c19"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::ai::print_provider_session_listing: FunctionTooLong \u2014 flowd::ai::print_provider_session_listing 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":"src/ai.rs"},"region":{"startLine":5190}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a31437a57ebaef6e242fc2fd8fbed448b1865a11d1ef6c5677d45119b36fa5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::ai_everruns::wait_for_completion_sse: FunctionTooLong \u2014 flowd::ai_everruns::wait_for_completion_sse 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":"src/ai_everruns.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5969cf475c946e7aa9004a4901cac50811560210befcd5d36eaad4e54e60cf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::upgrade::run: FunctionTooLong \u2014 flowd::upgrade::run 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":"src/upgrade.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16b20f0be87918ac7890f8f2d2c4e5bb9badf967ec48062bbd18192d9730fef"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::sync::merge_remote_branch_into_current: FunctionTooLong \u2014 flowd::sync::merge_remote_branch_into_current runs 125 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":4002}}}],"partialFingerprints":{"codehealthFindingId/v1":"1131047f0b0c47c3ce04409d9aa5a008fcd3a3f52601dbd64ad1522cd6fd8910"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::sync_plan::build_codex_prompt: FunctionTooLong \u2014 flowd::sync_plan::build_codex_prompt runs 125 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync_plan.rs"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c0c7a1e188056730efeafc4738bf7538ff391a0433a3e0078c6a7b540d0b8a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::sync_plan::render_markdown: FunctionTooLong \u2014 flowd::sync_plan::render_markdown runs 125 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync_plan.rs"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e32b3f724e1eeaa80b8e5e0d69fc995f55bbbadfb67d4b143233bd6670b8fc9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/home.rs: FileTooLong \u2014 623 significant 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 123 over it, 1.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/home.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32bf5092673d322b3d84b69db7c0e112648510c36e8dfee706b0627dd3204926"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::ai::run_sessions: FunctionTooLong \u2014 flowd::ai::run_sessions runs 124 significant 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 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":15469}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea89d5ac7b1cc45b022befadde48bdf65a6c3f6066e5fe3d418fc32482d7c6d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::skills::fetch_skills: FunctionTooLong \u2014 flowd::skills::fetch_skills 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":"src/skills.rs"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9405c111a36af14de57adff7485abc2cc18e95eb6346d6a143dafe1d133e7fb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::jj::collect_status_snapshot: FunctionTooLong \u2014 flowd::jj::collect_status_snapshot runs 121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jj.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"93fba001f949d5e864a6117176d031714986bfde6cc8e4eb9fe84487a5791b40"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: CodexDoctorSnapshot: TooManyFields \u2014 36 stored fields. The bar is 30 stored fields; this is 6 over it, 1.20\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":8424}}}],"partialFingerprints":{"codehealthFindingId/v1":"10dc9889224b4085726b93eaaaaa65f277765a8b1d9c1bc44387ce5042f8815d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ai_tasks.rs: FileTooLong \u2014 590 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 90 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":"src/ai_tasks.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3fa9ed27285211a694368c3f771f8890a252c4fa689435d791a6e94df2276e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ssh_keys.rs: FileTooLong \u2014 578 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 34 free functions. The bar is 500 significant lines; this is 78 over it, 1.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ssh_keys.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1745b5e886d64e266d48c5b1249626dd3d670bd88ecdba1aa9469b88e02f5df1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::env::set_project_env_var_internal: FunctionTooLong \u2014 flowd::env::set_project_env_var_internal 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":"src/env.rs"},"region":{"startLine":3430}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c98b1793c1b6988a67781e7bc5ca544fd51fcb030ead707d6d250673c92b5b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/codex_skill_eval.rs: FileTooLong \u2014 570 significant 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 70 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":"src/codex_skill_eval.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38e008d0362f532d03e011e09717e49fd9f124d7a91902471dd2a3e95265167"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::ai_everruns::wait_for_completion_poll: FunctionTooLong \u2014 flowd::ai_everruns::wait_for_completion_poll 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":"src/ai_everruns.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"b756e9513ecc691d7faf9a124ade01a2298c680c9b86ab6afd41f902507a184f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::codex_session_docs::document_completed_session_at: FunctionTooLong \u2014 flowd::codex_session_docs::document_completed_session_at 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":"src/codex_session_docs.rs"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"029d1474a508809bce2f1238eb59d26c28adcadc997f3ed1734d8efa7da8c3e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/failure.rs: FileTooLong \u2014 568 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 34 free functions. The bar is 500 significant lines; this is 68 over it, 1.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/failure.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc4536fa8b6278f14723a137a8d05e837f61d7900168c4340adbc5a84a7fe30"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: flowd::daemon: TooManyFunctions \u2014 34 free functions. The bar is 30 free functions; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4edb9564f73184f4d1eff7f598a95aa5a1584d6d503705728fafc47781b7a85a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/changes.rs: FileTooLong \u2014 565 significant 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 35 free functions. The bar is 500 significant lines; this is 65 over it, 1.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/changes.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64654df5ba81c1044944993403bdd8031546d9faf4127e13eb05e55cbf4fc04b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Commands: ClassTooLong \u2014 452 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 0 methods. The bar is 400 significant lines; this is 52 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb47c70a59ab8b9a9a89161c4b5c38541bf9d8493cd981637d7c1cd9f258c75"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::tasks::run_command_with_pipes: FunctionTooLong \u2014 flowd::tasks::run_command_with_pipes runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":2858}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc0760bb175d0745af6f219c29a4b1e6e05f815233db0c42a37f7a5d1cfac02"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/recipe.rs: FileTooLong \u2014 556 significant 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 56 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/recipe.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffaa5a55ca0661594f1cb92aae6ec6694a198895110ee0e57097bc31bd8812b5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: flowd::ssh: TooManyFunctions \u2014 33 free functions. The bar is 30 free functions; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ssh.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab82b080172cffda962788910d656b3c313dc8a56013687e5138754f8935c51"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/explain_commits.rs: FileTooLong \u2014 547 significant 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 47 over it, 1.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/explain_commits.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7580748c8741335f136c605dc4641f144a7ef282ec4a2bbe2f38f1285f27f3a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ai_project_manifest.rs: FileTooLong \u2014 546 significant 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 46 over it, 1.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_project_manifest.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f7dacff016b1f9a4da3dcd57cc5d6994335b4d9a8d497f1fb5261859f86fde"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::repos::repo_home_branch_status_with_options: FunctionTooLong \u2014 flowd::repos::repo_home_branch_status_with_options runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/repos.rs"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"f358b621ea38dbfad9f2e2c0203c8c577de36a9cb8e0f942da3221fa7e25c9ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/upgrade.rs: FileTooLong \u2014 537 significant 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 37 over it, 1.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/upgrade.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a8abcf004d4d4b82543c9e6ef85ea57531c390dd78afe79e24580fd222c8b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::ai::read_context_since: FunctionTooLong \u2014 flowd::ai::read_context_since runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e55fa75a9caf93f3aae213e5fa811a21bbb633aae1b4c0796a86297b510b86d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::deps::build_pick_entries: FunctionTooLong \u2014 flowd::deps::build_pick_entries runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deps.rs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5a2882f8a4f4ca7992cc21c58f2c34af0a867c2b5d0d52a5280963d745d647"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: flowd::activity_log: TooManyFunctions \u2014 32 free functions. The bar is 30 free functions; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/activity_log.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ca8bd49eb21341ba4d6c548719278ee7c7e6bfe1ec6fcab6c6a003cb9580b4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: SessionDocPacket: TooManyFields \u2014 32 stored fields. The bar is 30 stored fields; this is 2 over it, 1.07\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_session_docs.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca8e821696fa93fd7b4aabcc1ada14439f60f8d0bff347e67ac98ac041d31ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::pr_preview::build_preview_packet: FunctionTooLong \u2014 flowd::pr_preview::build_preview_packet 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":"src/pr_preview.rs"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d826623653e1d63e5beedd20347155cb6d965d2494cd926ae8b01f218d3e36f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::storage::jazz_new: FunctionTooLong \u2014 flowd::storage::jazz_new 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":"src/storage.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac0d9fb795d46c03460c7cfe14fbd7ddc991bc4a52f8ffcadd95b92c232d512"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::workflow::inspect_git_repo: FunctionTooLong \u2014 flowd::workflow::inspect_git_repo 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":"src/workflow.rs"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"e254a843ac440bf52530af758819c89a5a979da102df595a46d9e3592723547b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::ai::connect_codex_session: FunctionTooLong \u2014 flowd::ai::connect_codex_session 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":"src/ai.rs"},"region":{"startLine":7795}}}],"partialFingerprints":{"codehealthFindingId/v1":"74938d695fe08238c8315aea4d74c8eb450270d721e149cae01c1503e6bc45ae"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::ai::codex_skill_eval_command: FunctionTooLong \u2014 flowd::ai::codex_skill_eval_command 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":"src/ai.rs"},"region":{"startLine":11088}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a9e207e0463ab9395010d6df3142e9503638695f07a7b8f374c3464656018f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::ai::scan_all_project_sessions: FunctionTooLong \u2014 flowd::ai::scan_all_project_sessions runs 103 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":15654}}}],"partialFingerprints":{"codehealthFindingId/v1":"c098bb669f5eabe32dbc681028655d26d093533157fb1fa0d917e67109052d93"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::ai::list_sessions: FunctionTooLong \u2014 flowd::ai::list_sessions 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":"src/ai.rs"},"region":{"startLine":3942}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff4e86f89a68ec8464ed5c0e5692496930fb9516a11cccbf0cbac04e496dea1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::ai::copy_context: FunctionTooLong \u2014 flowd::ai::copy_context 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":"src/ai.rs"},"region":{"startLine":13839}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e3f2c82f1347f3e8ed4b493787780026d3798cbc8451cc3b89fb6d7c2d60d6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowd::codex_session_index::query_index: FunctionTooLong \u2014 flowd::codex_session_index::query_index 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":"src/codex_session_index.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9aa7de65e77d96ea4e01aec70a709eda5c7184b30ae569a922898e7e89f46d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 30 shared lines): src/ai.rs:14150-14206 | src/commit.rs:7445-7495 | src/failure.rs:739-795 | src/sync.rs:3102-3149 \u2014 These 4 members are variants of one another: a block of 30 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":14150}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e8583895567d993ea35625afaf8ff6b606b1930088b300501e52476affe665"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 63 shared lines): src/ai.rs:3942-4091 | src/ai.rs:13286-13429 | src/ai.rs:13844-13990 \u2014 These 3 members are variants of one another: a block of 63 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":3942}}}],"partialFingerprints":{"codehealthFindingId/v1":"8748910ce2c1b47a91858c824fcd2ae4ad0a49c92f27f31776ad529a55bb55a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (155 shared lines): src/deploy_setup.rs:398-619 | src/env_setup.rs:359-544 \u2014 These two members are variants of one another: 155 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy_setup.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d6e794ac9421fbb13b19389cd1062fcb7dc3136d4ac66dc1ddf2e1d320010b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (88 shared lines): src/commit.rs:5947-6135 | src/commit.rs:6143-6282 \u2014 These two members are variants of one another: 88 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":5947}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0173e218446d416cabfcd0e95ac083c0f663023f4293b195f7c881287bc55a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (43 shared lines): src/commit.rs:824-912 | src/commit.rs:1043-1150 \u2014 These two members are variants of one another: 43 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"05caf1b72b1c1786e0905f238940b902a1b8fd10d75f48b9e6b746d0fc82e1d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (43 shared lines): src/commit.rs:914-968 | src/commit.rs:1193-1247 \u2014 These two members are variants of one another: 43 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e4c22f2119c72bb92d3da2a6aef87ff760023fed5e0721f17313d11c33d123"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (34 shared lines): src/commit.rs:15269-15326 | src/commit.rs:15339-15444 \u2014 These two members are variants of one another: 34 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":15269}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b402967ddfb2f45342de1beb392610073100291a02d16a7ca1c54d2d13d9d47"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (27 shared lines): src/traces.rs:156-226 | src/traces.rs:234-282 \u2014 These two members are variants of one another: 27 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/traces.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ecd19d3d5f05b0d5951a7ccebfbe6f80368fd4ed91cd8968bde70dbd7c823a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (27 shared lines): src/skills.rs:310-357 | src/tools.rs:53-100 \u2014 These two members are variants of one another: 27 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/skills.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"6318f6b620f455c802de983e36ea4cec5e982400d8f4e767aa097a73dca95055"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): src/deploy.rs:2992-3042 | src/deploy.rs:3044-3087 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":2992}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7742acbf740b54e259a66c301adc59f3c905bec26cc8f7d221e01a73d58788f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (26 members, 50\u002B identical tokens): src/log_server.rs:375-396 | src/log_server.rs:398-418 | src/log_server.rs:422-439 | src/log_server.rs:441-460 | src/log_server.rs:462-481 | src/log_server.rs:485-509 | src/log_server.rs:513-537 | src/log_server.rs:539-555 | src/log_server.rs:569-586 | src/log_server.rs:588-610 | src/log_server.rs:615-634 | src/log_server.rs:754-769 | src/log_server.rs:799-814 | src/log_server.rs:830-869 | src/server.rs:275-296 | src/server.rs:298-318 | src/server.rs:322-339 | src/server.rs:341-360 | src/server.rs:362-381 | src/server.rs:383-407 | src/server.rs:411-435 | src/server.rs:437-453 | src/server.rs:467-483 | src/server.rs:485-507 | src/server.rs:509-529 | src/server.rs:534-553 \u2014 These 26 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 26 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 26 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/log_server.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e33b747c65c2b5f2355b01eec9b7bb755988979bbf504338ec6b87afc2f1634"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): src/agents.rs:219-256 | src/agents.rs:390-420 | src/agents.rs:494-532 | src/ai.rs:4094-4124 | src/code.rs:483-511 | src/commits.rs:275-328 | src/deps.rs:713-744 | src/palette.rs:33-73 | src/repos.rs:320-349 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agents.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"173319381de042d23e794c75df72fcaecdc1e5fe272190c7eca965f39287b3e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/ai.rs:3427-3448 | src/ai.rs:16023-16054 | src/code.rs:407-453 | src/code.rs:1508-1528 | src/web.rs:281-325 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":3427}}}],"partialFingerprints":{"codehealthFindingId/v1":"46020fdcd948c1962adeafec2e7def14a267641952087fcd65c27faf678d93db"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/commit.rs:1984-2200 | src/commit.rs:2209-2368 | src/commit.rs:3909-4678 | src/commit.rs:7717-7919 | src/commit.rs:8959-9532 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":1984}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e844ee4e83caa4081840962d69504b917b0216932ed3b54b54dc6bf6c796f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/commit.rs:8449-8466 | src/commit.rs:8468-8485 | src/commit.rs:12226-12296 | src/commit.rs:12649-12725 | src/commit.rs:13490-13529 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":8449}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6420f274cb3f9137f4b7bad63fad28b779b502ba3f8f9106d8defdf420f106"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/failure.rs:572-590 | src/failure.rs:625-639 | src/jj.rs:1737-1748 | src/jj.rs:2394-2405 | src/vcs.rs:52-67 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/failure.rs"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2de549e92555c585b6ba3a65ee7f410b96847758db0fa90b297990d75060b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/ext.rs:410-424 | src/publish.rs:897-916 | src/publish.rs:918-934 | src/services.rs:506-520 | src/setup.rs:2941-2955 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ext.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"b093426266b741556a0ca24c386e8a116c42ef6ece7a8091644950aec4454bec"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/ai.rs:4563-4581 | src/ai.rs:12744-12759 | src/ai_project_manifest.rs:219-235 | src/codex_session_docs.rs:1757-1773 \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":"src/ai.rs"},"region":{"startLine":4563}}}],"partialFingerprints":{"codehealthFindingId/v1":"546945e4fe15ab36c2cbdf1882ddc34c0a99945cfb5bb67a04c4dd1fa8ed1137"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/flow_commit_scan/src/lib.rs:198-314 | src/commit.rs:248-296 | src/commit.rs:545-581 | src/commit.rs:6615-6638 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/flow_commit_scan/src/lib.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6c238f5a74b45284ffa8bff7039c36747fe254a0e145dd133e9ddc5e7a9e4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/commit.rs:2938-2945 | src/fish_install.rs:145-155 | src/fish_install.rs:157-167 | src/install.rs:951-961 \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":"src/commit.rs"},"region":{"startLine":2938}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf62add7793f4e71d4acbb733ca5a3e574c1ffb9af78d272f780c5a4a14a9a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/commit.rs:5049-5372 | src/commit.rs:5455-5540 | src/commit.rs:5800-5907 | src/commit.rs:6456-6544 \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":"src/commit.rs"},"region":{"startLine":5049}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1b347ae5c5679b2c41899bcd32c9da06ffff500a72ec30072fe3ad60025f2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/deploy.rs:616-667 | src/fish_install.rs:12-117 | src/push_hook.rs:70-108 | src/setup.rs:1222-1246 \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":"src/deploy.rs"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3feec7415daaa982917fbf522f798b5257cf4e8ae4d4bba4404dc6692041f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/deploy_setup.rs:916-967 | src/deploy_setup.rs:969-1018 | src/discover.rs:115-257 | src/env_setup.rs:829-878 \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":"src/deploy_setup.rs"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c93674fae5410826c809d3c128aa7568ac8e3beefd54288e54f07866f7d390"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/failure.rs:293-325 | src/trace.rs:72-87 | src/trace.rs:154-183 | src/trace.rs:256-288 \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":"src/failure.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1806ce20a83c465fba4b4b28ba3bf02f1cbe2093577bf12be4d0caee6b22bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/sync_plan.rs:982-1144 | src/sync_plan.rs:1232-1407 | src/updates.rs:1027-1131 | src/updates.rs:1204-1322 \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":"src/sync_plan.rs"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a8d9453cc72026a05f12fc0ea7336ebec1412bde9b526e3cccda224bc62944"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (115 lines \u00D7 2): src/ai_everruns.rs:208-322 | src/ai_everruns.rs:360-474 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_everruns.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8406edf32d30494837fd71dc2e4a31c923274c600dfcf82e4ed9b70c0817793"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (80 lines \u00D7 2): src/setup.rs:1518-1597 | src/setup.rs:1622-1701 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup.rs"},"region":{"startLine":1518}}}],"partialFingerprints":{"codehealthFindingId/v1":"800fae66ae37d854903728a848588ab20fcecd9d78aab38229cb522c6023e3df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (74\u201379 lines \u00D7 2): src/ask.rs:562-635 | src/task_match.rs:302-380 \u2014 before extracting anything, compare \u0060src/ask.rs\u0060 and \u0060src/task_match.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 150 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":"src/ask.rs"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"49df5fec1c2b1793808e662cf72d3728e8e639d4670740ae3d6600f9d8b1133b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (71 lines \u00D7 2): src/deploy_setup.rs:315-385 | src/env_setup.rs:276-346 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f90aa31192ec0cf6b8409f608f999540921f0264282ab8868597503bf0f010"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62 lines \u00D7 2): src/sync_plan.rs:1242-1303 | src/updates.rs:1214-1275 \u2014 before extracting anything, compare \u0060src/sync_plan.rs\u0060 and \u0060src/updates.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 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":"src/sync_plan.rs"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"a518c6bc966dc2d56134ceb4b3a1809d25a69eb1b8bac698f054323335790851"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 2): src/deploy_setup.rs:622-679 | src/env_setup.rs:547-604 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"45573486f641a480e0516859005f6112a31ab40d8d783698919c1e35f1994c0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2): src/ai.rs:564-619 | src/ai.rs:812-867 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd07cd28be460446fa912a2f8efd3c7c3668dd4816d0872a9f239ef53d8d882f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): src/commit.rs:6088-6135 | src/commit.rs:6235-6282 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":6088}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2f7be19d5b8f55914af0b479ce80a10f5163737071b3b609c3aa00ea00a98a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43\u201346 lines \u00D7 2): src/tasks.rs:2407-2452 | src/tasks.rs:2480-2522 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":2407}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e73a67e075437d0b509ad389ffc24266988d237990ac4aa5d498a0164740af9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201342 lines \u00D7 2): src/commit.rs:11570-11611 | src/pr_edit.rs:576-614 \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":"src/commit.rs"},"region":{"startLine":11570}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b3394db166ad71ee881c722c644da1c8c5aefba58f5bb4079de72622ab28c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201341 lines \u00D7 2): src/deploy_setup.rs:448-488 | src/env_setup.rs:386-424 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f95b2c01ada376c49baaff774e35b6fbebbf24e367d14bf7bba060bd9e2b039"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 2): src/deploy_setup.rs:491-530 | src/env_setup.rs:426-464 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba2bda3c0954e53b48ac505cc431d161c808e9536ab50bdd429708cf59f4e1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201340 lines \u00D7 2): src/sync_plan.rs:1147-1176 | src/updates.rs:981-1020 \u2014 before extracting anything, compare \u0060src/sync_plan.rs\u0060 and \u0060src/updates.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 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":"src/sync_plan.rs"},"region":{"startLine":1147}}}],"partialFingerprints":{"codehealthFindingId/v1":"7607dc958d0dc723cbdc83bd2f8b7182c4776482631573f8a4552d92cb2e4e36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): src/ai.rs:13379-13417 | src/ai.rs:13936-13974 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":13379}}}],"partialFingerprints":{"codehealthFindingId/v1":"042239d4198ea3c7530d95053bf87c01f30649c9df6c1bffef99209ca5e8fbb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201338 lines \u00D7 2): src/ai.rs:1690-1721 | src/ai.rs:1792-1829 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ecff84c9ebd453c71f11db80f096685b1408067aa50e840061ad266c23bf91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201337 lines \u00D7 3): src/ai.rs:15985-16021 | src/ai.rs:16092-16126 | src/ai.rs:16136-16170 \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":"src/ai.rs"},"region":{"startLine":15985}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c86e54abd3412b3c8395df0d8d361769a21139d5671f7f1ff31d3dbe3ec0e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 3): src/publish.rs:937-972 | src/services.rs:523-558 | src/setup.rs:2982-3017 \u2014 before extracting anything, compare \u0060src/services.rs\u0060 and \u0060src/setup.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 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":"src/publish.rs"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f50531a02eff22a24bc6b6d04123f2307ac33eaf96681f0e31aa3bca53c64b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): src/env.rs:552-587 | src/ssh_keys.rs:539-574 \u2014 before extracting anything, compare \u0060src/env.rs\u0060 and \u0060src/ssh_keys.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 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":"src/env.rs"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68207b6ec543d6fd9351129c555c07cd792316db851be83d240abdaca45dede"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): src/commit.rs:2296-2329 | src/commit.rs:4560-4593 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":2296}}}],"partialFingerprints":{"codehealthFindingId/v1":"18eb3a3be9e49b6acc8080382c74328cd4202af38e82ea4f4fc7ea1bc96fe210"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): src/deploy.rs:3009-3042 | src/deploy.rs:3054-3087 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":3009}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8515bcb14ef9b7742306502efbd5208e8214f35669f43f2d1aea0a89c64cde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201333 lines \u00D7 3): src/ai.rs:4006-4038 | src/ai.rs:13367-13397 | src/ai.rs:13924-13954 \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":"src/ai.rs"},"region":{"startLine":4006}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed875c3d5b019942f45fc496fa9b9d1a43a58016adc684cf3502b5010aaada6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201332 lines \u00D7 2): src/ask.rs:654-680 | src/task_match.rs:430-461 \u2014 before extracting anything, compare \u0060src/ask.rs\u0060 and \u0060src/task_match.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 150 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":"src/ask.rs"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"f320c1c92ddc3d0e099e4d610c238e83c1a5ea345f2f6fbd8bc65f080f423452"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/deploy_setup.rs:686-716 | src/env_setup.rs:611-641 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbeaa2fd0a8287edf3a4772ee005397c794c1817e5e3c75efd616179ff98761"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201331 lines \u00D7 2): src/sync.rs:5571-5601 | src/sync.rs:5653-5681 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":5571}}}],"partialFingerprints":{"codehealthFindingId/v1":"e812dbf4ebb3018fdf7cd369bddceb0ed49185304488e75f3eec3c31ee99d6e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 2): src/ai.rs:15243-15270 | src/ai.rs:15304-15333 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":15243}}}],"partialFingerprints":{"codehealthFindingId/v1":"e291ce28352ceb36e3cb570c51fff1986e85e03da439f6b9cf6021ba20a5f71a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/commit.rs:5952-5980 | src/commit.rs:6144-6172 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":5952}}}],"partialFingerprints":{"codehealthFindingId/v1":"dceafc9567b5a96b1b7d742a82883c02193793a49d23cba198d3a83a75af12b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): src/deploy_setup.rs:926-953 | src/deploy_setup.rs:979-1006 | src/env_setup.rs:839-866 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0060e573235a032a58fc8679bbe0ebcc6d24d5e3e50f03774ce9b528c6a4df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): src/codex_memory.rs:1030-1056 | src/codex_memory.rs:1423-1450 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_memory.rs"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9575ccb6c8c6533d08220164c2c367a776f3895febd4409e411e9681cb2f752"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/log_server.rs:692-719 | src/server.rs:1229-1256 \u2014 before extracting anything, compare \u0060src/log_server.rs\u0060 and \u0060src/server.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 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":"src/log_server.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a3d962134fae9a8379672d729fad1697a8ed04c672f51f079004a2aeef6bce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/deploy.rs:393-419 | src/deploy.rs:532-558 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d669143c112bb67b4d9af55507004e860eb31ac920c475246b0be0a8aa535fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201326 lines \u00D7 2): src/ai.rs:13846-13871 | src/ai.rs:14000-14022 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":13846}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b0a0f04e8f3969e2629de68e9cace9956534e84333161f707226b95bdf4b399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): src/ai.rs:14156-14181 | src/failure.rs:746-770 \u2014 before extracting anything, compare \u0060src/ai.rs\u0060 and \u0060src/failure.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 58 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":"src/ai.rs"},"region":{"startLine":14156}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0815142c247a8eb0942427130c3b683c97ae2d32fa973be6401e7c94b1ab123"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/code.rs:1014-1039 | src/code.rs:1081-1106 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/code.rs"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac50311b00a7cb4f81ae0cdfe5b65b234fd3d5f220b5072e592d1b18ef2b5654"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/log_server.rs:722-747 | src/server.rs:1260-1285 \u2014 before extracting anything, compare \u0060src/log_server.rs\u0060 and \u0060src/server.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 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":"src/log_server.rs"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ad17111dc3b2b5035c28a21dc6958b2452c093c7057595eca2b48cb4761427"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/ssh_keys.rs:744-769 | src/ssh_keys.rs:772-797 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ssh_keys.rs"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"829f31a5fe392a9125c8a1c26f7263fd25a663149ac4af1cc8fb6cd0a1f1c136"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201325 lines \u00D7 3): src/ai.rs:3967-3991 | src/ai.rs:13331-13352 | src/ai.rs:13889-13910 \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":"src/ai.rs"},"region":{"startLine":3967}}}],"partialFingerprints":{"codehealthFindingId/v1":"585b61ec3d192c801172cd271b803f629d2895c612832f3bfa4f052b1712baa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 3): src/commit.rs:2107-2130 | src/commit.rs:2281-2304 | src/commit.rs:4544-4568 \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":"src/commit.rs"},"region":{"startLine":2107}}}],"partialFingerprints":{"codehealthFindingId/v1":"50021047d5eb766973c560124f5f0c6d82959ad43472bc4578532e193a7fd8c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): src/deploy_setup.rs:926-949 | src/deploy_setup.rs:979-1002 | src/discover.rs:164-187 | src/env_setup.rs:839-862 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a24b57ed23519ff284b9c5e8968a07b77d92d6726dbab3b6917dbcc1f7a376"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): src/setup.rs:1590-1613 | src/setup.rs:1694-1717 | src/setup.rs:1787-1810 \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":"src/setup.rs"},"region":{"startLine":1590}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a62947580713210950ea2826426bd6673d931d3499d119e19d6d3dbd3c9f85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/ai.rs:1933-1956 | src/ai.rs:1983-2006 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":1933}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b08d9e7e5e37fa678a5e7cd789eb1fe63f05a84e7532bb56caf387758acdb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/ai.rs:2645-2668 | src/codex_text.rs:57-80 \u2014 before extracting anything, compare \u0060src/ai.rs\u0060 and \u0060src/codex_text.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 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":"src/ai.rs"},"region":{"startLine":2645}}}],"partialFingerprints":{"codehealthFindingId/v1":"1657e61d50883565e6f0b54ccb38e214a997a8e5f3f6cfe866b682a987be238e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/ai.rs:14617-14640 | src/ai.rs:14693-14716 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":14617}}}],"partialFingerprints":{"codehealthFindingId/v1":"4411d3a4cb7697578e916131eecf849648d376a5064159fa1c42252a4dc3592b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/ai_tasks.rs:729-752 | src/recipe.rs:403-426 \u2014 before extracting anything, compare \u0060src/ai_tasks.rs\u0060 and \u0060src/recipe.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 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":"src/ai_tasks.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"c175a60c6f9d17b5198e3b220f5f638c0f12b428ef8d1a6d289b6697c62b2671"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/commit.rs:2177-2200 | src/commit.rs:2345-2368 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":2177}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ce33f68870ac4bd1c2318ff678041a6086672da49b8ae5f45847303dec9451"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/commit.rs:14118-14141 | src/skills.rs:676-699 \u2014 before extracting anything, compare \u0060src/commit.rs\u0060 and \u0060src/skills.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":14118}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24ef57d1b23b19c63811f3fa8f3fd9076045b4ab033e6d387488184f5c51566"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/deploy_setup.rs:532-555 | src/env_setup.rs:466-489 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ec3ae5e88832fc8e54a207d94d21dae4bd6a95ccb5ed67731c7e0833a0739a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/deploy_setup.rs:891-914 | src/env_setup.rs:790-813 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6a95d62f10f3a8235328d6ed1bf0b9806f7124c8f478fc284e7f13a09d4a83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201324 lines \u00D7 2): src/upstream.rs:263-286 | src/upstream.rs:382-400 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/upstream.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"d208b38cd00ef6cdc0fa49f635b65c34fc5d86fedcd4a2b14b9a87ab874e3cc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): src/commit.rs:7452-7474 | src/sync.rs:3109-3129 \u2014 before extracting anything, compare \u0060src/commit.rs\u0060 and \u0060src/sync.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 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":"src/commit.rs"},"region":{"startLine":7452}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b2dcb79251a6b77ca0c06ca438b1bfd6e73bb7db8e13c4d6437f206f1c74b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/commit.rs:13935-13957 | src/commit.rs:14239-14261 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":13935}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd504513fb08841a0c92c5229eaadefe805e9d47be0cd9afa3d51f8028cf35c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 4): src/ai.rs:14171-14192 | src/commit.rs:7465-7485 | src/failure.rs:761-781 | src/sync.rs:3120-3140 \u2014 before extracting anything, compare \u0060src/ai.rs\u0060 and \u0060src/commit.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 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":"src/ai.rs"},"region":{"startLine":14171}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2cb3d3adcd750c6b397b4a59852c9e2f84514ff147c4a6b751d59fb5f82ea7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/commit.rs:1647-1668 | src/commit.rs:1673-1694 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":1647}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d375455500f6a2086e13ef6796e9bf556dce7d08e53b88a99bb6c77f021b4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/commit.rs:9635-9656 | src/commit.rs:11737-11758 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":9635}}}],"partialFingerprints":{"codehealthFindingId/v1":"8793c9f5df804432f73915d3a605653c824f31f626665d17a878cb8735de08be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201322 lines \u00D7 2): src/commit.rs:12409-12426 | src/commit.rs:12432-12453 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":12409}}}],"partialFingerprints":{"codehealthFindingId/v1":"7134f020a8add7f4390bc7164f395fd4b7123ddd6135de315bec0135928039a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): src/commit.rs:15666-15687 | src/commit.rs:15726-15746 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":15666}}}],"partialFingerprints":{"codehealthFindingId/v1":"fedf8996744e871cd2faad12ff375dae9bd792a90da597219c571cf318d74077"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): src/deps.rs:833-853 | src/deps.rs:871-892 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deps.rs"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"32fcb53efeb99bdcd1f134b11eb7dc89cafcb4dc9345c251f351cc98800ae97d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/tasks.rs:2455-2476 | src/tasks.rs:2525-2546 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":2455}}}],"partialFingerprints":{"codehealthFindingId/v1":"8568a252e96f222c64f4455bdd8403e52f8da3cbcd5efc895784bcba5b05e37c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/ai.rs:14594-14614 | src/ai.rs:14670-14690 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":14594}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e8fc991959c7f8bbd156fc7f5963b1638eff9dc417ada5371546615c5ffb2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/commit.rs:2013-2033 | src/commit.rs:3951-3971 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a87eb2f652222f02e19af8c5a709174349094536d70f97cb9b4226422e0d030"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/ext.rs:364-384 | src/jj.rs:3362-3382 \u2014 before extracting anything, compare \u0060src/ext.rs\u0060 and \u0060src/jj.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 51 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":"src/ext.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f1853b9dcb164ddf48fd8ebb9c3b7aa118bb24f4860776c84281e3a9e01f30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): src/repos.rs:254-272 | src/repos.rs:282-302 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/repos.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed4c27d4a24d6ad06cc102876da50996566ce439fd6b9046e93668a16507f1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): src/sync.rs:2013-2033 | src/sync.rs:2264-2283 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ab5d8241ecf6fcf3124cae795af1eddfa54072f0f4dda4d5e0eeda3ef5de71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/tasks.rs:2875-2895 | src/tasks.rs:2922-2942 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":2875}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d1891e0392c6dd04f820155d97f19394cd24f548a0e80e0b9ce0ca45edf989"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): src/workflow.rs:542-562 | src/workflow.rs:662-681 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/workflow.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef15edbd63b45bad477c777883bee888f61fb2826211c9b4984100f096925cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): src/upstream.rs:292-312 | src/upstream.rs:404-422 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/upstream.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"c020ae96e63cb7d4df66116053020967105651e1ac5de0a53cf6f3c60b1ab54d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/ai.rs:8070-8093 | src/ai.rs:8138-8157 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":8070}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1dc3ba1624c4c23201d70301d88eec8a47d703c96945ea70e090894cb49b6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/deploy_setup.rs:753-772 | src/env_setup.rs:670-689 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0c043da33988c8ba90a0e2607ee3f72815c05c87d4197cd9a1dfeb87c3dd24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/log_server.rs:591-610 | src/server.rs:488-507 \u2014 before extracting anything, compare \u0060src/log_server.rs\u0060 and \u0060src/server.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 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":"src/log_server.rs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5a8d5edcf5e7d6beb85b2778175008a4283f47009e1f9f27caccced16f36a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): src/sync.rs:5771-5787 | src/upstream.rs:621-640 \u2014 before extracting anything, compare \u0060src/sync.rs\u0060 and \u0060src/upstream.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":5771}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf551b8460d06491b7fe5c5881b6a0b494e5dee9dc39fd352f170fd054a7273"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/ai.rs:1651-1669 | src/ai.rs:16254-16272 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":1651}}}],"partialFingerprints":{"codehealthFindingId/v1":"b021c0b454aa20e9bcaa129fcf4a4d3bad78aa48b7646202d2e6d77adaf18b66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/commit.rs:2062-2080 | src/commit.rs:2250-2268 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":2062}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a269711b26273a8707b2d237f4f67e37344e153b7872e430f734251bbd1c00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): src/commit.rs:3300-3317 | src/invariants.rs:114-132 \u2014 before extracting anything, compare \u0060src/commit.rs\u0060 and \u0060src/invariants.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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":"src/commit.rs"},"region":{"startLine":3300}}}],"partialFingerprints":{"codehealthFindingId/v1":"09653273c7a7f55050455103820b9d6452293a2943d7ab8f13566b4dc34d67bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/commit.rs:12650-12668 | src/commit.rs:12729-12747 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":12650}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d19ebd4d1a82d8d50bb3d860040646a7a98e696b9d80c8c0a7fff47556895b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/deploy_setup.rs:870-888 | src/env_setup.rs:769-787 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca6c64697db07ba717fdc8bbc646480a49bb29162ff931aa3cf62581b73a0f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/log_server.rs:378-396 | src/server.rs:278-296 \u2014 before extracting anything, compare \u0060src/log_server.rs\u0060 and \u0060src/server.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 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":"src/log_server.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d65fa7f1cd179a49ee5e36c207c61ebfe9ccd5c5eb8ebd22356b57d60e36e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/log_server.rs:463-481 | src/server.rs:363-381 \u2014 before extracting anything, compare \u0060src/log_server.rs\u0060 and \u0060src/server.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 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":"src/log_server.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeed3dca0067240e5c1b11417cc542d41da36414201caef1da63a6f0d096e4e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/log_server.rs:616-634 | src/server.rs:535-553 \u2014 before extracting anything, compare \u0060src/log_server.rs\u0060 and \u0060src/server.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 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":"src/log_server.rs"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1c48365ba1f15cb27f76e0af96240ac54df683ea0cfdc4769a058dc538f98e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): src/sync_plan.rs:1390-1407 | src/updates.rs:1304-1322 \u2014 before extracting anything, compare \u0060src/sync_plan.rs\u0060 and \u0060src/updates.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 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":"src/sync_plan.rs"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7f3aba00cc44f8ae2ee2e8e868d627134ea28b9135a6a4705d945afcac5005"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): src/ai_taskd.rs:517-534 | src/ai_taskd.rs:544-560 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_taskd.rs"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"765f329927ec58a2e86ed86489a9337530a351c3aec7d97c4faa097bf11e8406"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/code.rs:373-390 | src/repos.rs:128-145 \u2014 before extracting anything, compare \u0060src/code.rs\u0060 and \u0060src/repos.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/code.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"751ee7a5668468188cabe83359eb28e7b83188e5a236b37efd2b51d1eb612e12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/code.rs:1230-1247 | src/code.rs:1266-1283 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/code.rs"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"965b1834fd175a0bb6492edd4ab1863cf2d94e48b25ca2afd653358f40b582e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/commit.rs:7837-7854 | src/commit.rs:9360-9377 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":7837}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc029104410b9581674f903bdaa2e651acf9295e44ae1e6f1b997c442711186"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): src/env.rs:2524-2540 | src/env.rs:3483-3500 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":2524}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a2eeecbe690e8ee3b3ed857593b264739813d9e414df68f464cad532917bd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): src/env.rs:3215-3231 | src/env.rs:3293-3310 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":3215}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d34e9b64121d087c70ce858724d0abfb2c5493d1d545bfba972c0f09852f63d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/explain_commits.rs:649-666 | src/explain_commits.rs:726-743 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/explain_commits.rs"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"567215fa6d5a8879a5cbcb659e1f6b611e61df317e91f7b00ea2b11b8e5a607b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/log_server.rs:401-418 | src/server.rs:301-318 \u2014 before extracting anything, compare \u0060src/log_server.rs\u0060 and \u0060src/server.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 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":"src/log_server.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"749f065614c96bc8a0a071ece792eb7cf4cced18dc3223a1810994ff75fe1d8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 8): src/agents.rs:395-411 | src/agents.rs:501-515 | src/ai.rs:4100-4114 | src/code.rs:488-502 | src/commits.rs:293-308 | src/deps.rs:721-735 | src/palette.rs:40-54 | src/repos.rs:325-339 \u2014 before extracting anything, compare \u0060src/agents.rs\u0060 and \u0060src/palette.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 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":"src/agents.rs"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0040a6adc4ee46fdabfc34b3ef937e55640544c3d7352fe0e4b20c40f5812a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 3): src/log_server.rs:782-796 | src/log_server.rs:885-899 | src/log_server.rs:917-933 \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":"src/log_server.rs"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad78b8c314437f769ff265034d5661a3b1de45907299c62175827b6e4671246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/ai.rs:1778-1794 | src/ai.rs:15971-15987 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"872a980140a2ed312f33979e180e074063ade251a083692814510cc7dc3d8072"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/ai_taskd.rs:831-847 | src/ai_taskd.rs:855-871 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_taskd.rs"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2158d486d483c12981b5dd3d098e759ab9e5cbb5ba170db46749f1e90838679"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/bin/flow-workspace-bootstrap.rs:1498-1514 | src/jj.rs:2321-2337 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/flow-workspace-bootstrap.rs"},"region":{"startLine":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b18b9279d983673944184a853739caf1a4cf3a53cd7feb7d027c41e13c626b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/commit.rs:2156-2172 | src/commit.rs:2326-2342 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":2156}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e35154be9ed8c04c154c95f42ddf82c45cbdd1d9c0497872e7aef61df78d11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src/commits.rs:65-81 | src/commits.rs:99-114 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commits.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"d344bac0bde06fda9ea01063b4064cacfd499db82e0004a54111f5a14370a0d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): src/daemon.rs:221-237 | src/supervisor.rs:1206-1220 \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":"src/daemon.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4a1cd52de84d95438c3aa73db52cbb81b391927f4ba130d592c861385a8664"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/deploy_setup.rs:184-200 | src/env_setup.rs:167-183 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32971f692c106edfb8f59136736127a994a36486e5131bda4d1842ce2828511"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/deps.rs:483-499 | src/fix.rs:174-190 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deps.rs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"6657f5f4347563f7792bd7183f819cc8ed3d2527eb8e9eaa266779603f16aafd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/hive.rs:317-333 | src/hive.rs:343-359 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hive.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ba2d6c4745cec87d571f3e0e61d97b9b4db5aa8aed6bcfd58dc3f5bd50b537"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/watchers.rs:103-119 | src/watchers.rs:179-195 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/watchers.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdfed7d27e4fa718e5397d4871c4cdf7f8894dc1ea6bed47d443aa5c72893cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/ai.rs:2914-2929 | src/ai.rs:2971-2986 | src/ai.rs:3410-3425 \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":"src/ai.rs"},"region":{"startLine":2914}}}],"partialFingerprints":{"codehealthFindingId/v1":"db62d2b463db60d90fb7f55d76ab99584f83e6069fe07f6bdfd0973f64a3bae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): src/ai.rs:4487-4502 | src/ai.rs:5552-5565 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":4487}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87a7565bfe316ef2470878872385328257126190468f9da4fa30dafab21acc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): src/ai.rs:14255-14270 | src/commit.rs:11927-11941 \u2014 before extracting anything, compare \u0060src/ai.rs\u0060 and \u0060src/commit.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 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":"src/ai.rs"},"region":{"startLine":14255}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c523f895e33920c14fd32aac4048a187fc76721f5ed5fff615301eee5254a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/ai_tasks.rs:373-388 | src/ai_tasks.rs:400-415 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_tasks.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"9997f6f5065937153970cb352e5129d16d1925bfaeb1f68dfcfac78d4139c7b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/commit.rs:14367-14382 | src/commit.rs:14479-14494 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":14367}}}],"partialFingerprints":{"codehealthFindingId/v1":"8797afa62a084aa00397133966606f2d629dba7851dc1595c309f482b62dc211"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/commit.rs:14436-14451 | src/commit.rs:14481-14496 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":14436}}}],"partialFingerprints":{"codehealthFindingId/v1":"c421a89e0a072c82410e0a6ffbae466917418917a05aa9117557eff68b59cbf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/deps.rs:782-797 | src/deps.rs:803-818 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deps.rs"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d52feb133d8c38fd42dc7cdcfd32d03c130bfba7e4d7007f79d15c2fd7160dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): src/env.rs:2279-2292 | src/env.rs:3353-3368 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":2279}}}],"partialFingerprints":{"codehealthFindingId/v1":"181da02830e3ba8298f2d1d961d1d9f8e11122b1207b4d53345f7952d35b7b86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/git_guard.rs:344-359 | src/jj.rs:3572-3587 \u2014 before extracting anything, compare \u0060src/git_guard.rs\u0060 and \u0060src/jj.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 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":"src/git_guard.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b439fbcc7c7d1676b1e66ab1eab406d5400c4a7c727af69a3afe85c70f6b618"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/info.rs:123-138 | src/repo_capsule.rs:935-950 \u2014 before extracting anything, compare \u0060src/info.rs\u0060 and \u0060src/repo_capsule.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/info.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"189fc5f170ce05bcfdea8769c5515cf0132856a2f93a74821bd890cec3086edf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/log_server.rs:540-555 | src/server.rs:438-453 \u2014 before extracting anything, compare \u0060src/log_server.rs\u0060 and \u0060src/server.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 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":"src/log_server.rs"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"1350adbe9666e10e836968c2872441d11a4a59164cde8b3422853e0e34c32585"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/todo.rs:242-257 | src/todo.rs:260-275 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/todo.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b85f1f6c00a1f14d0580d767bad8e7383de6f100a4fe2f25538c5ff45fef155"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): src/upgrade.rs:186-201 | src/upgrade.rs:222-236 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/upgrade.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"259bbc69417056cbe843871b0c307094da719e22eaad8ae1388088194c4aca65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): src/commit.rs:2154-2168 | src/commit.rs:2324-2338 | src/commit.rs:7840-7854 | src/commit.rs:9363-9377 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":2154}}}],"partialFingerprints":{"codehealthFindingId/v1":"83833dafc5b6ab82f7c09111448f68d7541450512ec5d3b1fc1cd9958fe71278"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 3): src/ai.rs:1698-1709 | src/ai.rs:1802-1815 | src/ai.rs:1893-1907 \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":"src/ai.rs"},"region":{"startLine":1698}}}],"partialFingerprints":{"codehealthFindingId/v1":"258fd3ca21c43f899829c8cb540e2f6b30a2b74a1c566daf1cce8389f31c72df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): src/ask.rs:638-651 | src/task_match.rs:383-396 | src/tasks.rs:1968-1982 \u2014 before extracting anything, compare \u0060src/ask.rs\u0060 and \u0060src/task_match.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 150 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":"src/ask.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6e8eac05ddb3eaea1a366fd6eab86f78dc13bdb32a645ed33aef208b6eafed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/agents.rs:1045-1058 | src/agents.rs:1092-1106 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agents.rs"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d79df3b9be086fffc734b4a16b6a2cd2aaae0e984d03b285d8afe821afe71b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): src/ai.rs:3010-3022 | src/ai.rs:3068-3082 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":3010}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1bbe412c5caffb01adc6fa13e2863823f3186014d634e84e26fca5a557d9aca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/ai_tasks.rs:786-800 | src/tasks.rs:1124-1138 \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":"src/ai_tasks.rs"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f982cbd411aedde1c8fe607cf1702288657c78cd3bda7d816d634e3c1f0f5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/changes.rs:708-722 | src/env.rs:1045-1059 \u2014 before extracting anything, compare \u0060src/changes.rs\u0060 and \u0060src/env.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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":"src/changes.rs"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"188db6b6e10e24d5554b8a602b80153299c7319ec5e511c1081716e35a930a07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201315 lines \u00D7 3): src/archive.rs:111-113 | src/code.rs:851-865 | src/ext.rs:196-210 \u2014 before extracting anything, compare \u0060src/archive.rs\u0060 and \u0060src/code.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"src/archive.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"683420adbbf114084f436f996cf352aa5e7ddd39f5da5662d730b2d68e8211ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/code.rs:879-893 | src/ext.rs:224-238 \u2014 before extracting anything, compare \u0060src/code.rs\u0060 and \u0060src/ext.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"src/code.rs"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"eadf1c3848a2846609c2b9a78124817c25a5f2c5c3b398a00158a73b9e3f219a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/commit.rs:8450-8464 | src/commit.rs:8469-8483 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":8450}}}],"partialFingerprints":{"codehealthFindingId/v1":"268d64389074a39474abf0c81b1e16e037d1f5260f987c0d5934b1c07db88af6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/commit.rs:10281-10295 | src/failure.rs:685-699 \u2014 before extracting anything, compare \u0060src/commit.rs\u0060 and \u0060src/failure.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 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":"src/commit.rs"},"region":{"startLine":10281}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0d5c8eb5f7fde222e3e8aaddf8655ed5171ff59aa6ad2f1aa22aa1160a93c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/daemon.rs:555-569 | src/hub.rs:92-106 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"c51fe61abb37ef30412f630146756ad122f2ca77421fe14ea1c0e1ed51b64808"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/deploy_setup.rs:793-807 | src/env_setup.rs:701-715 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"8519f94b50fb497327490e7f8c99eb7f48a09a911600696027de32b456ac8f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/env.rs:527-541 | src/ssh_keys.rs:514-528 \u2014 before extracting anything, compare \u0060src/env.rs\u0060 and \u0060src/ssh_keys.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 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":"src/env.rs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a068217f7e54fa32c683aeab56438b0f9e70dab0e3cb16564d3d2d6c77e72fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/env.rs:3506-3520 | src/env.rs:3535-3549 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":3506}}}],"partialFingerprints":{"codehealthFindingId/v1":"22df7d77558b622e49597791c240ca3e394c1c4e23c595ceaaaf07588ad14ca6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/help_search.rs:129-143 | src/help_search.rs:198-211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/help_search.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8bbf4a14c90b57a0571f769c8adb625633bdaacbdec61a39ea5994a51e4c048"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/info.rs:80-94 | src/repo_capsule.rs:395-409 \u2014 before extracting anything, compare \u0060src/info.rs\u0060 and \u0060src/repo_capsule.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/info.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4d528d7955c1d4ca36c08190a3f95fa82c9c16f5bae26033d0fe7bee3e551a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/tasks.rs:805-819 | src/tasks.rs:853-867 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a8398d46805df48a69affdd4901fd35e79ae54e8804caf783a16188e2e26d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/workflow.rs:566-580 | src/workflow.rs:685-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":"src/workflow.rs"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce3d3ccbb8a644754a4a5cb746bc463c06c9e2121fd86a9b09bb5c9058e1f38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201314 lines \u00D7 5): src/commit.rs:5330-5332 | src/commit.rs:5881-5894 | src/commit.rs:6083-6095 | src/commit.rs:6230-6242 | src/commit.rs:6521-6534 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":5330}}}],"partialFingerprints":{"codehealthFindingId/v1":"794a61148bb42e609979350e8ae3a9855cf9fd2091c666249d0f8692f9eb2e6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/ai.rs:1642-1655 | src/ai.rs:1726-1739 | src/ai.rs:14072-14085 \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":"src/ai.rs"},"region":{"startLine":1642}}}],"partialFingerprints":{"codehealthFindingId/v1":"0126ab931834b060eb4b9a19a1761bd92fa468ef6c6319a10eaefa32488dfba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): src/ai.rs:3022-3033 | src/ai.rs:3082-3095 | src/ai.rs:15818-15829 \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":"src/ai.rs"},"region":{"startLine":3022}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf0ff1feb435708e4beb145d88958905bcd5b3aab7e4c9fbfe0ceebb4a027ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): src/env.rs:325-336 | src/env.rs:352-363 | src/env.rs:413-426 \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":"src/env.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"7676dbd5cc8a3a16d22f14a7da4fc8e47963b02715c18ab0cf651f8d781575b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/install.rs:903-916 | src/services.rs:484-497 | src/setup.rs:2966-2979 \u2014 before extracting anything, compare \u0060src/services.rs\u0060 and \u0060src/setup.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 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":"src/install.rs"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c6b879eef5fdbe2b79233161c06d6159b5ea7541eca0cbe80d2eba9f21cbb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): src/jd.rs:533-546 | src/jd.rs:551-563 | src/jd.rs:576-589 \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":"src/jd.rs"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2ef52e9280a4634592d550216681819638976322f2cc7d7b7c91d9def75fe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/ai.rs:1627-1640 | src/ai.rs:16232-16245 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"af90423a9d98bbfc6051a4934eaa3782903a2b6376f4b47030075ae6220cb8ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/ai_tasks.rs:755-768 | src/recipe.rs:461-474 \u2014 before extracting anything, compare \u0060src/ai_tasks.rs\u0060 and \u0060src/recipe.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 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":"src/ai_tasks.rs"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"100c5e066b4dcf3ad298a8b2732a7d41a46e1d99aedad9389cc7aaf9d215ce7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/commit.rs:252-265 | src/commit.rs:549-562 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3b3babc2cb2e5908e6d4a8350409a51394bc70f40310dd57065e2fbedec403"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/commit.rs:879-892 | src/commit.rs:1132-1145 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10e3e2d6130f5cf35bd2d9538f038a8115535f08ef9ff0081fd1c0bf2b62a9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src/commit.rs:5104-5117 | src/skills.rs:1158-1170 \u2014 before extracting anything, compare \u0060src/commit.rs\u0060 and \u0060src/skills.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":5104}}}],"partialFingerprints":{"codehealthFindingId/v1":"923d8e97420720104aacf9e56198074b4a32c78fa60d56782b622a08e873e6ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/commit.rs:8336-8349 | src/commit.rs:8352-8365 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":8336}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bee3923e21c53f208eac35b06a6d77281bd8048f8dad30f323e92dfa17fb514"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/commit.rs:8509-8522 | src/sync.rs:2635-2648 \u2014 before extracting anything, compare \u0060src/commit.rs\u0060 and \u0060src/sync.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 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":"src/commit.rs"},"region":{"startLine":8509}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f324945034c92beef985fcbabcd362a0a0be1e797877b50eeabe2d155f75ca6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/commit.rs:15295-15308 | src/commit.rs:15410-15423 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":15295}}}],"partialFingerprints":{"codehealthFindingId/v1":"e31c83c627de4192d391c35016059aa61f3021df7a1ff5aa1e38bd1cf7e1bfea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/config.rs:2817-2830 | src/config.rs:2852-2865 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config.rs"},"region":{"startLine":2817}}}],"partialFingerprints":{"codehealthFindingId/v1":"83039c52fd4a0faf6e8295a5aeaaa29627e67036da9378ef53e1d6ca32213a0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/deploy.rs:2234-2247 | src/deploy.rs:2422-2435 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":2234}}}],"partialFingerprints":{"codehealthFindingId/v1":"554ac364fedd8172a0386b7d87a4bbb54d21677cf098b84b45ff3110769b1145"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/deploy_setup.rs:55-68 | src/env_setup.rs:51-64 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2fca4d19beae390fde49ed5fb675eb35ee06da0b15a2ae29464541a2e8564e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): src/env.rs:2295-2306 | src/env.rs:2349-2362 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":2295}}}],"partialFingerprints":{"codehealthFindingId/v1":"24eb44f4d7b661281cb2808c77880a1778f4a5ae0393f2cf949b1712605cdb57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): src/ai.rs:4569-4581 | src/ai_project_manifest.rs:225-235 | src/codex_session_docs.rs:1763-1773 \u2014 before extracting anything, compare \u0060src/ai.rs\u0060 and \u0060src/codex_session_docs.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"src/ai.rs"},"region":{"startLine":4569}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c058d08e30426fa542556b2bbbd4687232d82e2af37c2bfb326581b5ebb15df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/ai_tasks.rs:738-750 | src/recipe.rs:412-424 | src/recipe.rs:444-456 \u2014 before extracting anything, compare \u0060src/ai_tasks.rs\u0060 and \u0060src/recipe.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 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":"src/ai_tasks.rs"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf44b2705c389ea0771e73b008d021db9ce4718558fb8e54e9f407494bd451d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): src/commit.rs:2138-2150 | src/commit.rs:2310-2321 | src/commit.rs:4574-4585 \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":"src/commit.rs"},"region":{"startLine":2138}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca34bfd33f4a2ce797cb2d1b289d0fe89bae2e5bb1ad7210901001b17b300302"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): src/jd.rs:594-605 | src/jd.rs:608-619 | src/jd.rs:623-635 \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":"src/jd.rs"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e693bd3948d107c9d6117eaa26a903f3e4fa47aced5139fa18899c22e4f58f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): src/log_server.rs:758-769 | src/log_server.rs:803-814 | src/log_server.rs:857-869 \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":"src/log_server.rs"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"3834c1a08d83eca567a35d41cfce4c14e32518c45a2761b4cb410072daeca663"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/server.rs:835-847 | src/server.rs:878-890 | src/server.rs:923-935 \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":"src/server.rs"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca28fb9c6d8b9f7a72920f32b2a36fbec6e205953c0d57b090845e0cb45e681"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/sync.rs:5518-5530 | src/sync.rs:5545-5557 | src/upstream.rs:603-615 \u2014 before extracting anything, compare \u0060src/sync.rs\u0060 and \u0060src/upstream.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":5518}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4fc8f5fde6bdd239e9959a7b4974e43e45ad84169b2abeb05427b354ad4271"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/ai.rs:1739-1751 | src/ai.rs:15932-15944 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"138cf0231e52faa01ac1c9853b3cd69818c53239918bc54c6fa090c34e6c3235"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/ai.rs:2997-3009 | src/ai.rs:3050-3062 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":2997}}}],"partialFingerprints":{"codehealthFindingId/v1":"6830b21f0455bcb8417580103bb91f40b417884edb21a95e097ade6f371e9ca6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/ai_project_manifest.rs:141-153 | src/project_snapshot.rs:267-279 \u2014 before extracting anything, compare \u0060src/ai_project_manifest.rs\u0060 and \u0060src/project_snapshot.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 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":"src/ai_project_manifest.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bcbd5ad2a2a345ad7752503c344fb1a513c0796f41de0f73cecbe33b2fe0e1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/commit.rs:668-680 | src/commit.rs:693-705 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec57b5e827cd89b2b30aad50f7ae43c47af522d2bd83a36b26429f17021c675"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/commit.rs:4746-4758 | src/commit.rs:4779-4791 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":4746}}}],"partialFingerprints":{"codehealthFindingId/v1":"416f55d1722db54d93a1a78a0c9fcd7cb9d81cfe21953419c459997587e03aaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/commit.rs:7798-7810 | src/commit.rs:9321-9333 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":7798}}}],"partialFingerprints":{"codehealthFindingId/v1":"8889eda68335069cb24292f502a6af1e64be3b932832a1a6d7baf0444643eb6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/commit.rs:12775-12787 | src/commit.rs:12837-12849 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":12775}}}],"partialFingerprints":{"codehealthFindingId/v1":"4624adc9dfeaf2f5ce0dd309e57a717b79960d895248a5ee2c6da535b815054e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/deploy.rs:2793-2805 | src/url_inspect.rs:964-976 \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":"src/deploy.rs"},"region":{"startLine":2793}}}],"partialFingerprints":{"codehealthFindingId/v1":"c90c0a1c881cb36241d964785abb105e6e20e2b8764fe2c2a1af7b6b142edfcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/deploy_setup.rs:571-583 | src/env_setup.rs:500-512 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4045e76dfc19906e8c2eab5c31617bb98c6abec9fc4cf7e7da6f6c547bde4fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/env.rs:1518-1530 | src/env.rs:1557-1569 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":1518}}}],"partialFingerprints":{"codehealthFindingId/v1":"312f3a5a7d3c4a32095d4dfd77d608c6f9e916a501cf30552e6ac196c051f92b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/env.rs:1612-1624 | src/env.rs:2535-2547 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":1612}}}],"partialFingerprints":{"codehealthFindingId/v1":"76dfb3a9ed45ff6f4599391c7170128d7cc32f30a0c107ed8ff2572c332b7e14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/env.rs:1960-1972 | src/env.rs:2168-2180 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":1960}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa8d63d7847ec9ed4d1c0eb0c5264acabefe2b9f728308d4930dec140b0cd14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/env.rs:2924-2935 | src/env.rs:2951-2963 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":2924}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d2e8367c3d25bd112fd8d052b535fd4fe67c3a0065f2cc73bf464e1cfed63d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/git_guard.rs:371-383 | src/jj.rs:3557-3569 \u2014 before extracting anything, compare \u0060src/git_guard.rs\u0060 and \u0060src/jj.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 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":"src/git_guard.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"49cc002b28ce3db07b05e14c786c6e5b263e4b2131fd18f1344a10d969f76ab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/gitignore_policy.rs:551-563 | src/gitignore_policy.rs:586-598 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/gitignore_policy.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c65420391a207e0d76847e5fe55f8c267c0c35549966d6047b38bbfbdf1b70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/repos.rs:64-76 | src/repos.rs:390-402 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/repos.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5b333e21bb3a11e8ea2d6deda050c08e0515ef34b82e74ec8180e1d06e9961"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/sync.rs:4562-4574 | src/sync.rs:5501-5513 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":4562}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a0013f486036dae903d67eb1e6677554f2e0eeb359348a7eb0116f1b1ef3fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): src/commit.rs:2152-2163 | src/commit.rs:2322-2333 | src/commit.rs:4586-4597 | src/commit.rs:7838-7849 | src/commit.rs:9361-9372 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":2152}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1295997290b123498cccde604e64a09ac3d0a99e7b3d986acc095c266ec4b62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 4): crates/flow_commit_scan/src/lib.rs:201-212 | src/commit.rs:251-262 | src/commit.rs:548-559 | src/commit.rs:6618-6628 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/flow_commit_scan/src/lib.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05424c48429fd56928ce01933efee1a52f362b68fe4cde7ee1a7e22508e2199"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/log_server.rs:493-504 | src/log_server.rs:521-532 | src/server.rs:391-402 | src/server.rs:419-430 \u2014 before extracting anything, compare \u0060src/log_server.rs\u0060 and \u0060src/server.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 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":"src/log_server.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f809c1b9ef963b0b5c092c9b4b4abf331c95dc5809276b32e01c172ad5463d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 4): src/publish.rs:900-911 | src/publish.rs:921-932 | src/services.rs:509-518 | src/setup.rs:2944-2953 \u2014 before extracting anything, compare \u0060src/services.rs\u0060 and \u0060src/setup.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 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":"src/publish.rs"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f4518d0f87ba1e1f54e91c6aadaf55e459a669a7e900393f82bd3e7bdd3bed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 4): src/sync_plan.rs:1042-1051 | src/sync_plan.rs:1395-1406 | src/updates.rs:1110-1119 | src/updates.rs:1310-1321 \u2014 before extracting anything, compare \u0060src/sync_plan.rs\u0060 and \u0060src/updates.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 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":"src/sync_plan.rs"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4464cfb73e7387c1887ba2dbe486da7c6879f82afbf354dd6a8bcb2b8ab7b24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): src/commit.rs:13324-13335 | src/commit.rs:13406-13416 | src/commit.rs:13680-13690 \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":"src/commit.rs"},"region":{"startLine":13324}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a66b9466f4e21392b39120cd36541545bde7846f5d61dffcc0373635742acaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/deploy.rs:2236-2247 | src/deploy.rs:2424-2435 | src/setup.rs:1185-1196 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":2236}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3beccd36b58ac1c0cef06e0c4c9ad22dec7358b1e833bb977be62eb35346b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/workflow.rs:796-807 | src/workflow.rs:835-846 | src/workflow.rs:992-1003 \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":"src/workflow.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f123c24528c64c248c315b40927d6a4a940c50bd8b76ffe46d3fb53a61e38a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/ai.rs:2603-2614 | src/codex_text.rs:43-54 \u2014 before extracting anything, compare \u0060src/ai.rs\u0060 and \u0060src/codex_text.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 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":"src/ai.rs"},"region":{"startLine":2603}}}],"partialFingerprints":{"codehealthFindingId/v1":"37519ab8cabd898a5b798c8667ea1c78b688d8e06f74e4e6aa12f0202c77ddad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/code.rs:278-289 | src/code.rs:593-604 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/code.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"213d553d101191a9c65d7f03c121a910c0468523c42b08f39b645839da09c90f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/codex_session_docs.rs:801-812 | src/codex_session_docs.rs:1194-1205 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_session_docs.rs"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77b70f13921d2361865f5d54cfbaf5651a66af4b766d032a9d3ba4265d0493b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/codex_skill_eval.rs:682-693 | src/history.rs:283-294 \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":"src/codex_skill_eval.rs"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33da13b4e51a856f756609e20cda18ef3d77448a103dd70ddc22a394491e65f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): src/commit.rs:845-853 | src/commit.rs:1077-1088 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"627926e78ae8c2342344d2e82828f3b070f1f78f7b662163f1eab488b8391450"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src/commit.rs:859-869 | src/commit.rs:1111-1122 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ae3a8dc378474d132c9f9701677eb91bbf6247f356c2ef72e18d1ff7b2287c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): src/commit.rs:895-903 | src/commit.rs:1094-1105 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa594d01d77cb3207d87fe6fa316e78eb4ad7ee7c3b884e28d69906e89592f8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/commit.rs:2467-2478 | src/commit.rs:2529-2540 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":2467}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00dc06543b8a403e42e8c68928d63e4ff3ed8e29c36a06b3e9e558b1340076b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/commit.rs:5221-5232 | src/commit.rs:5351-5362 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":5221}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c988dd1008f2600a10e5328194cae96ab0667d3eed5bdc5253b314c48cc7ab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/commit.rs:5911-5922 | src/invariants.rs:293-304 \u2014 before extracting anything, compare \u0060src/commit.rs\u0060 and \u0060src/invariants.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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":"src/commit.rs"},"region":{"startLine":5911}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe1b2ee718658fbd31405ff3608d3d771955a525cacd2445b5dcbbe6526d81a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/commit.rs:13652-13663 | src/todo.rs:287-298 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":13652}}}],"partialFingerprints":{"codehealthFindingId/v1":"373620792ccbb1b824477197db719f407f7f2cd97fa261978e7d1d0791eceafe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/commit.rs:13826-13837 | src/publish.rs:642-653 \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":"src/commit.rs"},"region":{"startLine":13826}}}],"partialFingerprints":{"codehealthFindingId/v1":"802f9b2bc74a6116b26919ca70f9fa0d3d21b947c74aa6e4dfbc6835e9d78351"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/commit.rs:14144-14155 | src/skills.rs:702-713 \u2014 before extracting anything, compare \u0060src/commit.rs\u0060 and \u0060src/skills.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":14144}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f161c4b8b3798187603925c015a73a1095dda34250b18c5b2d84fb4c6b17d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/deploy_setup.rs:594-605 | src/env_setup.rs:520-531 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"673623b584e4ed0eaaeb671df6c264c67cc6c3856e19008747bd4457c0b07411"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/deploy_setup.rs:608-619 | src/env_setup.rs:533-544 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6eff3e7cfbb9f0b6b9eefd2021d744a7eaa82e38774e49e6c4e81e4eed1ca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/deploy_setup.rs:1007-1018 | src/env_setup.rs:867-878 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bceae3952138e20fb315c37afc404ba444e59d3606f674e942cfabd26a1bcd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/failure.rs:579-590 | src/vcs.rs:56-67 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/failure.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c495cd12513da4456db5b9c90d4185ac8fd3832c30273bf6cf4fafe328c241f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/home.rs:723-734 | src/home.rs:758-769 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/home.rs"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dde627be1cf63de3c0ddbee66f2ec1711c92c31e34c0e0c89f2a36a72417546"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/log_server.rs:428-439 | src/server.rs:328-339 \u2014 before extracting anything, compare \u0060src/log_server.rs\u0060 and \u0060src/server.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 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":"src/log_server.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f8e913d88e8bf49f6a45353ed080ce84895d895263a249cb31fe410eca2dcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/log_server.rs:449-460 | src/server.rs:349-360 \u2014 before extracting anything, compare \u0060src/log_server.rs\u0060 and \u0060src/server.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 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":"src/log_server.rs"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed3995777ed1d9243116a81eb741eadf0d9c4ad3fe92acc9b33101580d20fa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/log_server.rs:575-586 | src/server.rs:472-483 \u2014 before extracting anything, compare \u0060src/log_server.rs\u0060 and \u0060src/server.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 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":"src/log_server.rs"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82b4ea07e42d06d60b7ab6bffe0de272c70986c829eec4979cb0b84f9a7453f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/setup.rs:1868-1879 | src/setup.rs:1925-1936 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup.rs"},"region":{"startLine":1868}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0cf615cf0ce9d6fdc8c4ffaf31a276fe5f15e439e10127237d05df3392f8a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/sync.rs:615-626 | src/sync.rs:792-803 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"919f259978bb2e13a8ba4ae2f896a5cce658c1976773c714e3f38e85ec3e93f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): src/push.rs:309-318 | src/sync.rs:5357-5368 \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":"src/push.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5578a833bf77b4f31578edaff18039a6598b37b2649231986679a9f717f4b75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src/todo.rs:463-474 | src/todo.rs:504-514 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/todo.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d60e408e22d4d516dcdbd0ccae9af8cf0d4e959207e0ad9887487ad3147b152"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): src/ai.rs:4568-4578 | src/ai.rs:12748-12757 | src/ai_project_manifest.rs:224-233 | src/codex_session_docs.rs:1762-1771 \u2014 before extracting anything, compare \u0060src/ai.rs\u0060 and \u0060src/codex_session_docs.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"src/ai.rs"},"region":{"startLine":4568}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b80a4709031ed6543b1ee9504a31e6f4b8689b691442476fc34e9b89fb1e589"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/changes.rs:705-715 | src/commit.rs:8574-8584 | src/env.rs:1042-1052 | src/sync.rs:2547-2557 \u2014 before extracting anything, compare \u0060src/changes.rs\u0060 and \u0060src/env.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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":"src/changes.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5ccca10bf4a9ba445c521975043064529a1bb327d78041ff4fa01ffa2e8ddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/commit.rs:2303-2313 | src/commit.rs:4567-4577 | src/commit.rs:7820-7830 | src/commit.rs:9343-9353 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":2303}}}],"partialFingerprints":{"codehealthFindingId/v1":"be303771ab3f238dbbfbdade8fa78b4835ca7c00d5372b04712dc32897dba2a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/ai.rs:3431-3441 | src/ai.rs:16034-16044 | src/code.rs:1511-1521 \u2014 before extracting anything, compare \u0060src/ai.rs\u0060 and \u0060src/code.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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":"src/ai.rs"},"region":{"startLine":3431}}}],"partialFingerprints":{"codehealthFindingId/v1":"be69d493243ab922e308c7e77666af8f8d18448771ece2fb2cfdfdd32e287448"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/archive.rs:127-137 | src/code.rs:862-872 | src/ext.rs:207-217 \u2014 before extracting anything, compare \u0060src/archive.rs\u0060 and \u0060src/code.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"src/archive.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"2878f0a3f285dcfcf1da6a373f46cbf7aead83fc4102bf7040b0c905200d6b8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/archive.rs:140-150 | src/code.rs:875-885 | src/ext.rs:220-230 \u2014 before extracting anything, compare \u0060src/archive.rs\u0060 and \u0060src/code.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"src/archive.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e44495ac9279d41e0486ad3b6187193da2784387dcb91c55d8e639b78f4b39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): src/commit.rs:7447-7457 | src/failure.rs:741-751 | src/sync.rs:3104-3113 \u2014 before extracting anything, compare \u0060src/commit.rs\u0060 and \u0060src/failure.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 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":"src/commit.rs"},"region":{"startLine":7447}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de4c95e5d650da755bec56b4f92ca502b22cfa79cb8e1f3c1f80917fa1bede5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/env.rs:1520-1530 | src/env.rs:1559-1569 | src/env.rs:3776-3786 \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":"src/env.rs"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"1acb2addf6383fb9bb50c4f7e74da34064caaea268f7b6bb4ae9c75035a1c487"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/ext.rs:369-379 | src/jj.rs:3367-3377 | src/sync.rs:4577-4587 \u2014 before extracting anything, compare \u0060src/ext.rs\u0060 and \u0060src/jj.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 51 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":"src/ext.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"1812589bdd52683597ea37d6c5183e7af8c341be9b52262a672b3c1c22797e1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/sync.rs:1014-1024 | src/sync.rs:1115-1125 | src/sync.rs:5862-5872 \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":"src/sync.rs"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"808a5bb0cb1eae4740be984c50acdefaf831196ca2ae4d071d2584bca711d26d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ai.rs:1497-1507 | src/ai.rs:1512-1522 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"8459527410c957ea277fd248668da2df408821b0b43f5f24e8004f3646e70d7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ai.rs:5691-5701 | src/ai.rs:5767-5777 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":5691}}}],"partialFingerprints":{"codehealthFindingId/v1":"90dab51a3c5600b44e80ff5156a812e4db767fb11cbf5bd029a743dd0e92e1a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/code.rs:344-354 | src/code.rs:364-374 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/code.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"7645d58cebc5f112fc679af701660d706119a0cba63051f7b5cfd9c19503d50b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/codex_skill_eval.rs:147-157 | src/codex_skill_eval.rs:185-195 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_skill_eval.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2049947920cab86e2f5ac51c2eafd75da622cf0a797547249d75f5481181c32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/commit.rs:916-926 | src/commit.rs:1195-1205 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"588faa730832929f5bd813824dffff3aa682f1f0a2e7c4663de7bf2c01cb852a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/commit.rs:953-963 | src/commit.rs:1232-1242 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c5fd98542dcc2037fe8fd8b2f945d6a633e93c978f00aa2bad79cfef76a224"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/commit.rs:2767-2777 | src/commit.rs:2812-2822 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":2767}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15343c0e5b7f6f49987a8c850d93ee40b129e7526b45a3b609f851447874ee5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): src/commit.rs:5995-6003 | src/commit.rs:12256-12266 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":5995}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5b4670da3fc13c523a3b80d995f6872780b4ed40760a34c4e51a2c2a827963"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/commit.rs:8496-8506 | src/release_signing.rs:218-228 \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":"src/commit.rs"},"region":{"startLine":8496}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2fbe8c58b5e23f36f34280d0ed9555d3ae7cb08f7fbae10fd244a541e5fd91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/commit.rs:10995-11005 | src/commit.rs:11332-11342 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":10995}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32ac685118f44f2faf9e3197663bdd0bbe523b6104deb445edf931c8f40b05a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): src/commit.rs:11550-11560 | src/repos.rs:102-110 \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":"src/commit.rs"},"region":{"startLine":11550}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b715d7729919302f32e13e13f111272f61d02c1dd5ecc8886696dea368c62e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/commit.rs:12307-12317 | src/commit.rs:12329-12339 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":12307}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb882d8e5e645130683a70c26d1776291be6cea30d8c9dd6fcf99511c045882"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/commit.rs:12344-12354 | src/commit.rs:12458-12468 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":12344}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d92f31f426b8749982eb705e0206495253063cf8166a2fd841fee7c2df3388"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/deploy.rs:2780-2790 | src/url_inspect.rs:951-961 \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":"src/deploy.rs"},"region":{"startLine":2780}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8dda14efb872b29d311b55952ba3b23fcc3d21fba76cae2c13ad65667274acc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/deploy_setup.rs:855-865 | src/env_setup.rs:754-764 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e1fabb2bdb2fd7796f1624d7dbf6a4139d3de1fd214cfb1f67e81fe51a0292"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/domains.rs:257-267 | src/domains.rs:683-693 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/domains.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d44be48a442836bbc5b81f5b8c923666883c64ac0e72c2b84b04bf492cd002"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/env.rs:1647-1657 | src/env.rs:2346-2356 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":1647}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcfa82418849c7e2d4041e85898eef3284a1cd0610b6b82bff683854885cca4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): src/failure.rs:577-587 | src/failure.rs:630-637 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/failure.rs"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd11f42f3bff88abdea2f40448df74faaadeb3531b28f12ebabb66a96cedddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/gitignore_policy.rs:378-388 | src/push_hook.rs:231-241 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/gitignore_policy.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0fd09a63236ede91cc5b0b284f116018a52ca58a16c96d3e44b4f8e4e68a38d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/help_search.rs:83-93 | src/publish.rs:91-101 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/help_search.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59d0b961294d702c3cdfd1bc09154b483ac9a36a5dbb9d4489ef96426420905"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/hive.rs:207-217 | src/hive.rs:235-245 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hive.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"e77bf9e124b820920aae1430d1312504e09caa4e5a35b555b345acc1dea32289"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/log_server.rs:363-373 | src/server.rs:263-273 \u2014 before extracting anything, compare \u0060src/log_server.rs\u0060 and \u0060src/server.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 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":"src/log_server.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"07603d6e58cce0af38a850896fa7a8f64e4b3414b396fe4c8ffadecfd2c89343"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/notify.rs:56-66 | src/notify.rs:148-158 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/notify.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"887c031ff866d962007734cbca78aa4437e2b9070dd2598b1a5392e021252fc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/rl_signals.rs:96-106 | src/rl_signals.rs:111-121 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rl_signals.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"73706ee93e35276c9d38b3c230b541f7b60db243f3fb96653ec8bb8bf4bf87fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/setup.rs:589-599 | src/setup.rs:664-674 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup.rs"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ef8716e3bdde31722b7a6485202fbd32cb9f8082cde348b3531d4fd02365d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ssh.rs:332-342 | src/ssh.rs:351-361 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ssh.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36331e50e39fe8b9bdbdf1e86a5ee196cc6ff847e2cb181d84ef43f68779d9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/sync.rs:2345-2355 | src/sync.rs:4012-4022 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":2345}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c13a66f34fbd097bbb5a72c11a539ba235acda9ebf314b50dda4a3544566fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/push.rs:113-123 | src/push.rs:128-138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/push.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3e68e1262ee2b8dec7ace61271770ace365442ee9202a9f4bdfa0b3bcccab6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): src/commit.rs:928-937 | src/commit.rs:940-949 | src/commit.rs:952-961 | src/commit.rs:1207-1216 | src/commit.rs:1219-1228 | src/commit.rs:1231-1240 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03cc5ea8cf71dc25e9d6d946b9149e865e9a5dd95b554a3c75b3a0f42fa46cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): src/ai.rs:9804-9812 | src/ai.rs:9821-9829 | src/codex_session_docs.rs:973-981 | src/usage.rs:604-613 \u2014 before extracting anything, compare \u0060src/ai.rs\u0060 and \u0060src/codex_session_docs.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"src/ai.rs"},"region":{"startLine":9804}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2449225840aa69681c197329e5db1b99f5ca4d3ab7252c34ce2cf28a28f64c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): src/ai.rs:14154-14163 | src/commit.rs:7450-7459 | src/failure.rs:744-753 | src/sync.rs:3107-3115 \u2014 before extracting anything, compare \u0060src/ai.rs\u0060 and \u0060src/commit.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 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":"src/ai.rs"},"region":{"startLine":14154}}}],"partialFingerprints":{"codehealthFindingId/v1":"1143ba66e504e9ce258f7e8ef0c53c42028ba43f8b1cd9f8a7628291eca9e976"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/ai.rs:3993-4002 | src/ai.rs:13354-13363 | src/ai.rs:13912-13921 \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":"src/ai.rs"},"region":{"startLine":3993}}}],"partialFingerprints":{"codehealthFindingId/v1":"87beb0898555e5d2353dffdee9f6e1c347d47fdd70a103aca9117441b5c9664b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/env.rs:1616-1625 | src/env.rs:2539-2548 | src/env.rs:4043-4052 \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":"src/env.rs"},"region":{"startLine":1616}}}],"partialFingerprints":{"codehealthFindingId/v1":"111d0d6644102fcaef6a3fff4cebe77d79765c363ed5bae43598d08085730ec3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/sync_plan.rs:1628-1637 | src/sync_plan.rs:1732-1741 | src/updates.rs:1461-1470 \u2014 before extracting anything, compare \u0060src/sync_plan.rs\u0060 and \u0060src/updates.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 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":"src/sync_plan.rs"},"region":{"startLine":1628}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc12095416878706fd2f218058ce46df352ba0728b5dd165a0b818df50eb7c2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/tasks.rs:2622-2631 | src/tasks.rs:2886-2895 | src/tasks.rs:2933-2942 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":2622}}}],"partialFingerprints":{"codehealthFindingId/v1":"825a2114752e3b47483696d14d70b089ed31ea17ebec870bb51feeaab2ef006c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/seq_everruns_bridge/src/maple.rs:422-431 | crates/seq_everruns_bridge/src/maple.rs:441-450 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/seq_everruns_bridge/src/maple.rs"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ffa1f2505136d14b5128a916cd55da5a41ea9b48f7b655b5aea555a98524d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ai.rs:10922-10931 | src/ai.rs:10953-10962 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":10922}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e54f2bb100740a0f627b87fc0fe69a21c8d4477397cd20c220948c33074fc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ai.rs:13311-13320 | src/ai.rs:13873-13882 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":13311}}}],"partialFingerprints":{"codehealthFindingId/v1":"0483cd4ab886193c74d9533902c2f4d5b209c65a1650bfe61968a3278d9968d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/code.rs:75-85 | src/ssh.rs:396-405 \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":"src/code.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb51d96227657ddbf3f57143defba6f0044e4c9f44994e72d4a5edf20322be0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src/code.rs:67-75 | src/tasks.rs:743-752 \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":"src/code.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c00f08a7c0a095835249a3a072aa26ba22678c376a71184045f8d1382d4ffb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/code.rs:1056-1065 | src/code.rs:1137-1146 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/code.rs"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dbdadc83915ffc2458fa9298fdee730e2045a5793189550805747b579161a1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/codex_skill_eval.rs:429-438 | src/codex_skill_eval.rs:444-453 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_skill_eval.rs"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"03518e89d4b2ae8e3b152b23d6c43353a916ff445e8908ab9acb9272c22185c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/commit.rs:9616-9625 | src/commit.rs:11722-11731 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":9616}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbdf2c1336bb3c3d4f7a7e1b00aebf038b5697672330641ebec03d8665ca2db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/commit.rs:12567-12576 | src/sync.rs:5470-5479 \u2014 before extracting anything, compare \u0060src/commit.rs\u0060 and \u0060src/sync.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 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":"src/commit.rs"},"region":{"startLine":12567}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc831b207c496db69ac36a33716ca24938cfc647a4f26688e8453008a099669"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/env.rs:1647-1657 | src/env.rs:1843-1852 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":1647}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd1b349255d9193fd028cc4f0843f8f9d3b1341fe31a86e7fe1d48acbb1a298"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/env.rs:3985-3994 | src/env.rs:4109-4118 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":3985}}}],"partialFingerprints":{"codehealthFindingId/v1":"1489cbabdf4dbe5e14aa65ef5acd9b4774d2c603e99acefc7bb51dd03c7f61e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/git_guard.rs:427-436 | src/undo.rs:60-69 \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":"src/git_guard.rs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"564a96655a48d729e8e27e0821f216ce001113f1a2e18faf21b40bfeb1afc604"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/history.rs:87-96 | src/history.rs:126-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/history.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"723a61e4a10d2152c89177e2117065e1b0c2d26f5b85ef54395bc2c9847f61e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/jd.rs:642-651 | src/supervisor.rs:1247-1256 \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":"src/jd.rs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a71569b77bfa3eeb4c53ba6d1466c64a8b7e2bb473195fea49be368e1940f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ext.rs:387-396 | src/jj.rs:3385-3394 \u2014 before extracting anything, compare \u0060src/ext.rs\u0060 and \u0060src/jj.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 51 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":"src/ext.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a49793dc9e49e16941f78b759a9c799a09ec050152a621c17409815733be91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/publish.rs:673-682 | src/push.rs:321-330 \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":"src/publish.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7701c4717d9a79626b3e10c86ecba233961d863ac629702b00dac0e6df92da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/setup.rs:963-972 | src/setup.rs:988-997 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup.rs"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"28461a790d795074c71bca9225ff5354a1015b100839117a279fb21aaca7beb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src/setup.rs:2483-2492 | src/setup.rs:2668-2676 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup.rs"},"region":{"startLine":2483}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccbbccb5a52a3d633ba054ec301eafec3981bba3a064b5232a61652c8f31da19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/supervisor.rs:110-119 | src/supervisor.rs:136-145 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/supervisor.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"094dd6b832a825cbd46bd9a96c49056804309bc865a8c9d58f235816d1f4b2ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/supervisor.rs:579-588 | src/supervisor.rs:601-610 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/supervisor.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"7484eb10eb850e2fd69ab6e400898b63461f0dd7e8070b35618f3ed5c6415def"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/sync.rs:5452-5461 | src/sync.rs:5478-5487 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":5452}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a72f0f3137a3845ebc01eed8ff3577d0ae4e4fec17b853a1f13459998993839"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/sync_plan.rs:1221-1230 | src/updates.rs:1193-1202 \u2014 before extracting anything, compare \u0060src/sync_plan.rs\u0060 and \u0060src/updates.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 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":"src/sync_plan.rs"},"region":{"startLine":1221}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d085cd117a515a8944baafc1e76f25aef162aab0ff26399d03051e8cedf1707"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/processes.rs:228-237 | src/tasks.rs:1542-1551 \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":"src/processes.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"3721fd324c3da73db0d2b8ee440b53438be5409fe9016edc75671aff4c9ee4d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/traces.rs:170-179 | src/traces.rs:260-269 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/traces.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"73cc43f04451344b4c8c6bd8fce023a86be8f1fe7a09e417961770fb108bb0c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 20): src/log_server.rs:383-391 | src/log_server.rs:405-413 | src/log_server.rs:426-434 | src/log_server.rs:447-455 | src/log_server.rs:468-476 | src/log_server.rs:542-550 | src/log_server.rs:573-581 | src/log_server.rs:597-605 | src/log_server.rs:621-629 | src/log_server.rs:801-809 | src/server.rs:283-291 | src/server.rs:305-313 | src/server.rs:326-334 | src/server.rs:347-355 | src/server.rs:368-376 | src/server.rs:440-448 | src/server.rs:470-478 | src/server.rs:494-502 | src/server.rs:516-524 | src/server.rs:540-548 \u2014 before extracting anything, compare \u0060src/log_server.rs\u0060 and \u0060src/server.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 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":"src/log_server.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a26af7ee04e4333cf3cc651795d1d9a3ec72f6c9c540009f94abd5b7e8e96cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 9): src/env.rs:1449-1457 | src/env.rs:1483-1491 | src/env.rs:1534-1542 | src/env.rs:1573-1581 | src/env.rs:1619-1627 | src/env.rs:1663-1671 | src/env.rs:1791-1799 | src/env.rs:2542-2550 | src/env.rs:4046-4054 \u2014 all 9 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":"src/env.rs"},"region":{"startLine":1449}}}],"partialFingerprints":{"codehealthFindingId/v1":"221935a6f6fc972f159d76841bd3477052523725a0666c140b9f3266185771d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): src/code.rs:410-418 | src/code.rs:1509-1517 | src/web.rs:287-294 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/code.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d38f7b17afbbaedb9f141d911e933f02fee15dc4f038d4bc608bbbe3d935a90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): src/commit.rs:12573-12581 | src/ext.rs:399-406 | src/repos.rs:1514-1521 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":12573}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea660de43978fef27dabcf31a6640c34fd3b323f425bbcbb79629556dc1720c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/skills.rs:1387-1396 | src/skills.rs:1402-1410 | src/skills.rs:1416-1424 \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":"src/skills.rs"},"region":{"startLine":1387}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5730bb6f55e6271bd591be4ec545a2714f5cd9f11293656156e26f1c826621"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ai.rs:2592-2600 | src/codex_text.rs:5-13 \u2014 before extracting anything, compare \u0060src/ai.rs\u0060 and \u0060src/codex_text.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 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":"src/ai.rs"},"region":{"startLine":2592}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4951e4ac6c5a1844ff58a63c8707847bfef2579f52030ab2d590da7bbee63ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ai.rs:7090-7098 | src/ai.rs:7225-7233 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":7090}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ff5faac2b23ffa16c9b8c320d3dcba92e5c5cce8ade04d19ec65dc459158a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ai.rs:15660-15668 | src/ai.rs:15722-15730 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":15660}}}],"partialFingerprints":{"codehealthFindingId/v1":"5033b8968edb0058e54b430657b43c1f9bc1a5b082a97136341ca045df760a40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ai_server.rs:175-183 | src/health.rs:138-146 \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":"src/ai_server.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b1b3e68698758c7992626e325777da0d8e2710c6630294826bcf9e352f97a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ai_taskd.rs:771-779 | src/ai_taskd.rs:801-809 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_taskd.rs"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"30afd2fe86c6108df5bc574d394ceeb0ef1b4e3a408ae111527fa70d374303dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ai_taskd.rs:783-791 | src/ai_taskd.rs:813-821 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_taskd.rs"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca741ee17f4f96eb99858b748168f1b6096f8f6851b28e51d4b0dac5c2fbd88e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/ask.rs:525-533 | src/task_match.rs:40-47 \u2014 before extracting anything, compare \u0060src/ask.rs\u0060 and \u0060src/task_match.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 150 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":"src/ask.rs"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4ac487c47cc6d3b6fed15fee56c6e3e2e11092d504d519e97037bcaf1b6582"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/codex_memory.rs:1487-1495 | src/codex_memory.rs:1571-1579 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_memory.rs"},"region":{"startLine":1487}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac14267fdf2f26e26b18e054a6ac081dbd38638439e94c12de279617f28514d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/codex_runtime.rs:853-861 | src/codex_runtime.rs:883-891 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_runtime.rs"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9d70a83f9ea69e6489184852e84c69c1dbe289b350e9794607edfda4ce04b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/codex_skill_eval.rs:129-137 | src/codex_skill_eval.rs:164-172 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_skill_eval.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d58b4bdf716d50019f78cf61cc8e74f56f22d8b1fa027b7906b20332a9b0e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/codex_telemetry.rs:653-661 | src/codex_telemetry.rs:751-759 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_telemetry.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba3ef9f02e9daad851564eee7b326af8fe96c4df4b6c8d293e391273c267ec2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/commit.rs:6499-6507 | src/commit.rs:12808-12816 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":6499}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a967b28974588b72a2e7054ada9adceeb2e31af5c20623bdb0b937d6394500"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/commit.rs:12551-12559 | src/commit.rs:12575-12583 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":12551}}}],"partialFingerprints":{"codehealthFindingId/v1":"9908b48e7dadca1810e8f3590f3430c46259b35b651e451f7e2b4a88be7a2405"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 2): src/commit.rs:15278-15283 | src/commit.rs:15376-15384 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":15278}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0e0d5487385144015bc43e0c40fe4e2a2f4180969aab0242b8076b269a4545"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/commit.rs:15285-15293 | src/commit.rs:15395-15408 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":15285}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f48e012ae74091ccfb614c3aa574bdcac431102b87ef78ee9c5c40cbcc5d533"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/deploy.rs:2213-2221 | src/deploy.rs:2249-2257 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":2213}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9879d6c91778d9765ef3946595e526ba7e0ddb71fba5f00bac53ec50a29e874"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/deploy_setup.rs:273-281 | src/env_setup.rs:244-252 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeebe3b8ab57b21dedef1ba73c4c1cf9e5fa1e3a89e9cf2940e7bb92eba3f9c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/env.rs:3399-3407 | src/env.rs:3503-3511 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":3399}}}],"partialFingerprints":{"codehealthFindingId/v1":"f205e893589e46e56268a0b3a9cc40ed5b09e49787e224b2e855524cba8b1ba9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/explain_commits.rs:103-111 | src/sync.rs:5476-5484 \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":"src/explain_commits.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfcf392ac0f6aa8018faa29803893ecab2642b13e10298aa4dbe4f6d31ad17ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/info.rs:112-120 | src/repo_capsule.rs:924-932 \u2014 before extracting anything, compare \u0060src/info.rs\u0060 and \u0060src/repo_capsule.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/info.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a907f4850b471cee91b5a97e4a2fdaeaa438ee024d127a3e21e4a68a0c890b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/install.rs:930-938 | src/registry.rs:657-665 \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":"src/install.rs"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"147c6b12d6cabb1d06f102fec1549c396ea2cb93be86b54b23dc89b6d16e5a75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/ext.rs:330-337 | src/jj.rs:3590-3598 \u2014 before extracting anything, compare \u0060src/ext.rs\u0060 and \u0060src/jj.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 51 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":"src/ext.rs"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"098095686fe144cfd22f81c13143cd1fd36990c7a166c72e4f4d57d30ea12408"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/macos.rs:236-243 | src/macos.rs:245-253 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/macos.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"a500c8be4f5917fe94052c4e7f7044cb59640836d6ee5e70d4d1af017e811e5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/macos.rs:309-317 | src/macos.rs:367-375 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/macos.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f2202202bf9be6853782d701bc356ae462f31400cf90d5418c7d78a4edb6c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/gh_release.rs:110-118 | src/publish.rs:303-311 \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":"src/gh_release.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31818d6da70bb90469a50fa2d80f6c2172a2a5f3a3f3dd356190b63d23a6421"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/publish.rs:297-305 | src/publish.rs:460-468 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/publish.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c81facc5b79104c01e47582a25fb0881c7ed29f2086e7d3e26b6fe54369e34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/skills.rs:572-580 | src/tools.rs:240-248 \u2014 before extracting anything, compare \u0060src/skills.rs\u0060 and \u0060src/tools.rs\u0060 as WHOLE FILES: this scan already matched 4 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. 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":"src/skills.rs"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a93642e7e52fa83e53ee4ad10bd1dba8c32277389aab2657bcedfcc5fe51526"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/sync.rs:5798-5806 | src/upstream.rs:650-658 \u2014 before extracting anything, compare \u0060src/sync.rs\u0060 and \u0060src/upstream.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":5798}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9aff757435325e279cc5b579552ab4ad823c83f676a428b641d0096a47340c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/tasks.rs:938-946 | src/tasks.rs:949-957 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"29aa68627bc310f67b3ad209a447b0e796f48b3172fd6de7a1ec3c0a1cd6ac1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/trace.rs:158-165 | src/trace.rs:260-268 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/trace.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f901f0b9e2f2009953862e6f84558ade62ede7363e8a09a7aec5aa3e6919e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 9): src/agents.rs:228-235 | src/agents.rs:394-401 | src/agents.rs:500-507 | src/ai.rs:4099-4106 | src/code.rs:487-494 | src/commits.rs:292-299 | src/deps.rs:720-727 | src/palette.rs:39-46 | src/repos.rs:324-331 \u2014 before extracting anything, compare \u0060src/agents.rs\u0060 and \u0060src/palette.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 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":"src/agents.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"f428ef0abb47aa579aa1f220cd09198d5967088781236bc82aa716da2ac4b13d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): src/ai.rs:3431-3438 | src/ai.rs:16034-16041 | src/code.rs:412-419 | src/code.rs:1511-1518 | src/web.rs:288-295 \u2014 before extracting anything, compare \u0060src/ai.rs\u0060 and \u0060src/code.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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":"src/ai.rs"},"region":{"startLine":3431}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d27b6e09a64073236009b2341b3769ddc2626d45eecaf6b1f8a81556b37447f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/explain_commits.rs:105-112 | src/sync.rs:5452-5459 | src/sync.rs:5478-5485 | src/upstream.rs:588-595 \u2014 before extracting anything, compare \u0060src/sync.rs\u0060 and \u0060src/upstream.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/explain_commits.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"523d501acb90096f93374b68ee6ffe6dd01f85f707336e97131a5a372fc69625"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): src/jj.rs:3397-3403 | src/sync_plan.rs:1758-1764 | src/updates.rs:1487-1494 | src/updates.rs:1502-1508 \u2014 before extracting anything, compare \u0060src/sync_plan.rs\u0060 and \u0060src/updates.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 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":"src/jj.rs"},"region":{"startLine":3397}}}],"partialFingerprints":{"codehealthFindingId/v1":"edfc7534f5895c70063ea6a0f910f953a78e78f2b448ab4675803c9b6eb10b69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/env.rs:2297-2304 | src/env.rs:2353-2360 | src/env.rs:3497-3504 \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":"src/env.rs"},"region":{"startLine":2297}}}],"partialFingerprints":{"codehealthFindingId/v1":"55cc4d0c75892cae876ec09509c616867cb5eeccc075b1055aabe0922acb26cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/failure.rs:632-639 | src/jj.rs:1741-1748 | src/jj.rs:2398-2405 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/failure.rs"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d837305f93b0ad88eb8676dccd3bafcd869dce9c1ee60440e3ff40fc980b96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/server.rs:824-831 | src/server.rs:867-874 | src/server.rs:912-919 \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":"src/server.rs"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06fbf6f2227c0dbe246730f900375675da2979eced66673ccc0a2e1d2506bd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/ext.rs:417-424 | src/services.rs:513-520 | src/setup.rs:2948-2955 \u2014 before extracting anything, compare \u0060src/services.rs\u0060 and \u0060src/setup.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 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":"src/ext.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"3402e487315b34140ca07773553f66505a4484192a5a9e342f46d3e4cb1cae1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/trace.rs:73-80 | src/trace.rs:158-165 | src/trace.rs:260-267 \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":"src/trace.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c7f7bdea3e6b524e82a3defa4dc2248ec2ca91aedabe4c591ed468699d42b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/agents.rs:539-546 | src/palette.rs:134-141 \u2014 before extracting anything, compare \u0060src/agents.rs\u0060 and \u0060src/palette.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 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":"src/agents.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb7a29f46cfbad63942fa5d092bbdd7b1b85bac98506dc033044dd7028c9b61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/ai.rs:2080-2087 | src/ai.rs:3260-3267 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":2080}}}],"partialFingerprints":{"codehealthFindingId/v1":"004bb6f27a70566e9e2802d3d0fb72d5c388536f781aa3049e9260b859aea1ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/ai.rs:4506-4513 | src/ai.rs:5568-5575 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":4506}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ea16bde862b3708025df54785b077d7ad13770d84ef701cbd8265f13bf7181"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/ai.rs:7065-7072 | src/ai.rs:7200-7207 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":7065}}}],"partialFingerprints":{"codehealthFindingId/v1":"d412799f53b9364b0d76788063d4e5abb6333df253c436dd5149f065b068c46d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/ask.rs:288-295 | src/commit.rs:2952-2958 \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":"src/ask.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9cade6787ae94422157f97c19972a39e8f789c4a3616157ac113cb3e35e61a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/branches.rs:365-371 | src/commit.rs:12550-12557 \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":"src/branches.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac8b729b50a4f1740d31b8144144fc6518e610cc02aee3508a317954d3c8bd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/commit.rs:3407-3414 | src/invariants.rs:182-189 \u2014 before extracting anything, compare \u0060src/commit.rs\u0060 and \u0060src/invariants.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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":"src/commit.rs"},"region":{"startLine":3407}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f6a75fdbafc423e55861aa9b50cf020da95f928a16247ccefad4b0e29b66f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/commit.rs:9469-9476 | src/commit.rs:9516-9522 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":9469}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f00bbd6607ec95678f2544aec80b135e4a704ca4a2a3348520acaa2695bc1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/commit.rs:11995-12002 | src/commit.rs:12007-12014 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":11995}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ca02defafcb22f24d21020a7bbaaade11dc10343c99d74b7125e1773cd45fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/commit.rs:12871-12878 | src/commit.rs:12956-12963 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":12871}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba26a0389d8ea1643ed03451d4e346141935b559075098508e8bc1be6ac6f8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/commit.rs:13958-13965 | src/commit.rs:14262-14269 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":13958}}}],"partialFingerprints":{"codehealthFindingId/v1":"0164dcc9809f0d20ada8a989acb2f81259ad13fb67914eba1ece12135e03ed51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/deploy.rs:312-319 | src/deploy.rs:423-430 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ec9777cb98fd11d8bf88a2f5af89beb4c3666d5e63ea4259525575f6648318"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/deploy.rs:1251-1258 | src/deploy.rs:2700-2707 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf190b0244e43454c12d60340982d6cdaf2517c7c8afefa1d017e2cf5cd36b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/deploy_setup.rs:418-425 | src/env_setup.rs:378-385 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"91abf40864a4c25039b38bd92fdadd53021b1e483cd8605bdaed1f83bc130795"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/info.rs:189-196 | src/repo_capsule.rs:977-984 \u2014 before extracting anything, compare \u0060src/info.rs\u0060 and \u0060src/repo_capsule.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/info.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"c819467b8df8d407dc96e3e39a8ddc6d59c7d4b5ac353dedc049e70bb2f68734"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/fish_install.rs:146-153 | src/install.rs:952-959 \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":"src/fish_install.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae498f47b3a9debec1ee85d07cb3042352bf99152e2b743a1d49bdeb77232c4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/log_server.rs:681-688 | src/server.rs:1218-1225 \u2014 before extracting anything, compare \u0060src/log_server.rs\u0060 and \u0060src/server.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 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":"src/log_server.rs"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09341b26ed615c48507e1e34649d67b7bd61134491e4cf302b0efb9c35fa4d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/publish.rs:719-726 | src/push.rs:349-356 \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":"src/publish.rs"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"65197a4bde4404cb51c2803658ae3eeb357229725290a5667bcdfd2b8c5cf819"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/push_hook.rs:216-223 | src/recipe.rs:679-685 \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":"src/push_hook.rs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"4196aaa35acd446902fcd1567c992bc718a4eca74c0bf0cb9952e1a299a19929"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/sync.rs:4921-4928 | src/sync.rs:5012-5019 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":4921}}}],"partialFingerprints":{"codehealthFindingId/v1":"c358022a69eab88c623a09742c2900776e9578453e26bf795e2dc2987c69daa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/tasks.rs:1198-1205 | src/tasks.rs:1218-1225 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"306457e0ddd1389639e4f49beb80ce6ffa89f4589ce895121f421321ab445781"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/tasks.rs:2258-2265 | src/tasks.rs:2381-2390 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":2258}}}],"partialFingerprints":{"codehealthFindingId/v1":"536e34448acd80874ea319a8bed070133eea31d5b3785862dc1dc8ac612e48a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/gh_release.rs:310-317 | src/gh_release.rs:333-340 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/gh_release.rs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"d94e9295245a4b2f9ab0ba9fa58b88325dc2ee992496e5240bac6c75afb6eab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/jazz_state.rs:106-113 | src/jazz_state_stub.rs:26-33 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jazz_state.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb3974d6b556ddf2c12f2cd627a58aa8f75e1e3472126d77b2d0cf542ab59d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/sealer_crypto.rs:47-54 | src/sealer_crypto.rs:66-73 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sealer_crypto.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fe99f22e6f010a7a82a9215729ceccc71f06198c10ff468d4d5b5253507d69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/flow_commit_scan/src/lib.rs:165-171 | crates/flow_commit_scan/src/lib.rs:173-180 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/flow_commit_scan/src/lib.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c57ed79e58433d27e00f1b2be7c934fb04ea842c5d522b641fd14fc51c0d39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 26): src/log_server.rs:385-391 | src/log_server.rs:407-413 | src/log_server.rs:428-434 | src/log_server.rs:449-455 | src/log_server.rs:470-476 | src/log_server.rs:498-504 | src/log_server.rs:526-532 | src/log_server.rs:544-550 | src/log_server.rs:575-581 | src/log_server.rs:599-605 | src/log_server.rs:623-629 | src/log_server.rs:758-764 | src/log_server.rs:803-809 | src/log_server.rs:856-864 | src/server.rs:285-291 | src/server.rs:307-313 | src/server.rs:328-334 | src/server.rs:349-355 | src/server.rs:370-376 | src/server.rs:396-402 | src/server.rs:424-430 | src/server.rs:442-448 | src/server.rs:472-478 | src/server.rs:496-502 | src/server.rs:518-524 | src/server.rs:542-548 \u2014 before extracting anything, compare \u0060src/log_server.rs\u0060 and \u0060src/server.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 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":"src/log_server.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5c11b85da286ca4f152285b62bacfc5869f09b9be7c113a12b53f3bd12c032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 6): src/explain_commits.rs:109-115 | src/fix.rs:280-285 | src/jj.rs:3402-3407 | src/sync_plan.rs:1763-1768 | src/updates.rs:1493-1499 | src/upstream.rs:592-598 \u2014 before extracting anything, compare \u0060src/sync_plan.rs\u0060 and \u0060src/updates.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 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":"src/explain_commits.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9bf6a268db0d274edb9ac275696097ec14e7076047d51ca129bd626a5e502b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/commit.rs:8456-8462 | src/commit.rs:8475-8481 | src/commit.rs:12280-12286 | src/commit.rs:12692-12698 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":8456}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3844655b3a839046d9e7f26a2b0dfdc44df6ec6b359036dc24c6589a384d04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/deploy.rs:657-663 | src/fish_install.rs:89-95 | src/push_hook.rs:96-102 | src/setup.rs:1233-1239 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"83115f8791b6e8a764644d70730d3ec493cae963f1e2c21ce05e518fe89d20ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/ai.rs:7357-7363 | src/ai.rs:9885-9891 | src/ai.rs:9941-9947 \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":"src/ai.rs"},"region":{"startLine":7357}}}],"partialFingerprints":{"codehealthFindingId/v1":"97e41ac5b9def913a1a5e19c731c08b875fcf4fc9a5b8178d632f836ec884f25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): src/env.rs:2340-2346 | src/env.rs:2525-2530 | src/env.rs:3484-3490 \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":"src/env.rs"},"region":{"startLine":2340}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f094ece8c27644da8fc98f239ce1134d55594ac52e8fc65323c6c131f2125f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/server.rs:848-854 | src/server.rs:891-897 | src/server.rs:936-942 \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":"src/server.rs"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"733110ab7d80d6d77ee7745e81c2d612c718f03ba107705d565af43dbf7f34ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/upstream.rs:281-287 | src/upstream.rs:395-401 | src/upstream.rs:444-450 \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":"src/upstream.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"048d52ad12a63af6646659bb3736ead2c78798bbc7c38ac2d11bfef0d10952e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ai.rs:2207-2213 | src/ai.rs:14329-14335 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":2207}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a91321ae6aa1b9694f6870a7a49273132465a922b1de0ae85f9c737a83c419e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ai.rs:2334-2340 | src/ai.rs:2349-2355 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":2334}}}],"partialFingerprints":{"codehealthFindingId/v1":"35926d0a5e8cfff1cf75f31756a95dfdee503b9edd774ce5388ddfb93422c893"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ai.rs:2487-2494 | src/ai.rs:7304-7310 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":2487}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43afeefe6d70de48d2a934fd53dd2900d137ad680e6d641b6cdf83305117680"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ai.rs:3009-3016 | src/ai.rs:3381-3387 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":3009}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd685102d124737b8ba1bf863a0d0656734e6a13fbe1bb595d0986e505d6587"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ai.rs:13543-13549 | src/ai.rs:13600-13606 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":13543}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f5abb15c82d0b32c9cee50784471c7f22ad39918cbddacfc22934086baaf1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ai_tasks.rs:775-781 | src/recipe.rs:481-487 \u2014 before extracting anything, compare \u0060src/ai_tasks.rs\u0060 and \u0060src/recipe.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 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":"src/ai_tasks.rs"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b971f465f44c8c45c6ac8c6bec1967469e18fda61d90d413bdf7bd0eab46924"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/codex_telemetry.rs:268-274 | src/codex_telemetry.rs:276-282 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_telemetry.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e20a6a24c3c27082f7a7ff0c956c2b1d6455470825133209eb89e40e843c0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/deploy_setup.rs:970-976 | src/env_setup.rs:830-836 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c610057181d530463342cd21ac8d66eb37cb2f301994aef7756f23e0c7fe685"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/domains.rs:271-277 | src/domains.rs:294-300 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/domains.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd1f6d81fbafefcc4dab9b5fe003ab1e08594f934c63a6f2c2a675a3131df19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/env.rs:1914-1920 | src/env.rs:3274-3280 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":1914}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90c3e687fa02d450e3f317962450a7246bfbad4eed194ed1209a7d292a2e068"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/failure.rs:192-199 | src/failure.rs:252-258 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/failure.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9352bf847cd6ce78ec202e58a3865287f9161052e11e6b77d4a9d08055a8bb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/jd.rs:490-496 | src/supervisor.rs:659-665 \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":"src/jd.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2169ca8341baf7bf07558404b0470e84a6861006875a992b08899f9f368ebc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/log_server.rs:848-854 | src/log_server.rs:909-915 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/log_server.rs"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87794ff6e28bb4423be920a992675a667afd57966c4de6f9751d814bb238157"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/pr_edit.rs:262-268 | src/pr_edit.rs:373-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pr_edit.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac18d7dd8b4d948315235ecefb569bb5a95229e320a608c3f3447bd2ec3cbc28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/publish.rs:167-173 | src/publish.rs:544-550 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/publish.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f41756de012844cd503ae91d1eeae07490a42ad2cdde9811649ee11b9f68a5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): src/server.rs:589-595 | src/server.rs:722-727 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server.rs"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf266e375b1ad552c10cd9ead168cccdd5c83b2621aa9b58eed94670e9b5ee55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): src/skills.rs:479-484 | src/skills.rs:1293-1299 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/skills.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2177e2997a2a8fc7c865058ac1648834d25bf2b963c415c84b719c65bee1542"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/branches.rs:368-373 | src/ext.rs:403-408 | src/publish.rs:723-728 | src/push.rs:353-358 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/branches.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"57076aaa50533ffaa8552427208ed8bbc74bd6ea4e0ec368e41ff5d47cb80184"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/commit.rs:2940-2945 | src/fish_install.rs:150-155 | src/fish_install.rs:162-167 | src/install.rs:956-961 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":2940}}}],"partialFingerprints":{"codehealthFindingId/v1":"379e39849e4521627db899e5d7f294559b20563fd7fcead0e3aaf0b9fae675bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/commit.rs:5324-5329 | src/commit.rs:5502-5507 | src/commit.rs:5873-5878 | src/commit.rs:6513-6518 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":5324}}}],"partialFingerprints":{"codehealthFindingId/v1":"7865e2031d7e8912514653ee86eddcdc7ad130b58d87a347955e7aa9279cd67f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/ai.rs:1539-1544 | src/ai.rs:1746-1751 | src/ai.rs:15939-15944 \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":"src/ai.rs"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e29d59a5b82dadd19441cc7e3b4768e89bfa5c9029d2aae0402c208ba5f2ec3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/branches.rs:366-371 | src/ext.rs:401-406 | src/repos.rs:1516-1521 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/branches.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b12ac02936c51cee2fbe7ae8db97e8e17b863029c4316f12bbade8c429e896"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/deploy.rs:1251-1256 | src/deploy.rs:2700-2705 | src/env.rs:2591-2596 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"5400ed9284a9e5b62579614bb6457d1125efb7edcba5bc1c496dad8e4dc63d0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/env.rs:3398-3403 | src/env.rs:3502-3507 | src/env.rs:3805-3810 \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":"src/env.rs"},"region":{"startLine":3398}}}],"partialFingerprints":{"codehealthFindingId/v1":"dead97863b496d67454f07e7c7a5e2a1b97b0644b2505180b20102d8a336c00b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/codex_runtime.rs:320-325 | src/codex_skill_eval.rs:235-240 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_runtime.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"732200e18e1c0161b3c444856d982e12509310688693ae9c9c04c2246e2859f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/codex_runtime.rs:842-847 | src/codex_runtime.rs:870-875 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_runtime.rs"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6184d1c39324fa08eff9e2938c50eb0c977ed8221fb911a75dfa4254211ea3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/codex_telemetry.rs:663-668 | src/codex_telemetry.rs:769-774 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_telemetry.rs"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead98ccdfab50704f6a8ae5e4bc2abfff1223ad594375caf5a21a280456ba825"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/commit.rs:6075-6080 | src/commit.rs:6222-6227 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":6075}}}],"partialFingerprints":{"codehealthFindingId/v1":"25711e22f3d3ff830b1bd30da32fb33932542d14d2890c47581c89bbf3fccc48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/commit.rs:10989-10994 | src/commit.rs:11325-11330 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":10989}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b1b180c98dd1e5342fbfc9ed54c60803a1410eb5fd2dfe110c9e64246c28d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/deploy.rs:588-593 | src/deploy.rs:1808-1813 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"522d0c0bc2b6829bcaced49cd93b2ebc0a8d529305ee5c22c88772ccbe04a090"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/deploy.rs:1759-1764 | src/deploy.rs:1774-1779 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":1759}}}],"partialFingerprints":{"codehealthFindingId/v1":"814302c4fd1aeb9567cfe537b2e05d86c1469a4cff45dcb47cd4a1fa8a5b8e6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/help_search.rs:81-86 | src/tasks.rs:749-754 \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":"src/help_search.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebe6412d5d636e648ceebb362401e2a899455515e0b25be158fad1001a4dd35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/repos.rs:1685-1690 | src/repos.rs:1703-1708 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/repos.rs"},"region":{"startLine":1685}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4c028bcffcd53140a3e9ef56718d947b3e55f29757aa4217639cc97dd3a5bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/setup.rs:2462-2467 | src/setup.rs:2554-2559 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup.rs"},"region":{"startLine":2462}}}],"partialFingerprints":{"codehealthFindingId/v1":"f945bb1a21f37292790526741d4470a3450c15d5bd4f67fe430886ee2009532e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 3): src/updates.rs:676-679 | src/updates.rs:809-814 | src/updates.rs:887-892 \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":"src/updates.rs"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0489ef489f9a47c494b9a1d63ca7fed7504129191e65305e9b776e025857bbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/upstream.rs:186-191 | src/upstream.rs:471-476 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/upstream.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7309ac5073bc64038ed9e1d53c7e32370a9d1964bb9a95f733c3e6fe9258f3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): src/branches.rs:367-371 | src/ext.rs:402-406 | src/publish.rs:722-726 | src/push.rs:352-356 | src/repos.rs:1517-1521 \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 5 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/branches.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49b5e809a9e3696581770cf060d990ad7e1941c50d8be1b708d3c0b417825ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/ai_project_manifest.rs:140-144 | src/config.rs:2502-2506 | src/project_snapshot.rs:266-270 \u2014 before extracting anything, compare \u0060src/ai_project_manifest.rs\u0060 and \u0060src/project_snapshot.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 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":"src/ai_project_manifest.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"48348e3cee342464a6b235d5ec08328440ed01c2f109e92fa742838b8280f52d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/ai_tasks.rs:784-788 | src/commit.rs:8777-8781 | src/tasks.rs:1122-1126 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_tasks.rs"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce15eff9434d198f86697c7b96db5ca3cc86e1092a68e1c67654cd194a44aabb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/commit.rs:9620-9624 | src/commit.rs:9909-9913 | src/commit.rs:11726-11730 \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":"src/commit.rs"},"region":{"startLine":9620}}}],"partialFingerprints":{"codehealthFindingId/v1":"68bc9d165fb81060759b673311f8998772b551987f93bb55724d1177bbe75047"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/deploy.rs:1690-1695 | src/deploy.rs:1759-1763 | src/deploy.rs:1774-1778 \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":"src/deploy.rs"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"751aaefb9cd0e64e2e072562929c6b84b4793b9ec0065dd3345fe6180d7494be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ai.rs:7060-7064 | src/ai.rs:7195-7199 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":7060}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43d2b0be2f0ad609d024ed93badd8005819e83dd9855f63df31eb4abbadd303"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/bin/flow-workspace-bootstrap.rs:1402-1407 | src/domains.rs:443-447 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/flow-workspace-bootstrap.rs"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"b640a290aad26ee711fbd4b21d62f677f9136fdf79c7b94c380537d8537627f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/commit.rs:3534-3538 | src/commit.rs:3569-3573 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":3534}}}],"partialFingerprints":{"codehealthFindingId/v1":"a689de53440368dfc233eb7791c0a9b73779f51e8837d961c54aebda05956483"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/commit.rs:14069-14073 | src/commit.rs:14080-14084 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":14069}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5133a8f9e0c6beb7c6d0c81ece99fbf4d08e86d3174d7529115f487f5dbd59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/commits.rs:180-186 | src/commits.rs:445-449 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commits.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0735404b511a18be922106958c8a0380c0cd3311722a32a44b6c992ab13fd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/deploy.rs:649-653 | src/sync.rs:339-343 \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":"src/deploy.rs"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac69b66f404ec68c881b6d0299d4e8923f7ffdbffb1d5aa322facde271bff17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/flow_config.rs:826-830 | src/home.rs:439-443 \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":"src/flow_config.rs"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc409ab7b5dd372526fbf688b35bd2a5e10be013e4d5d19abfdf7241f9c209a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/home.rs:826-830 | src/repos.rs:1743-1748 \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":"src/home.rs"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8830c1089f4a35da67ef0fa4adb2cc1918512af684b1f6c5e07b8287236d9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/usage.rs:432-436 | src/usage.rs:447-451 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/usage.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8243672291f5ed671e631d6183b0746c502c5326b311a5575f2a047f1d90f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/seq_everruns_bridge/src/lib.rs:298-303 | src/ai_everruns.rs:1210-1215 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/seq_everruns_bridge/src/lib.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"644e980e5a25a5cf3e0c60e9ee685fbea15128cb15b10be6874ab36b60f5acd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ai.rs:1837-1843 | src/commit.rs:12591-12597 \u2014 before extracting anything, compare \u0060src/ai.rs\u0060 and \u0060src/commit.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 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":"src/ai.rs"},"region":{"startLine":1837}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a883eb764fb72ee2f3eab329def3484a4a7c867fc26353fe884ea2446860874"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ai.rs:8922-8927 | src/jd.rs:232-237 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":8922}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc1cd54e7ae4f2e10b219e132e307e34c0ad19cb704a10ef490dec7a93bbe78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ai.rs:11826-11831 | src/commit.rs:10119-10124 \u2014 before extracting anything, compare \u0060src/ai.rs\u0060 and \u0060src/commit.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 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":"src/ai.rs"},"region":{"startLine":11826}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53e40b11823ac990603c25d810605e80b84272647f23cbdc625bcc028ba39f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ai_project_manifest.rs:155-163 | src/project_snapshot.rs:281-289 \u2014 before extracting anything, compare \u0060src/ai_project_manifest.rs\u0060 and \u0060src/project_snapshot.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 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":"src/ai_project_manifest.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b43acc69d365c59d7d645b96642f8e1548d207d5c0df1911606ce9825d02878"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ai_project_manifest.rs:241-245 | src/codex_session_docs.rs:1909-1913 \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":"src/ai_project_manifest.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"f800b3d4a82e57495bb45104ee43785da08f4bd568ce2f87888564fd8b730266"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ai_server.rs:259-265 | src/health.rs:386-392 \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":"src/ai_server.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce76ad8627824332068652ce82cbe64c5ad372a911f61ea4b56f475a50d4caf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/ai_taskd.rs:964-970 | src/bin/ai_taskd_client.rs:308-314 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_taskd.rs"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ce2c392aa5a400a4d3934cace67187129219bc84706d96ba3d27fe78e8714c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ai_tasks.rs:46-54 | src/discover.rs:101-109 \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":"src/ai_tasks.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9efbc3bdde4e0f564a2a15a11a558a28932198f6210cbe1ef0ebe99780aef2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ask.rs:536-544 | src/task_match.rs:78-86 \u2014 before extracting anything, compare \u0060src/ask.rs\u0060 and \u0060src/task_match.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 150 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":"src/ask.rs"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b1ace51041ffab39794edfbf20492374b04c3dfa314fc1c4ec9685242d4579"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ask.rs:547-552 | src/task_match.rs:286-291 \u2014 before extracting anything, compare \u0060src/ask.rs\u0060 and \u0060src/task_match.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 150 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":"src/ask.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c086ed27cd59279664191f24b589402afaf22a43c22a304f5238e8defcd85fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/code.rs:795-799 | src/ext.rs:173-177 \u2014 before extracting anything, compare \u0060src/code.rs\u0060 and \u0060src/ext.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"src/code.rs"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08b4de39da7318fef6d01916ed933fda10e61f4a4b5fbc879fe3836fe6b44ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/codex_memory.rs:764-770 | src/repo_capsule.rs:997-1003 \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":"src/codex_memory.rs"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"824d9a1975ed8c6e76090515f8f2c2cb6e7006a2851e2edfb3c5c4e36b57bb2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/codex_session_docs.rs:1879-1888 | src/repo_capsule.rs:986-995 \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":"src/codex_session_docs.rs"},"region":{"startLine":1879}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8fc6ba4f4c0018de22d5c8a5ff01f6a6706a242e335411f3b724f3775f4b65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/commit.rs:12483-12492 | src/sync.rs:5383-5392 \u2014 before extracting anything, compare \u0060src/commit.rs\u0060 and \u0060src/sync.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 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":"src/commit.rs"},"region":{"startLine":12483}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4eee8da9180f736b6643d678f95b73aae1cf96c7a1cbb3a822696fa34428ca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/commit.rs:12496-12504 | src/sync.rs:5396-5404 \u2014 before extracting anything, compare \u0060src/commit.rs\u0060 and \u0060src/sync.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 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":"src/commit.rs"},"region":{"startLine":12496}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd95f06d72ad3e55f83ae596a05a92ec22bd36584a0155d0f2999fcd11908cab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/commit.rs:4681-4687 | src/skills.rs:1103-1109 \u2014 before extracting anything, compare \u0060src/commit.rs\u0060 and \u0060src/skills.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":4681}}}],"partialFingerprints":{"codehealthFindingId/v1":"a852e07dcf3a40310ef26df180794c2d00e9201eccf6e8b3014f6e76fd2cb834"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/commit.rs:7080-7087 | src/updates.rs:1523-1530 \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":"src/commit.rs"},"region":{"startLine":7080}}}],"partialFingerprints":{"codehealthFindingId/v1":"23eb6a95d405199f19f7f13cc143056e4b8a270ad39fcf5dff672c4ae0a4e767"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/commit.rs:12507-12511 | src/sync.rs:5407-5411 \u2014 before extracting anything, compare \u0060src/commit.rs\u0060 and \u0060src/sync.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 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":"src/commit.rs"},"region":{"startLine":12507}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d059cb94b33b991da26b39fce65381e9650ef174de4f001ab7ae9cfa1ab08ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/commit.rs:12513-12522 | src/sync.rs:5413-5422 \u2014 before extracting anything, compare \u0060src/commit.rs\u0060 and \u0060src/sync.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 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":"src/commit.rs"},"region":{"startLine":12513}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c99ca0d0321ce8661d47b6bb1bc969400356ffa0b78c5ef041bbe555e5ba599"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/commit.rs:12524-12532 | src/sync.rs:5424-5432 \u2014 before extracting anything, compare \u0060src/commit.rs\u0060 and \u0060src/sync.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 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":"src/commit.rs"},"region":{"startLine":12524}}}],"partialFingerprints":{"codehealthFindingId/v1":"94359c75cbe4ab9194d3df851da7923841f4edddbe763b01144c17334ad668e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/commit.rs:12534-12541 | src/sync.rs:5434-5441 \u2014 before extracting anything, compare \u0060src/commit.rs\u0060 and \u0060src/sync.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 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":"src/commit.rs"},"region":{"startLine":12534}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a39441a75d2fe48a2477f3a2b8e6eb3abf5ae1c6243785adf10928878a859d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/config.rs:2734-2741 | src/config.rs:2753-2760 | src/setup.rs:3033-3040 | src/workflow.rs:1271-1278 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config.rs"},"region":{"startLine":2734}}}],"partialFingerprints":{"codehealthFindingId/v1":"872d4f86dc514c287680c6504f85c8995cbd5a35bc79de7a8644d843568b6610"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/config.rs:2891-2896 | src/repos.rs:1525-1530 \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":"src/config.rs"},"region":{"startLine":2891}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ca2e8128d7f0535a74c93c36872f6568424ea74e8fee3543881e1b11d66188"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/deploy.rs:736-740 | src/release.rs:11-15 \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":"src/deploy.rs"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e17686b8502efea526c6d49c12c27c400f99cb88615faede3e53a9f4bb88ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/deploy.rs:863-874 | src/project_snapshot.rs:327-338 | src/publish.rs:659-670 | src/registry.rs:578-589 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8345afa900bdb9a32cca0460923a7cd11251cd9d2de074a3e7246624d25c79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/deploy.rs:1313-1318 | src/env.rs:1365-1370 | src/services.rs:225-230 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"56bf7f9138d672add6c8d20997df140fb7152e5f7a76aa781b075a2978d2c269"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/deploy.rs:2268-2276 | src/setup.rs:1207-1215 \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":"src/deploy.rs"},"region":{"startLine":2268}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb8c442c22fb9cd8b68a4d684fc18ad29bf4a747b86b1007d922479d17f4055"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/deploy_setup.rs:718-727 | src/env_setup.rs:643-652 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"3939153a7dd98b764afb20da683348537f75e4ccf21343c3d6b8335b80abd3a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/deploy_setup.rs:729-738 | src/env_setup.rs:654-663 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"11cf47e9b19527fb355bde4a803920a9d52fe90897b94574d45ca6af4a829356"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/deploy_setup.rs:774-781 | src/env_setup.rs:691-698 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e1b75d3004256d8b0b5470a21fb7ee7e9c9f93acabf94e8e33c8a9e79db4a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): src/deps.rs:167-178 | src/env.rs:1352-1363 | src/services.rs:451-462 | src/storage.rs:508-519 | src/todo.rs:584-595 \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 5 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deps.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"703f9c044704f5942574004e4f05099b3dbc7832535233c58276f8798a91d756"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/push_policy.rs:267-274 | src/skills.rs:758-765 | src/tasks.rs:1586-1593 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/push_policy.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed35139e27fbb357290cad4a16cb54d8928cad19ed4dd8ed0f8b47d10cb6979"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/sync_plan.rs:85-92 | src/updates.rs:59-66 \u2014 before extracting anything, compare \u0060src/sync_plan.rs\u0060 and \u0060src/updates.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 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":"src/sync_plan.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9de8266a8630fb562e05f0a347faf69bd18ae7d6236e5317f2e5b849f96164"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/sync_plan.rs:1443-1448 | src/updates.rs:1361-1366 \u2014 before extracting anything, compare \u0060src/sync_plan.rs\u0060 and \u0060src/updates.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 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":"src/sync_plan.rs"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"061eb3663ebe675e328274b341cedee98223ac725a70d2850571041a008a0438"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/sync_plan.rs:1747-1755 | src/updates.rs:1476-1484 \u2014 before extracting anything, compare \u0060src/sync_plan.rs\u0060 and \u0060src/updates.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 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":"src/sync_plan.rs"},"region":{"startLine":1747}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e511b197df9c71c483fbdf555acbc24bf38f2d962880a971797fa635d016428"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/processes.rs:220-225 | src/tasks.rs:1534-1539 \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":"src/processes.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"302f6c7ad854e825dd5337ad2d8380ec66a6211c47af7a2ad50ec6e9af49bd92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/processes.rs:239-243 | src/tasks.rs:1553-1557 \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":"src/processes.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"c74fa40a694f1242ee6697177909437e3a2cd5097327ad88a7fcb582fbeca6ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/hub.rs:108-113 | src/tasks.rs:3354-3359 \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":"src/hub.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"694f7c5af04741891269544855f4edb807c37f4bfcb9ea78b0f276d64cd31a27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/jazz_state.rs:53-63 | src/usage.rs:742-752 \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":"src/jazz_state.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"102080454fbeac4f86e7e55e80442493a6264735b59a1dde5602a78964861ce1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/ai_project_manifest.rs:191-198 | src/config.rs:2454-2461 | src/project_snapshot.rs:216-223 \u2014 before extracting anything, compare \u0060src/ai_project_manifest.rs\u0060 and \u0060src/project_snapshot.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 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":"src/ai_project_manifest.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"c040a298745d3d2f6715864077ecc7b18a4712cd2f42b97cc873660327d55c68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/deploy.rs:266-274 | src/env.rs:241-249 \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":"src/deploy.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"aafae445b34bcd8f443556ebb3f8cd629de36fc8d5bf336924cb9d2f67bc05c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/env.rs:503-507 | src/ssh.rs:306-310 \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":"src/env.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1603d7cc6996ca4c1e84788793674d219894861f9ec91ebe448dbe97f620f83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/sync.rs:3368-3377 | src/sync.rs:3482-3503 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":3368}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a1ec6b42e04a22fdf11214c1ffb518a9ec951369e68abee98e81bf71800b47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/commit.rs:12228-12248 | src/commit.rs:12651-12670 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":12228}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7fadb9719411f8d806415e9f0e5083c479d455c0d2a798baff345c1aacf9b18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/commit.rs:5526-5540 | src/commit.rs:6530-6544 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":5526}}}],"partialFingerprints":{"codehealthFindingId/v1":"770aeb9b09b4ce1a084567fda00966504f39c34a14e24d8fdf122cfcbfea2bb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/sync.rs:5602-5616 | src/sync.rs:5682-5695 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sync.rs"},"region":{"startLine":5602}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae65c37e5551b58dd5d3201632287c32e57331800a8211dde442b39359addb1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/commit.rs:6341-6353 | src/commit.rs:6380-6392 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":6341}}}],"partialFingerprints":{"codehealthFindingId/v1":"0938ee3f786bd414c9e6fb5a9f9c74f84a038f963333418d2870812d3bbf31f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/supervisor.rs:306-318 | src/supervisor.rs:437-449 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/supervisor.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"c240db0613a336217a74d47d84b2ab11da1556988b327615e52148ff5d7fbd86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/changes.rs:710-722 | src/env.rs:1047-1059 | src/storage.rs:494-506 \u2014 before extracting anything, compare \u0060src/changes.rs\u0060 and \u0060src/env.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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":"src/changes.rs"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"23664278c4dea3a031bf8f9ebec67fc0ece5366ef4d94ef3cdc497c42c552517"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/env.rs:596-606 | src/ssh_keys.rs:583-593 \u2014 before extracting anything, compare \u0060src/env.rs\u0060 and \u0060src/ssh_keys.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 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":"src/env.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c39b8c6392ca3dd4da5ef594df7084047115571aa10180080b0e2939fcd3b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/code.rs:373-383 | src/palette.rs:97-107 | src/repos.rs:128-138 \u2014 before extracting anything, compare \u0060src/code.rs\u0060 and \u0060src/palette.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. 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":"src/code.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2738996a7845b6bcd494f410de686e35327600ebacc57262f59dcfe7a5af75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/sync_plan.rs:949-958 | src/updates.rs:946-956 \u2014 before extracting anything, compare \u0060src/sync_plan.rs\u0060 and \u0060src/updates.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 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":"src/sync_plan.rs"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"91abfb13d880fcaf1e385c3be1f3066e03b689a173b814f4f30b81bf9dc3d4c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/commit.rs:7545-7555 | src/commit.rs:7556-7564 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":7545}}}],"partialFingerprints":{"codehealthFindingId/v1":"09003250f36494037b9c5ca4028e99fd0164546594ea14eee7f91f7e20fd6fe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/ai_project_manifest.rs:428-438 | src/ai_project_manifest.rs:475-485 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_project_manifest.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"b648b19efc83e418454fbbdd90e6d3c319a1d09a43a67dbade0afe6f200c69e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/commit.rs:13922-13931 | src/commit.rs:14227-14236 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":13922}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aee3eac358bd190f3078702b94a77fa242edc41d950af7016be1ccf458c8b7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/tasks.rs:1702-1711 | src/tasks.rs:1727-1736 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tasks.rs"},"region":{"startLine":1702}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5ba7fe2ffc00f6b19e8cb7dc24598b0084cf9eb0cc2ae1f3f46c7c64f1fbfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/skills.rs:336-345 | src/tools.rs:77-86 \u2014 before extracting anything, compare \u0060src/skills.rs\u0060 and \u0060src/tools.rs\u0060 as WHOLE FILES: this scan already matched 4 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. 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":"src/skills.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eadbb230135d255f63eb6a014a3d911b3a2109cf1d1224115ec4e0d8fb1bee3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ai.rs:1227-1236 | src/ai.rs:1281-1290 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8e0ec88125063718d68c17032690b933f3fbca8a47ffe333c443daf201b6ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/deploy.rs:2877-2886 | src/deploy.rs:2898-2907 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":2877}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd8bbc69b8014b03bc50fc7ef1217541d90259b2bf5a9b47698815c1bf2490e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/push_hook.rs:176-184 | src/ssh.rs:394-403 \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":"src/push_hook.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad165344cca89de89cd07bc13304eb6edfdc0ef7e4e0e458c9b20972e272ab4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/sync_plan.rs:968-977 | src/updates.rs:966-975 \u2014 before extracting anything, compare \u0060src/sync_plan.rs\u0060 and \u0060src/updates.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 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":"src/sync_plan.rs"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fab924db747df6213ad5d01e08e9b8cffbf966e83575919556bb9c8849c7568"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/commit.rs:10145-10154 | src/commit.rs:10160-10169 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":10145}}}],"partialFingerprints":{"codehealthFindingId/v1":"5659f5b86bb6f79d58b43b00245a0dbb0ae0b63b2c80a1b5b82548649547bdaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/macos.rs:692-700 | src/macos.rs:715-723 | src/macos.rs:740-748 \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":"src/macos.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bca0ecfbfda74393ed89ee57c275cd63bc19938e01fdebfb60552b9bcb25c41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/skills.rs:315-323 | src/tools.rs:58-66 \u2014 before extracting anything, compare \u0060src/skills.rs\u0060 and \u0060src/tools.rs\u0060 as WHOLE FILES: this scan already matched 4 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. 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":"src/skills.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d4d9a1250f6e39ee889aee7b122a197f8f87a1fbe47ad9c8fea3c67857a96c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/env.rs:1435-1443 | src/env.rs:1609-1617 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":1435}}}],"partialFingerprints":{"codehealthFindingId/v1":"3742931c2aa9730735f8f8837d98dd78994737559baddc64ee53e1ce9d81ce41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/publish.rs:27-35 | src/publish.rs:39-47 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/publish.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba2e03445fc84cf5dc315f30fccf64403213d8f3c3a17236b15da837b6caf2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/url_inspect.rs:440-448 | src/url_inspect.rs:578-586 | src/url_inspect.rs:722-730 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/url_inspect.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"930a4170157ba5b8df5b9aa8751dfe6de03c1de1672074190220ac55b515c654"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/traces.rs:158-166 | src/traces.rs:236-244 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/traces.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73fc3623f0cfc3c5a727c85ba97783e8520af31f271a2d8185d0a155a37e808"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/commit.rs:12784-12792 | src/commit.rs:12900-12908 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":12784}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9d2441c42d7c17027d1680e075c86e2b616445b0c127fbb51cbd2f4ca56958"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/deploy.rs:817-825 | src/deploy.rs:829-837 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2abb37f9942e4436d50ac9cda59557c9edac9c7563b65b72893f706e299780"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/ai_project_manifest.rs:475-483 | src/ai_project_manifest.rs:498-506 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_project_manifest.rs"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a29b5108f467a1a97abd8805f1a276b5f7589081278e774416487947a4764d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/pr_preview.rs:832-840 | src/pr_preview.rs:857-865 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pr_preview.rs"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b5028671473e3603a5edaf5c01dc26110b243b01ab650a0ee4f150042e8453"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/env.rs:1994-2001 | src/hash.rs:65-73 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":1994}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8a40ac22bada870e8690f599f73ea8fb35ee4412935301a3f95874c7b47990"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/domains.rs:120-128 | src/domains.rs:591-599 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/domains.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"c852bc67e8db493a3b935bb59d553ca3dc5c4a401785818ee3914ef1dca3e2a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/commit.rs:8688-8695 | src/commit.rs:8705-8712 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":8688}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9f56757798bfb6a85ec39ca320dc67cde9ca0bd877f3480e2bbb19d263150a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/ai.rs:6986-6993 | src/codex_session_index.rs:370-377 \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":"src/ai.rs"},"region":{"startLine":6986}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc020d60b1fbff42fabd6f06f1a07238eb4660770f4d03b1c8c2cf04a43b129"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/env.rs:544-551 | src/ssh_keys.rs:531-538 \u2014 before extracting anything, compare \u0060src/env.rs\u0060 and \u0060src/ssh_keys.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 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":"src/env.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"118c7f1aa813ebef34ab8c52e01de6f3451c0622bc6e4d8059b65a52a0419ee2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): src/env.rs:1484-1491 | src/env.rs:1535-1542 | src/env.rs:1574-1581 | src/env.rs:3271-3278 | src/env.rs:3995-4002 | src/env.rs:4047-4054 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":1484}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a768b0fc469d197c09a24671a558bde5978e743d037e5c722c67ab72b7d067a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/deploy.rs:454-461 | src/deploy.rs:465-472 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/deploy.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"90dc326fff37b499ebb05a0ffa5ca89bd36016ed014693fbe9aa1bea4cd9e8e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/skills.rs:347-354 | src/tools.rs:88-95 \u2014 before extracting anything, compare \u0060src/skills.rs\u0060 and \u0060src/tools.rs\u0060 as WHOLE FILES: this scan already matched 4 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. 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":"src/skills.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2e159c40c9984bd6020fec25b0001d1533aa5841bd04f73247088c8a7f7280"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/codex_telemetry.rs:240-247 | src/codex_telemetry.rs:254-261 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_telemetry.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"458fe56947fd9a86599f809d7e12a9e1c672d0833370248ff973823dcd896f66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/upstream.rs:289-296 | src/upstream.rs:403-408 | src/upstream.rs:452-459 \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":"src/upstream.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b4c0906b664eb8e2d0da21551d9e648c10072eaea45315879f2f8efeca47a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/supervisor.rs:688-695 | src/supervisor.rs:711-718 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/supervisor.rs"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"5563aa688a66c3b18c129b9d4a4d155c218d670a3aeccf6345f501569d0f28fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/commit.rs:10723-10729 | src/commit.rs:10896-10903 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":10723}}}],"partialFingerprints":{"codehealthFindingId/v1":"83fd00a794b666df3422849d73fed135fcbf649b111a3fdd3b6fdbc162c268e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/commit.rs:12281-12288 | src/commit.rs:12693-12700 | src/commit.rs:13522-13529 \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":"src/commit.rs"},"region":{"startLine":12281}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e0b7822efdd136f5f6c3ace8602b652ef164519392b63fec288ce72b08a8d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/deploy_setup.rs:557-563 | src/env_setup.rs:490-496 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"758df11f4965fb22a2693cc621ff77281676bf43e194d3d3b35933526aa6eaaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/codex_session_docs.rs:1571-1576 | src/codex_skill_eval.rs:306-312 \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":"src/codex_session_docs.rs"},"region":{"startLine":1571}}}],"partialFingerprints":{"codehealthFindingId/v1":"7655121706caa92356be2adbb053e625c00752c6f3e021997f339801e2f52b71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/traces.rs:168-174 | src/traces.rs:246-252 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/traces.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"337fd2a92a67c09b84a9361e963387307cbb1d7ca936abbb00d7e271a16ac7ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/deploy_setup.rs:437-443 | src/env_setup.rs:425-431 \u2014 before extracting anything, compare \u0060src/deploy_setup.rs\u0060 and \u0060src/env_setup.rs\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 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":"src/deploy_setup.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd5a41baf5d7d036dfd9b27dfc2168b7998a2780fddd0f780b076976e556283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/install.rs:685-689 | src/install.rs:739-745 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a383b53f6d4af6ae0031005557df8e403c8cd5234bf020b05785aafa468c179"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/explain_commits.rs:626-632 | src/explain_commits.rs:700-706 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/explain_commits.rs"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef5b00ec11d3d1a67c7fa65cc558ee70470b49b392aa1bea0dd920d7d5b7ffa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/ai.rs:9809-9814 | src/ai.rs:9826-9832 | src/codex_skill_eval.rs:321-327 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":9809}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74167c30adefc0ac215ce1f3a3e86a638947462de8fd62513a42b86e6dd7b18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/fish_trace.rs:70-76 | src/fish_trace.rs:82-88 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fish_trace.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd76a099ed33b27e136cf49740f58fe3e14e7dff911034382c262e483097b51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): src/explain_commits.rs:109-115 | src/fix.rs:280-285 | src/jj.rs:3402-3407 | src/jj.rs:3416-3421 | src/sync_plan.rs:1763-1768 | src/updates.rs:1493-1499 | src/upstream.rs:592-598 \u2014 before extracting anything, compare \u0060src/sync_plan.rs\u0060 and \u0060src/updates.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 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":"src/explain_commits.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"5206d767c9f14d7fea1385789d91dcee1b3f10821011b4e8dfcbf47bd867e6ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/ai_project_manifest.rs:180-184 | src/config.rs:2474-2479 | src/project_snapshot.rs:238-243 \u2014 before extracting anything, compare \u0060src/ai_project_manifest.rs\u0060 and \u0060src/project_snapshot.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 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":"src/ai_project_manifest.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"d472c127f5a1dacf30204d18cb8daddb93caec3da7f4872613f04735b983d2d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/codex_session_docs.rs:1375-1380 | src/codex_session_docs.rs:1637-1642 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_session_docs.rs"},"region":{"startLine":1375}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aeb984a98035f1a72a410997cdf3cbd017df8fd3d209baa962d12fd46b1491c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/sync_plan.rs:1621-1626 | src/sync_plan.rs:1725-1730 | src/updates.rs:1455-1459 \u2014 before extracting anything, compare \u0060src/sync_plan.rs\u0060 and \u0060src/updates.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 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":"src/sync_plan.rs"},"region":{"startLine":1621}}}],"partialFingerprints":{"codehealthFindingId/v1":"3238bf765a764f12e3c2d34fd77c96b1618c931ed9be13438a15b2bd6fd264af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/traces.rs:195-200 | src/traces.rs:251-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/traces.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"df48884ec9f94afddfa587138fbf5eb0e17376062ebff61bd1999e35f89df6bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/push.rs:373-378 | src/sync.rs:2623-2628 \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":"src/push.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"3617b513d0073bcc6883c00099e40e3b064ca6f9671085bf3303ea03b16372b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/task_match.rs:215-220 | src/task_match.rs:227-232 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/task_match.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a7c6e09e5fa1222ef9ba6b48235290fbd647a0dcc9f556cadddb614ac524f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/codex_skill_eval.rs:633-638 | src/history.rs:242-247 \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":"src/codex_skill_eval.rs"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"7daee393b10ed92f9e092c2ca1edcbc012ec5e5f7a5b24bea4ddfbfa315f282c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/ai_taskd.rs:213-218 | src/jd.rs:202-207 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_taskd.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f9e5e4efd691d49f27ed95a3f1bed08fc2c2bba3cbdf8d2d3007cf6ee13915f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/commit.rs:5184-5189 | src/commit.rs:5303-5308 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":5184}}}],"partialFingerprints":{"codehealthFindingId/v1":"01799ccf151645f6cdff2a387862d20e5101af56a5e793aa469123398b8fe173"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/codex_skill_eval.rs:619-624 | src/history.rs:229-234 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/codex_skill_eval.rs"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"99cc8242d9b5a6c175c0c1e0ea7d54b93bfe96de90773dd6826ca50036a586b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/updates.rs:1062-1067 | src/updates.rs:1279-1284 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/updates.rs"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa981ceda3e3417818d9128c4d15ff5379a7f3295b3f45f9d8f6aeebe8e070ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ext.rs:147-151 | src/todo.rs:60-64 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ext.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a247164c99087698e5d4bee55077ce5247937cddf5b5b7574a414724d9870f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/commit.rs:15309-15313 | src/commit.rs:15424-15428 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":15309}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73368725b843eedeb43633d4afb6cedaea03ae4f20b8d905f8a72ba38422c70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/sync_plan.rs:963-967 | src/updates.rs:961-965 \u2014 before extracting anything, compare \u0060src/sync_plan.rs\u0060 and \u0060src/updates.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 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":"src/sync_plan.rs"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"804194ca47c5b013e62e255ab53862d95e95b0073c6e895c93bffad909514d0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ai.rs:10039-10043 | src/ai.rs:10339-10343 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai.rs"},"region":{"startLine":10039}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47fc51793bf7c183b2b659097980a981f0d0a0faafdc109bcd02244abe319fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/failure.rs:305-309 | src/trace.rs:76-80 \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":"src/failure.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbbfa5d561b9e5251bed8a6073d1830b93e8e38681f5259842fe4d96e26e2edc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/push.rs:224-228 | src/push.rs:230-234 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/push.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"74235f50e1cb9d8510c107f204078e2b09ab9831689fc845765d9e867305648e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/code.rs:719-723 | src/code.rs:741-745 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/code.rs"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b8d4c3aa5c4502cdd67a574138c6082567de9b204cbb73d0450f900ea15397d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/env.rs:2030-2034 | src/env.rs:2038-2042 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/env.rs"},"region":{"startLine":2030}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4be8bd3f79e64bb1c472440ef8e187c17424287c921a188d702ffe1afed1f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/failure.rs:521-525 | src/tasks.rs:2161-2165 \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":"src/failure.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a97e3325afeac9d31ff74392b03ecba820bf54423c77537d359b51657f57a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/git_guard.rs:323-328 | src/jj.rs:3542-3547 \u2014 before extracting anything, compare \u0060src/git_guard.rs\u0060 and \u0060src/jj.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 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":"src/git_guard.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"b364f2e612b17439f159ed838b7e8e6b0e4a7533d44fce4083163ceaa70ae50a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/log_server.rs:486-490 | src/server.rs:384-388 \u2014 before extracting anything, compare \u0060src/log_server.rs\u0060 and \u0060src/server.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 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":"src/log_server.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"4991ffba583bb806722740ba367530b89523c3d2deea3951d2cea7cbc36b26d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/log_server.rs:514-518 | src/server.rs:412-416 \u2014 before extracting anything, compare \u0060src/log_server.rs\u0060 and \u0060src/server.rs\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 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":"src/log_server.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd65fc5d03cf1a7ec9d8187644c6b13c6fdc6bdef4c1cfb527b86c0718cdc32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/parallel.rs:261-266 | src/parallel.rs:275-280 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/parallel.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9afd2acd558554064a8d935201b5095f91a62abcb340df6b4fdb351321c70b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/server.rs:667-671 | src/server.rs:956-960 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/server.rs"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"4054aa5ad2d82b71f682ef97728363a959d24fa8e4c9658cabd072954bc2b8dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/main.rs: src/main.rs changed 36 times in last 90 days, max cyclomatic complexity 158 in flowd::main at line 44. 3 of those changes were fix/bug commits, and the other 33 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- 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":"src/main.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f4bd697ce412d5d6af59543f06e4a0481b7a56e4bd52631de4c8462fa4ed51"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/commit.rs: src/commit.rs changed 37 times in last 90 days, max cyclomatic complexity 95 in flowd::commit::run_with_check_sync at line 3898. 4 of those changes were fix/bug commits, and the other 33 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/commit.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":"src/commit.rs"},"region":{"startLine":3898}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3fafcdd3191dfcafebc49d11b371d5b069e5f3bcaf8f7e38fb2977eb1dcc674"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/sync.rs: src/sync.rs changed 32 times in last 90 days, max cyclomatic complexity 100 in flowd::sync::run_sync at line 1271. 4 of those changes were fix/bug commits, and the other 28 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/sync.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":"src/sync.rs"},"region":{"startLine":1271}}}],"partialFingerprints":{"codehealthFindingId/v1":"292a873ca6f4c7323e94b583e11ca2958a2e9ad5969550551709fe81133ddd0d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/ai.rs: src/ai.rs changed 30 times in last 90 days, max cyclomatic complexity 76 in flowd::ai::run at line 784. 2 of those changes were fix/bug commits, and the other 28 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/ai.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":"src/ai.rs"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4691fb16d8a2c579244f56da76962e0883dc519cf1508be8f7d116e661bec36"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/tasks.rs: src/tasks.rs changed 26 times in last 90 days, max cyclomatic complexity 30 in flowd::tasks::run_command_with_pty at line 2552. 1 of those changes was a fix/bug commit, and the other 25 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/tasks.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":"src/tasks.rs"},"region":{"startLine":2552}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c7a66366dda642936d08b3217770e77e3096b511a32b7e2c0e4955ace6eaff"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/config.rs: src/config.rs changed 23 times in last 90 days, max cyclomatic complexity 25 in flowd::config::merge_config at line 2535. 1 of those changes was a fix/bug commit, and the other 22 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/config.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config.rs"},"region":{"startLine":2535}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f83fd10120ed4a917dcfc3ce4ccd0d2541e6e1b7c2e6302da48998a13fd067b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/setup.rs: src/setup.rs changed 15 times in last 90 days, max cyclomatic complexity 37 in flowd::setup::setup_deploy at line 396. 2 of those changes were fix/bug commits, and the other 13 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/setup.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":"src/setup.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0365981b6a24dccaaf657649650358de490cbc7f0dfc158391e3895c05c140f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/env.rs: src/env.rs changed 13 times in last 90 days, max cyclomatic complexity 39 in flowd::env::bootstrap_cloudflare_secrets at line 2653. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/env.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":"src/env.rs"},"region":{"startLine":2653}}}],"partialFingerprints":{"codehealthFindingId/v1":"4538c928a8e25642fa154d7eda85bfc21443a0038c89c62861bbff0989de13af"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/skills.rs: src/skills.rs changed 11 times in last 90 days, max cyclomatic complexity 24 in flowd::skills::fetch_skills at line 792. 1 of those changes was a fix/bug commit, and the other 10 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/skills.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":"src/skills.rs"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b2b2d242447232a1fa2c0d971df10956e7413ca8d46b7db3a249068dfd3aa9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/repos.rs: src/repos.rs changed 9 times in last 90 days, max cyclomatic complexity 29 in flowd::repos::bootstrap_home_branch at line 791. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/repos.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":"src/repos.rs"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"662495f7bf5bd61f18830b409978b39aad20496cce01f134490479499e7fdca6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/supervisor.rs: src/supervisor.rs changed 8 times in last 90 days, max cyclomatic complexity 27 in flowd::supervisor::monitor_daemons at line 895. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/supervisor.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":"src/supervisor.rs"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"532a9aa73efd9028c7a1f79ffba6e88870f2bd2898bf60ffa900b26edfe8332d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/deploy.rs: src/deploy.rs changed 8 times in last 90 days, max cyclomatic complexity 27 in flowd::deploy::deploy_host at line 877. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/deploy.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":"src/deploy.rs"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ce74f9e5a38f706c757e3dd0759e5fbd459249f8b8d2ffa9a53b22d84277b1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/code.rs: src/code.rs changed 9 times in last 90 days, max cyclomatic complexity 19 in flowd::code::move_sessions at line 702. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/code.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":"src/code.rs"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae86ef3246c7571fb831e12cd9e2b2051a71c430a0ae047a35ae52c3a3b97a4f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/jj.rs: src/jj.rs changed 9 times in last 90 days, max cyclomatic complexity 15 in flowd::jj::run_workspace at line 530. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/jj.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":"src/jj.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c042babaf4887489a206b23d35d522decab8d77fc5a9391de1f804efd22235"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/task_match.rs: src/task_match.rs changed 6 times in last 90 days, max cyclomatic complexity 17 in flowd::task_match::run_with_tasks at line 175. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/task_match.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":"src/task_match.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52cade6741abb2a65c8dda8d0cca2bfcaf78a8befe48f103a9d297f327ed216"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/upgrade.rs: src/upgrade.rs changed 6 times in last 90 days, max cyclomatic complexity 16 in flowd::upgrade::run at line 551. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/upgrade.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":"src/upgrade.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dfcefff1fb7b8b3180f53041705aa5a2ace40c653c5da704597857b95bb2a46"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/hive.rs: src/hive.rs changed 3 times in last 90 days, max cyclomatic complexity 23 in flowd::hive::discover_agents at line 188. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/hive.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":"src/hive.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7501d3790dd51ed5ded1825fb2980314dc797d36754d09afda6515d272d52c4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/publish.rs: src/publish.rs changed 2 times in last 90 days, max cyclomatic complexity 33 in flowd::publish::run_github at line 111. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/publish.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":"src/publish.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c370baf6c48fb8966bab3167986cc47c6c74ec4dd022e3333e45bf9c40b50f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/bin/ai_taskd_client.rs: src/bin/ai_taskd_client.rs changed 3 times in last 90 days, max cyclomatic complexity 20 in flowd::bin::ai_taskd_client::run at line 61. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/bin/ai_taskd_client.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/bin/ai_taskd_client.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd652c4d12e8d71c3d7618ebf35d6dd9e73fd3a5aa50f253d3077c2f7edf6ba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/codex_memory.rs: src/codex_memory.rs changed 2 times in last 90 days, max cyclomatic complexity 29 in flowd::codex_memory::fact_score at line 592. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/codex_memory.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":"src/codex_memory.rs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0868ac9ec1a142267262f65f06d4a95159cb8ba17c5cee00ca9cb3f3124f46"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/ai_everruns.rs: src/ai_everruns.rs changed 3 times in last 90 days, max cyclomatic complexity 18 in flowd::ai_everruns::wait_for_completion_sse at line 160. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/ai_everruns.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":"src/ai_everruns.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ccdccede8f851ce599c6595937ae66dc0e1424437f3f16b9a14f302589be76b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/deps.rs: src/deps.rs changed 2 times in last 90 days, max cyclomatic complexity 25 in flowd::deps::build_pick_entries at line 746. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/deps.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":"src/deps.rs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10a757c93a8fd25771d8deb66b96d0c4502520f61cf7eea131e287873e45f5d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/ssh_keys.rs: src/ssh_keys.rs changed 2 times in last 90 days, max cyclomatic complexity 20 in flowd::ssh_keys::upsert_ssh_block at line 294. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/ssh_keys.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":"src/ssh_keys.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0f91f62fa15d1f8e5b046154371c6bd568f89325ddc3c6c994e2c635fc0d73"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/proxy/trace.rs: src/proxy/trace.rs changed 2 times in last 90 days, max cyclomatic complexity 19 in Method::from at line 55. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/proxy/trace.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":"src/proxy/trace.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"357786286349bfbd3dae0f641f5c9d266023511c193ee574184d3dbebda4e83b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/gitignore_policy.rs: src/gitignore_policy.rs changed 2 times in last 90 days, max cyclomatic complexity 15 in flowd::gitignore_policy::run_scan at line 188. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-14 23:37:33 -07:00\u0027 --until=\u00272026-04-14 23:37:33 -07:00\u0027 --full-history --no-merges -- src/gitignore_policy.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/gitignore_policy.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26385982783f7e7aa7b7e13a7aa2a675beb0b67510df6f46692443995d7eadd"}},{"ruleId":"D16","level":"warning","message":{"text":"bus factor 1 \u2014 one contributor carries this repository: 3 contributor(s) have commits in this repository (automation and bot accounts excluded), but the commits of a single one of them cover most of its history \u2014 90% of the 468 commit(s) sampled \u2014 so the number of people who actually carry it is 1. This is not the ambient state of a solo project: there ARE other contributors, and if the one who carries the repository becomes unavailable, the knowledge behind most of its history goes with them. Spread the next changes deliberately \u2014 have a second contributor review or pair on them \u2014 and write down the parts only one person can currently change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a99f114ab4dfee37ae0bf0665b44c7468d85b809d361949e2b6258101fa1e5a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Implement tool logic \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39f8898d01cd805ecdbc44eceb6a05c8bf9781c99b3c6f7a64dc204dfdb5b54"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: track actual review time \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commit.rs"},"region":{"startLine":4126}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c5ee6722910ce59ace613cc05be6c16703fb86b737aa28f858a3db20f26a4c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// Todo id (short prefix or full). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli.rs"},"region":{"startLine":2142}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c222db76a0bf25ce22f8cce115c2be8af5fbe28e3d9b26011ae1a40af2263e5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// Todo id (short prefix or full). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli.rs"},"region":{"startLine":2147}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d10ac1ae292a3730eeba614a587cc9e26e859b2ebff002f15647e10e5d6fe0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// Todo id to fix. If omitted with --all, fixes all open review todos. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli.rs"},"region":{"startLine":2152}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ebb68d645ec2945fdcca984de129bdf45de159535437f9ce7f825bbc104bf91"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// Todo id (full or prefix). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli.rs"},"region":{"startLine":3792}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d455e5f980cd91d3ca581a51d362a0fd00bc69a2459363e40cd746a269f007"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// Todo id (full or prefix). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli.rs"},"region":{"startLine":3797}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57545571c28d0853bf67762f97fef6fb3919b13662089037c2e0f478d2ad8c2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// Todo id (full or prefix). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli.rs"},"region":{"startLine":3811}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d94d401a3b57cfa4c419bb9379e0453428b0976e3879dc0bb15845bf198481"}},{"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."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D22","level":"warning","message":{"text":"Three methods in the same type perform the exact same arithmetic operation (addition of two u64s) with identical signatures. The naming suggests different implementation strategies (host boundary, inline, function), but for a public API consumer, these are redundant operations.: Remove \u0060rust_inline_add\u0060 and \u0060rust_fn_add\u0060, keeping only \u0060flow_host_add_u64\u0060 as the canonical addition operation, or rename them to reflect distinct semantic purposes if they are not truly identical. (signatures: flow_ffi_host_boundary.flow_host_add_u64(a: u64, b: u64): u64 | flow_ffi_host_boundary.rust_inline_add(a: u64, b: u64): u64 | flow_ffi_host_boundary.rust_fn_add(a: u64, b: u64): u64)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"22fa7ffeedd183e33a038c13ca806695c9b8072c7e7be95946faf3656f5a6b0d"}},{"ruleId":"D22","level":"warning","message":{"text":"Two methods on \u0060SeqClient\u0060 appear to perform the same core action (sending an RPC request). \u0060call_ok\u0060 likely implies a wrapper that asserts success or handles errors differently, but without distinct return types or clear semantic separation in the name (e.g., \u0060call_async\u0060 vs \u0060call_sync\u0060), it creates ambiguity about when to use which.: Rename \u0060call_ok\u0060 to something that indicates its specific behavior (e.g., \u0060call_and_assert_ok\u0060 or \u0060call_blocking\u0060) or remove it if \u0060call\u0060 is sufficient for all use cases. (signatures: seq_client.SeqClient.call(request: RpcRequest): Result | seq_client.SeqClient.call_ok(request: RpcRequest): Result)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"425a12312cc3236245f792f6e1d01ff487ffa3958afa90522d8efacf9ae083a8"}},{"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":"22ef102b8be7fd2666f124b5fbef2a6bd6b85a1d9d2a2b02f062b7a1d4bc7bf1"},"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"}}]},{"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":"859ceec920d65249e34feebd9d6e817f60f6d1d6e982b9bc8c00f0a53ce6bd58"},"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"}}]},{"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":"846059042f31859f65e980ccc81c24b93764d3bae0747be29a651b01b620a207"},"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"}}]},{"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":"6716b779d3cdc360b776bc7fff6c0b8f03aca4ae91f9a6b3a8be4dbcb3d9cde2"},"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"}}]},{"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":"23ff7b8e1754b95479738c3bac0277f37436ddbcfb1a6fe70a259c1abfd8e4e9"},"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"}}]},{"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":"358185b742b90acf98c78fad56fc33f36e1bfa82af65cf1855749ccaab60435b"},"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"}}]},{"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":"92867c55181b49bca5388172deed9da18dde07fd5fd3af0348e6043ac44ecdb2"},"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"}}]},{"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":"df481c5f7c51ae3a15172f6634f922e449681c956c549381e8abb241931fb9f0"},"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"}}]},{"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":"22dfee4028b9e647798a41001809cb92f30354b46f3e897634c5e2cfbad3bcee"},"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"}}]},{"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":"e2273345b2eccac3c84068dc6eba8b459d3522e3463aa39f30a077791f653247"},"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"}}]},{"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":"59e7499336d2bba9935e57d1acb5d90f21711c238ca9ef5d0816cf3710c2858d"},"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"}}]},{"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":"bfac69860efeb60525f7f63d3d9f8dae15ce8e53fe5cdb0e1ad55d7ad77ed97a"},"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"}}]},{"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":"989cfdd8b1ce65094cc723fc186b7457b33c42b4d2f1f8de14c3a067746bd7e9"},"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"}}]},{"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":"450e8358792cbdddfe18b4ee52bfe1e487854a9f3ba7ef1b113063ad2f36d7d1"},"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"}}]},{"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":"1b75795236fe1df3bbb1f054479f338af46ad20410bf182a13626fab69b4df36"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"41242ab872cd679d40f7c9b462e6e02b03a47d519b477227398d33dc20bf9cb6"},"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"}}]},{"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":"69a8bd5b8c0bd38c711a6fd7e9f3fac7bd30b1a76752e16f4230ef16bee7b06a"},"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"}}]},{"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":"d13141486c2f67d84fffb837e6c208ccbb35e1dc9a9af402f74f098e7da19bd6"},"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"}}]},{"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":"32f6016def56a5af13c590bbb6f7853bf9d89738abdcd9b8b05e22282a742d90"},"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"}}]},{"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":"8f17fe706d1cdfdb3f34f3b4fe02a778cb484232e11831c96de498c873b84a81"},"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"}}]},{"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":"2d1d7020e1796741737c3ebc4791e74014055766d5047fff6b0e0af88701db14"},"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"}}]},{"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":"36fb4306bdcd87c2126d6b64d1834205716bd7ad38b2ebfc7c929b3fb2c38395"},"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"}}]},{"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":"d5fe1f59bbe23adc0cc5bbfae69d52562b5cae7f96d8111270b931d754d29d44"},"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"}}]},{"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":"4d92912665bd856e9faaf03fff0d28efe580a79eca773e515efdb0a9aaaf5749"},"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"}}]},{"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":"35ac9897917fec0d8cb9408b392c5cbf3e462d5185cf5acb06323f8182bfc7c6"},"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"}}]},{"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":"49a2f48b8c3b0819f18e145d791eb2d695da939199a380334a11eb27aaed460c"},"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"}}]},{"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":"415032872fae62c12a5da6a368aa565cf9221dda919c9066771b5fe35dbd23ac"},"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"}}]},{"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":"f5dcc24cbb29a80a6c43ddab65be7f2f834dc482fdc8199456cd8f15fe32e40a"},"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"}}]},{"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":"fb77aba732b28f82ccb9c377e4e169a9b8fe151e50777a9cb86b1e6cfa6ca29f"},"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"}}]},{"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":"d64c6adfbf920e3ae2a27bcb02183649aeebe67b192c1d17b83197ca61e0b256"},"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"}}]},{"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":"5be03ab325ce0dd57044d4e411f1428508ecf7870bea56774afff406be2e7ce3"},"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"}}]},{"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":"4f92241376401502a76b0521c8325ec5ac4b2679a6c13f66166ec884cf715b80"},"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"}}]},{"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":"57d94ecf1e4e1b67a0a20e1126764020d74cc51d3a14b0d8b3faf921de4f9ffd"},"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"}}]},{"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":"24b517431b3e919e9b5a5d58c41a27d01de9d35e82a6358b67430bedc30b9569"},"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"}}]},{"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":"5bef425293a36bbe7c4edbf952d5ec247c3c4261145151b042987d182b661b3c"},"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"}}]},{"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":"6819b36024d45f5f0e1d43e74427f1e72c7d8dae5d09101e0f966a51bf6829ab"},"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"}}]},{"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":"75369c09bb288495c1ec96550eb2aa9585bb73f2d0abcdd876376a94900b52cc"},"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"}}]},{"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":"858eb7f80b7507dfba0c3f1f3da34922e68eec00c263f8d42558fd15e99292b9"},"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"}}]},{"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":"3697f1522e19a638b7ef88b7aaf49350d5b9b08b7c831fcbc85b3c68f84dd986"},"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"}}]},{"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":"b9b269771de87508f93bcb7c5cbe1611e1659661ed32a64ae654ecfae8b161cc"},"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"}}]},{"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":"ae59d5e9dd2c30e110a21be3f2f3e4339df91ffb4154cfcf5f17bedb858ec684"},"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"}}]},{"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":"3643ff687baaf09e4fa86f24721b381bb8ec583e4fb1bc9174a893ca376bdfb1"},"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"}}]},{"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":"64aee044c1f4dd4bb7a77441c8cfb2ad1960dbe2c5bbb6dcc4a3af1fa08e7b62"},"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"}}]},{"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":"957b150e90b8de065e3fab913d6db8aa84cc38085b4826b482eaabde0c4cf347"},"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"}}]},{"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":"865c1256b0af6cac7fabd52ec1703a6840a81e82c2cc09619e5e78e47af02756"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"6ed059458dc0d864f79fffc2c8cd3f09ac2213f256b255ba1e07734350228541"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"ac9cf489a8df169b2be59bc02ed972b83c19135bd9836c21beec7dbc9ada4b93"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"b4b4f04291779fc9eafdaba151af7344274206de66e6d5d94bd0295b94058b0f"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"966f23224a5af55b2da66d34041b22b210dbe0556ed94d1d609995eb797decf1"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"730ea5c8b7d302c194627c593e11367894238f600c1321d7909bb7afbc519cfa"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"ccadc1540d1dbe05aec6f30110bf5f9127949e550bcaff55d122ab2b4ba76513"},"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"}}]},{"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"}}]},{"ruleId":"D30","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":"253b1c7621e5ebc6c96c53f077cb5f04f7e5a3064e8ebabcb105180a94fcc2c2"}},{"ruleId":"D30","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":"d546733b9ca45c1bd162da0b0b01ea42af530b6ed35676e28a14281b1424acd0"}},{"ruleId":"D30","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":"b5308f9ed219ff7d361ed2b01ab7b5fa7a33b0013fcd35575e7068ccda1d2997"}},{"ruleId":"D30","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":"0d3d2c2346bccaaa14c1bd0f0713c18ae4de849fffdc7282dbd533ab105c9398"}},{"ruleId":"D30","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":"568461a6b94639b9a1aa36653e27227b87a331f4bf6433de765559528d9520fd"}},{"ruleId":"D30","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":"c9cf3c583f310ea7e342dd7f8ef456f46b5cc58884162a6bd1d9c793e5b6ce74"}},{"ruleId":"D30","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":"022b735d38a50b0ad3d8abbbc65ccb5011daca9574dd58e5cc93cefcbe43e227"}},{"ruleId":"D30","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":"5774e3129cac03bf9d0e4902578c2c704286b3aca248f59e7e665889246e2d73"}},{"ruleId":"D30","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":"55dafb5dd1a9bfa0286572041c83230db1fdbb3e170dceaf78ee18fc0f94ae0f"}},{"ruleId":"D30","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":"867965bbc7bd1d9612909d7adef7979aace3ae2bd12baf0207693718c69f5a2a"}},{"ruleId":"D30","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":"09dd1585f87b310ce749900f51a377d64d5a828aee1ca82686d6da2bd9888a0a"}},{"ruleId":"D30","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":"9e44dda7fe1f0b69e1bfd0368da24383883c61b3f1fd579c67585219b670e644"}},{"ruleId":"D30","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":"27e162474dde2c9361a105b038933373cd874345b54fa8c92f26cb908472d9c6"}},{"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":"b066a2b58ae4db7be6d042309847a8825c9fbea4c10daa49bc531dab4309fb0b"}},{"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":"fd5c585b8c54c369819773fdb0ddd1383b1d0b3ca7573d38678c34407fbff305"}},{"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":"9040b7ad52b862da8ec54c50aafe5b7aad49e0d3c7df8ecb342f09947efda51b"}},{"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":"e7ab2b6eed616a0e388106792fa120b8325767e6095522d742aa4438840e848a"}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"759d36a63e8483c4a467399ff199fa57fa2e02d89ef311720974588edb9516d4"}},{"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":"422864efbc32ee020d94634a443edac9d818b90faf02ac96d91c4d66ffa4da37"}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c4a0c58aca13bc848c37d4c3d5bcb90f8e046f8df5b386f5a3743d0625ad8dae"}},{"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":"80b5c22beae306eb623d7a60ec13361ab89285e1cc30fcf5b8daa2e87ffb5c69"}},{"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":"3035e85b1a9c0c33df37dc333f490439b3fa52aefda24a401e2e75a177cdf778"}},{"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":"4422028c03a32871e5233403e0308e8f6b20d31e756da7763ac9c84f419ace4d"}},{"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":"0edbe0c20f21720d5285b2663177b2e3ab8c055b3130ca092c57460fd8d8174a"}},{"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":"510b0c198150a1a92e7161d2206c9a297f1e519838cce1206883e22c5a54a3e2"}},{"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":"13586fc0c39afd311c8f68b33f2e89fbb1618f43b2d8bc54d4d00cd4d7925790"}},{"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":"f35bcb5a3b582c92e6a7d51caec3ab2557cbdd9baaad1832ae7151bb7deb455e"}},{"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":"22c83ba4fc8bb777b63c87c99a755cd50469c75c7e9be2ed03a96e769d562df6"}},{"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":"854da5cef13784fde7cfff8a79eb2a7417bef798a376f1ff9e501c0d2a107a1d"}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe483185304777394ca64862c3bf831fd8bd990bc1e65afa404b77088d9ff4e7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: cli.rs \u2194 config.rs: \u0060src/cli.rs\u0060 and \u0060src/config.rs\u0060 change together 57% of the time (37 of the 65 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 37 shared commits counted here, the most recent 3 are \u0060a47f2aaa\u0060 feat(codex): add daemonized runtime skills and scorecards; \u00605d649f27\u0060 Harden env storage and add Codex URL resolution; \u006022c55336\u0060 feat: add jj workflow status and local env improvements \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63fcb4ede51c73fd7e5262ffccf57493c7b50a6243493742ef3b032e4b11ebe"}},{"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"}},{"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"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"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":"01617c8618e3c4e3878dbf35ba9ff053ccec9d7cd1ea559a8db623472c13a49c"}},{"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"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: flowd \u2192 seq_client: \u0060SeqBridge\u0060 (slice \u0027flowd\u0027) depends on \u0060SeqClient\u0060 from slice \u0027seq_client\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ai_everruns.rs"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc8b33b0d34834b73a8164a383afedc99377a283fda18030f7c569791cbbbd4"}},{"ruleId":"M1","level":"warning","message":{"text":"README may be stale: 45 code files changed in the last 6 months but the README was not touched \u2014 it may no longer reflect the system."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e973e7a8d5d866995cbf78b120250fe7f132bf928812d48ca62e69aba11b9910"}},{"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":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add cargo-audit / cargo-deny (or clippy) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 18280 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release 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 the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: No Content-Security-Policy / X-Frame-Options / X-Content-Type-Options configuration found \u2014 defense in depth, even when a reverse proxy could set them. This is reported because \u0060cdn-nginx.conf\u0060 is committed to this repository and declares the server that serves it, so the configuration that would carry these headers is in this repository and was read in full. (\u22122.0 on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/cdn-nginx.conf"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"314571326e0b01e5e83a417bd9faaa1ee7bbb0205689fb9c850c8b9edac9714c"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060scripts_str.contains(\u0022pnpm run\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060scripts_str.contains(\u0022pnpm run\u0022)\u0060 also satisfies \u0060scripts_str.contains(\u0022pnpm \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":"src/setup.rs"},"region":{"startLine":2385}}}],"partialFingerprints":{"codehealthFindingId/v1":"06954b44b55819ba861cd3698aa73fec654b30c6c9c40182e82da57f1c4475d0"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060scripts_str.contains(\u0022bun run\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060scripts_str.contains(\u0022bun run\u0022)\u0060 also satisfies \u0060scripts_str.contains(\u0022bun \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":"src/setup.rs"},"region":{"startLine":2388}}}],"partialFingerprints":{"codehealthFindingId/v1":"11124930aec47154c2f365e469811f78bf8a514013c1c38deaca85c2870f39a9"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060manifests_set.contains(\u0022bun.lockb\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060manifests_set.contains(\u0022bun.lockb\u0022)\u0060 also satisfies \u0060manifests_set.contains(\u0022bun.lock\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":"src/repo_capsule.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"1655e78a7f3f407d6259e1f5d2cb4fd3dbdea4749ee3fb1b90e265bed78c5673"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060lowered.contains(\u0022untrack\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060lowered.contains(\u0022untrack\u0022)\u0060 also satisfies \u0060lowered.contains(\u0022track\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":"src/jj.rs"},"region":{"startLine":3520}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c924dd87afe259664cd663a9df36352bc3682b0475041ae7fe0090436bc029b"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060lowered.contains(\u0022example.com\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060lowered.contains(\u0022example.com\u0022)\u0060 also satisfies \u0060lowered.contains(\u0022example\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":"src/env_setup.rs"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"5044168a8a60367cdc886b872f651a9f403d3d92ebe03a07f365b57c10b6f2d4"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060name.contains(\u0022development\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060name.contains(\u0022development\u0022)\u0060 also satisfies \u0060name.contains(\u0022dev\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":"src/env_setup.rs"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe9a79c3bd241d63a58812d0917d9221da0a024dda38ab027c82b1b66504db4"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060name.contains(\u0022production\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060name.contains(\u0022production\u0022)\u0060 also satisfies \u0060name.contains(\u0022prod\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":"src/env_setup.rs"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"147089e95b8241befd2142146c032b08c8b49751220a02ed362f6adce863824a"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060lowered.contains(\u0022example.com\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060lowered.contains(\u0022example.com\u0022)\u0060 also satisfies \u0060lowered.contains(\u0022example\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":"src/deploy_setup.rs"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab01de23a5a74d44e7be43df0466147268714477b69872976f801396b08dd17"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060m.contains(\u0022documentation\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060m.contains(\u0022documentation\u0022)\u0060 also satisfies \u0060m.contains(\u0022doc\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":"src/commit.rs"},"region":{"startLine":3824}}}],"partialFingerprints":{"codehealthFindingId/v1":"2544cc745ac61cbcf308a436254ffde9ed1f4cface16c8b24e2175bec37aebd5"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060lowered.contains(\u0022performance issue\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060lowered.contains(\u0022performance issue\u0022)\u0060 also satisfies \u0060lowered.contains(\u0022issue\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":"src/commit.rs"},"region":{"startLine":5527}}}],"partialFingerprints":{"codehealthFindingId/v1":"43210903549600a04119b78b266c162a1f255e2692c54734f6ea7872e8ebc146"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060lowered.contains(\u0022performance issue\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060lowered.contains(\u0022performance issue\u0022)\u0060 also satisfies \u0060lowered.contains(\u0022issue\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":"src/commit.rs"},"region":{"startLine":5761}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e2bc13f51cbc8984f4e97026150ef869b9093dc5b5bb1207d5bdb38fda22e0"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060lowered.contains(\u0022performance issue\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060lowered.contains(\u0022performance issue\u0022)\u0060 also satisfies \u0060lowered.contains(\u0022issue\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":"src/commit.rs"},"region":{"startLine":5891}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2aa0c5f8b156920830d47cfec9ca0782885c7b02f38db8d0b1683c4029aa272"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060lowered.contains(\u0022performance issue\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060lowered.contains(\u0022performance issue\u0022)\u0060 also satisfies \u0060lowered.contains(\u0022issue\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":"src/commit.rs"},"region":{"startLine":6092}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1e5a6a81056d111b429bb118bc6742a04da4bdbb212c70f2c351a6a232b4ec"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060lowered.contains(\u0022performance issue\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060lowered.contains(\u0022performance issue\u0022)\u0060 also satisfies \u0060lowered.contains(\u0022issue\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":"src/commit.rs"},"region":{"startLine":6239}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3830a1de82153c29610904844a753717afb711e7cfa2b7cd500320855899769"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060lowered.contains(\u0022performance issue\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060lowered.contains(\u0022performance issue\u0022)\u0060 also satisfies \u0060lowered.contains(\u0022issue\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":"src/commit.rs"},"region":{"startLine":6531}}}],"partialFingerprints":{"codehealthFindingId/v1":"448e11ce8c03a42fd135920a299df92ef4557ed7cf5624463fde41c0de91980b"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060lower.contains(\u0022issues.external_ref\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060lower.contains(\u0022issues.external_ref\u0022)\u0060 also satisfies \u0060lower.contains(\u0022external_ref\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":"src/commit.rs"},"region":{"startLine":13574}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e561a8bb95513b8a73622e09bbf7f0d2d6185c5c16111ed10056ce36d549d18"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060snippet.contains(\u0022pub name: String,\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060snippet.contains(\u0022pub name: String,\u0022)\u0060 also satisfies \u0060snippet.contains(\u0022pub name: String\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":"src/codex_memory.rs"},"region":{"startLine":2241}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d5151048dd25c6cecea90f55df0dbc9dce4e44f878af4df7422ab43340cd87"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060body.contains(\u0022unauthorized\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060body.contains(\u0022unauthorized\u0022)\u0060 also satisfies \u0060body.contains(\u0022auth\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":"src/proxy/summary.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d0f0c2a1dc0b8777617463b978092b2a6c2a3367b91f095da9368e390c4b27"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"CWE-506","shortDescription":{"text":"CWE-506"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"CWE-522","shortDescription":{"text":"CWE-522"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-552","guid":"3492436b-eca2-9c54-9ba3-5dade427c903","name":"CWE-552","shortDescription":{"text":"CWE-552"},"helpUri":"https://cwe.mitre.org/data/definitions/552.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"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":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"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":87,"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."]}]}