{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"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":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"ES1","name":"Fold determinism","shortDescription":{"text":"Fold determinism"},"helpUri":"https://codehealth.canine.dev/dimensions/ES1"},{"id":"ES2","name":"Immutable events","shortDescription":{"text":"Immutable events"},"helpUri":"https://codehealth.canine.dev/dimensions/ES2"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"propose.validate (cyclomatic 53): propose.validate has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent 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":"tools/intake/propose.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa539513c2d26329fdddebd840afcdd73236328ef42f3ee49e4f5a701f9319f3"}},{"ruleId":"D1","level":"warning","message":{"text":"mutation_check.main (cyclomatic 31): mutation_check.main has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/mutation/mutation_check.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"defd2ea3a53df6f9cbca2cc45b9f174720732d180a1e8a87ae6e9917f462fc42"}},{"ruleId":"D1","level":"warning","message":{"text":"craft_ai_egui::native_setup::native_model_setup (cyclomatic 30): craft_ai_egui::native_setup::native_model_setup has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-egui/src/native_setup.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e584a1f0c50fd6fe14c228b32c265db6252859685030cd039d48d59bc1d715b"}},{"ruleId":"D1","level":"warning","message":{"text":"craft_ai_comfy_env::portable::extract_7z (cyclomatic 27): craft_ai_comfy_env::portable::extract_7z has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfy-env/src/portable.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e96167693879ec77a94cb72ab53e4ac7fa1cc8fa37c29d4d4339f3bd7ade979"}},{"ruleId":"D1","level":"warning","message":{"text":"craft_ai_engine_rten::resample::preprocess (cyclomatic 24): craft_ai_engine_rten::resample::preprocess has cyclomatic complexity 24 (threshold 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":"crates/ai-engine-rten/src/resample.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83cf4ff7e8fc314efac12ddbd4eef219caad9bb52c311f137ee7ca26c2611d5"}},{"ruleId":"D1","level":"warning","message":{"text":"ArtCraftProvider::poll (cyclomatic 22): ArtCraftProvider::poll has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-artcraft/src/provider.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"32fb63bc15a87a8d82ec4f464937d66f2e57c115d226b192f7b8e99ec071f946"}},{"ruleId":"D1","level":"warning","message":{"text":"craft_ai_comfy_env::model_folder_scan::scan_with_limits (cyclomatic 22): craft_ai_comfy_env::model_folder_scan::scan_with_limits has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfy-env/src/model_folder_scan.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de14f4197c1f79c6409a5daea194a4559e1f98b8e20622be617258f0570434b"}},{"ruleId":"D1","level":"warning","message":{"text":"craft_ai_comfy_env::source::pack::archive::unpack (cyclomatic 22): craft_ai_comfy_env::source::pack::archive::unpack has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfy-env/src/source/pack/archive.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"146693cade7d9d2e2e3695718361958a9f3b71567afbabf3b54aa006316f1dae"}},{"ruleId":"D1","level":"warning","message":{"text":"craft_ai_features::setup::offer_for (cyclomatic 22): craft_ai_features::setup::offer_for 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-features/src/setup.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"967f92e7211517c5b2ebedae73b632eb3a3a5e74d2e2a15361917b0f9c408a7c"}},{"ruleId":"D1","level":"warning","message":{"text":"craft_ai_egui::form::connection_form (cyclomatic 21): craft_ai_egui::form::connection_form has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-egui/src/form.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"46dcf6f799e5759011aa9d194da91c9d854245600ff55c0d54333ecb0db6fae5"}},{"ruleId":"D1","level":"warning","message":{"text":"craft_ai_engine_candle::mask::preprocess (cyclomatic 20): craft_ai_engine_candle::mask::preprocess has cyclomatic complexity 20 (threshold 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":"crates/ai-engine-candle/src/mask.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b01f10884e92ccf49315449cbfd9b760b39afd7aecd0effc3ee3afc55be9586"}},{"ruleId":"D1","level":"warning","message":{"text":"craft_ai_burn_setup::cache::prepare (cyclomatic 19): craft_ai_burn_setup::cache::prepare has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-burn-setup/src/cache.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"234f9c68e0f1164ecce5425632681cef9ed142472909916f0c48bb2af45fcc0e"}},{"ruleId":"D1","level":"warning","message":{"text":"craft_ai_comfy_env::detect::parse_extra_paths (cyclomatic 18): craft_ai_comfy_env::detect::parse_extra_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":"crates/ai-comfy-env/src/detect.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"65183aa3827912ef361b01bc59d3bf8f9b57cdbbc90bd270b96a80a5bee0744c"}},{"ruleId":"D1","level":"warning","message":{"text":"craft_ai_egui::progress::job_progress (cyclomatic 18): craft_ai_egui::progress::job_progress has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-egui/src/progress.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"885e68bf85ff7bbe59eceebe4cb03973c857324ce3763a9bfc7b80b6303ea803"}},{"ruleId":"D1","level":"warning","message":{"text":"Sam3Point::segment (cyclomatic 17): Sam3Point::segment has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfyui/src/sam3_point.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c30a7082aed7028044024bfd48292ba50bca015009ba31d255a8f475bc3889"}},{"ruleId":"D1","level":"warning","message":{"text":"craft_ai_engine_burn::inspyrenet::pipeline::guided::refine (cyclomatic 17): craft_ai_engine_burn::inspyrenet::pipeline::guided::refine has cyclomatic complexity 17 (threshold 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":"crates/ai-engine-burn/src/inspyrenet/pipeline/guided.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a52ced5e7b7ba330b02dec38c9a0a0c13fd1af252f8d4dd1d2b6d1d1dae9885"}},{"ruleId":"D1","level":"warning","message":{"text":"craft_ai_media::sniff::media_type (cyclomatic 17): craft_ai_media::sniff::media_type has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-media/src/sniff.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad156e2eb99bce276502e66b57cd15afacdde6814dfc2d3d0e13507ee9a2b5a"}},{"ruleId":"D1","level":"warning","message":{"text":"craft_ai_client::picker_groups::unset_groups (cyclomatic 16): craft_ai_client::picker_groups::unset_groups has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-client/src/picker_groups.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"647c682dc596601f241d28a3eb00cea30f86470c42bd3ad8f92c63f229ce541d"}},{"ruleId":"D1","level":"warning","message":{"text":"Installer::check (cyclomatic 16): Installer::check has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfy-env/src/source/install.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fec7e4653b188f568f06a926560fdf5361ea020e4c7cca6f99230d50a6952c0"}},{"ruleId":"D1","level":"warning","message":{"text":"craft_ai_comfy_env::model_folder_scan::guess_within (cyclomatic 16): craft_ai_comfy_env::model_folder_scan::guess_within has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfy-env/src/model_folder_scan.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"19447bd4a09fd8d5783f1816406f87616b65c5c1e97f796d892fc241532b466c"}},{"ruleId":"D1","level":"warning","message":{"text":"craft_ai_core::model_folders::validate_folders (cyclomatic 16): craft_ai_core::model_folders::validate_folders has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-core/src/model_folders.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b495916cfa81699541367c2784771047b554b0286979bd4305814a6c6681ae"}},{"ruleId":"D2","level":"warning","message":{"text":"propose.validate (cognitive 88): propose.validate has cognitive complexity 88 (threshold 15). Drivers by points: if/else 31 (63 pts), boolean chains 18, ternaries 3 (6 pts), loops 1 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/intake/propose.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0604a8792c26664a3f4a46d100c494be1423183a3e32b9aefb4a6d91adf292"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_engine_rten::resample::preprocess (cognitive 71): craft_ai_engine_rten::resample::preprocess has cognitive complexity 71 (threshold 15). Drivers by points: loops 17 (57 pts), if/else 6 (13 pts), boolean chains 1 (nesting depth added 47). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-rten/src/resample.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3766ec6c2fa9ffae766eb99103d1d98f7bc04a5eb82f3e8f3ae4804c4ea32a"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_comfy_env::model_folder_scan::scan_with_limits (cognitive 52): craft_ai_comfy_env::model_folder_scan::scan_with_limits has cognitive complexity 52 (threshold 15). Drivers by points: if/else 17 (45 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfy-env/src/model_folder_scan.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d58c660359c7538b4fdcf91c5fab634140b522df152e9bff0d6f6c7dece845"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_egui::native_setup::native_model_setup (cognitive 47): craft_ai_egui::native_setup::native_model_setup has cognitive complexity 47 (threshold 15). Drivers by points: if/else 27 (39 pts), match/switch 2 (4 pts), boolean chains 2, loops 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-egui/src/native_setup.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"a508fcbd0b4c3f077d466b640623654309e57ee3a14b1d4f94f3ea696808e16c"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_engine_candle::mask::preprocess (cognitive 47): craft_ai_engine_candle::mask::preprocess has cognitive complexity 47 (threshold 15). Drivers by points: loops 14 (37 pts), if/else 4 (9 pts), boolean chains 1 (nesting depth added 28). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-candle/src/mask.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4927a32b21a5d52f9ebf558e6021ef95e9585f37270eab28063eee4b32c7ac6"}},{"ruleId":"D2","level":"warning","message":{"text":"mutation_check.main (cognitive 44): mutation_check.main has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (16 pts), ternaries 9 (16 pts), boolean chains 7, loops 2 (3 pts), error handling 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":"tools/mutation/mutation_check.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14dc76c622933e08e46093d935f740bf6a7b0336354f6201eed29e4b174c5fc"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_egui::progress::job_progress (cognitive 38): craft_ai_egui::progress::job_progress has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (33 pts), boolean chains 4, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-egui/src/progress.rs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6001f4c895076038216dfc6c01e865ebcd5bba0ce935f3585749c651a3034699"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_engine_burn::inspyrenet::pipeline::guided::refine (cognitive 34): craft_ai_engine_burn::inspyrenet::pipeline::guided::refine has cognitive complexity 34 (threshold 15). Drivers by points: loops 12 (25 pts), if/else 4 (9 pts) (nesting depth added 18). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-burn/src/inspyrenet/pipeline/guided.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"6206ba24c3824607e2b28f5e29a16dcf4f7fa690cc14f08cf1ae41080d6ad0d0"}},{"ruleId":"D2","level":"warning","message":{"text":"Sam3Point::segment (cognitive 32): Sam3Point::segment has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (26 pts), boolean chains 4, loops 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfyui/src/sam3_point.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"608a2ec7e5ede298aaf7524981b982dfdef9d2e77f63a088754f06320016cdde"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_egui::form::connection_form (cognitive 32): craft_ai_egui::form::connection_form has cognitive complexity 32 (threshold 15). Drivers by points: if/else 21 (27 pts), loops 1 (2 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-egui/src/form.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"7200f2e6e076078923c291581f9a73844ce15e67765d3f419f4d5cff66ac2abd"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_client::picker_groups::unset_groups (cognitive 30): craft_ai_client::picker_groups::unset_groups has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (21 pts), boolean chains 6, match/switch 1 (2 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-client/src/picker_groups.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bdfd81b2f23b2029ca7c976b2018a7989c46cb07c9c3bffe282864f734b3acd"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_burn_setup::cache::prepare (cognitive 29): craft_ai_burn_setup::cache::prepare has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 3 (5 pts), boolean chains 4 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-burn-setup/src/cache.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ffd96ef9019ef94ca91a5ce350aa6f3c32bba61997ceab5c945b6f02f60b537"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_engine_burn::inspyrenet::pipeline::resize::reduce_input (cognitive 29): craft_ai_engine_burn::inspyrenet::pipeline::resize::reduce_input has cognitive complexity 29 (threshold 15). Drivers by points: loops 10 (26 pts), if/else 1 (3 pts) (nesting depth added 18). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-burn/src/inspyrenet/pipeline/resize.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd60e37089e14e2c8fa6409a6ac8660560aaa56e52b9f39b67e2619aa448ada"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_features::setup::offer_for (cognitive 29): craft_ai_features::setup::offer_for has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 7, match/switch 2 (4 pts), loops 2 (3 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":"crates/ai-features/src/setup.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d5b2d858b06b2d0327d527afe305a82b5b892168f077423f5d2963abc6e9ec"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_comfy_env::portable::extract_7z (cognitive 28): craft_ai_comfy_env::portable::extract_7z has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (17 pts), match/switch 4 (6 pts), boolean chains 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfy-env/src/portable.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f79cfd4fbea46840778195139e630a294f7d4d0995da54761c0d321a0d8d04"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_comfy_env::source::pack::archive::unpack (cognitive 28): craft_ai_comfy_env::source::pack::archive::unpack has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (20 pts), match/switch 3 (6 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfy-env/src/source/pack/archive.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"16efcbde2ad80751a74f38947168f19d288075ab9e1729314f20a5ba2b35c620"}},{"ruleId":"D2","level":"warning","message":{"text":"Sam21Session::ground (cognitive 27): Sam21Session::ground has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (23 pts), boolean chains 3, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfyui/src/sam21_session.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29dda281afcd89610d014f9ca8d2c82b851b1b2da8f0abc341634a689086a70"}},{"ruleId":"D2","level":"warning","message":{"text":"ArtCraftProvider::poll (cognitive 26): ArtCraftProvider::poll has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-artcraft/src/provider.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"a914cfc48d703ca3bb464df3b16745d7ef2ecb764eb6d68134bbc8e8ee98613e"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_openai::jobs::run_chat (cognitive 23): craft_ai_openai::jobs::run_chat has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 4 (7 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":"crates/ai-openai/src/jobs.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e25f4518eb17e76aee9dd8b123e72e700f909103c681166d11f9f675179698"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_comfy_env::detect::parse_extra_paths (cognitive 22): craft_ai_comfy_env::detect::parse_extra_paths has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 5, loops 2, 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":"crates/ai-comfy-env/src/detect.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea6a76fed2271da605f105cbc1d331d44086d43545875219fa7018ab5d0c07ce"}},{"ruleId":"D2","level":"warning","message":{"text":"Workflow::validate_installation (cognitive 21): Workflow::validate_installation has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (14 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfyui/src/workflow.rs"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c463a720168bdd427703e1c8465de5e0ae7bb614b67b9df8a0301b5c34fa92"}},{"ruleId":"D2","level":"warning","message":{"text":"Downloader::fetch_checked (cognitive 20): Downloader::fetch_checked has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 3 (4 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfy-env/src/download.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"645dbd25e7d869f6a53a0cf1ea2487749d0a6567a276319873a4ebc59ae937d8"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_features::options::setup_options (cognitive 20): craft_ai_features::options::setup_options has cognitive complexity 20 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 4 (7 pts), match/switch 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-features/src/options.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c73b7e890ea30cb7e500c8b973900ca2c1eb29c7d79d270a9171da8f5e9c9b"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaStore::fetch_once (cognitive 20): MediaStore::fetch_once has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-media/src/store.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"5558218cce8f6492d4906818c51939eca12a1a7c5c570cefbfc1878aba5327b4"}},{"ruleId":"D2","level":"warning","message":{"text":"FolderDesk::native_files (cognitive 19): FolderDesk::native_files has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (3 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-client/src/folders/native.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2038c7ac74d607544f7bec88d1dced4f1ce0682f2c59a655e775d07b029cb34"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionManager::save (cognitive 19): ConnectionManager::save has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 4, boolean chains 3, loops 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-client/src/manage.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4be51e61357debe05c109bb4836b5b336b78dbcd46d3bfa0fab18a0b2c089f"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_core::model_folders::validate_folders (cognitive 19): craft_ai_core::model_folders::validate_folders has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-core/src/model_folders.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6572ce6f298767dd9ae86252f8a5760551fe3e26239d31ecbe03d617003a768f"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_egui::history::history_view (cognitive 19): craft_ai_egui::history::history_view has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (12 pts), loops 3 (5 pts), match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-egui/src/history.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"42466490fbdba49cef36dbb2d10a8ae13737651daf8cfe959bcc366174ac99b3"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_engine_burn::inspyrenet::net::swin::shift_mask (cognitive 19): craft_ai_engine_burn::inspyrenet::net::swin::shift_mask has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 5 (9 pts) (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-burn/src/inspyrenet/net/swin.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5062574d6ec7515ab534eabbaf7f30463a3a8a1162871bc6df2cbd67e02c868"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_engine_burn::inspyrenet::pipeline::matte (cognitive 19): craft_ai_engine_burn::inspyrenet::pipeline::matte has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (11 pts), loops 4 (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":"crates/ai-engine-burn/src/inspyrenet/pipeline/mod.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f7ed42b72983b44676c1046a492538e827ed810f0b199e1980d789aef4bd20"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_engine_candle::nn::sine_grid (cognitive 19): craft_ai_engine_candle::nn::sine_grid has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 3 (6 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-candle/src/nn.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"615c62e1a5593980b3ffc944f2fe9a1f1854ccd9874728859320542cdc1df2b0"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_engine_candle::tokenizer::pre_tokenize (cognitive 19): craft_ai_engine_candle::tokenizer::pre_tokenize has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-candle/src/tokenizer.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3ff926365ea71d18882051b9175a40d82d7985931e1c7523aea3c5fcaacdad"}},{"ruleId":"D2","level":"warning","message":{"text":"Downloader::open (cognitive 18): Downloader::open has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfy-env/src/download/transport.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c8f6f0473f99454d2dfcd4d8b4a1d7609aa970147a6218d95b25617c0ffcb7"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_core::payload::base64_decode (cognitive 17): craft_ai_core::payload::base64_decode has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (13 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":"crates/ai-core/src/payload.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"78448b761bfa9d6a7996e14d85af00893c724e890e923dac41276130c1a84a52"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionPanel::poll (cognitive 17): ConnectionPanel::poll has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 2 (5 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-egui/src/panel.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b71f9880caa9ae7710c22b5187f18c4b7a9c0e55ef1dc9e7f376aa62c4d607b"}},{"ruleId":"D2","level":"warning","message":{"text":"Tokenizer::bpe (cognitive 17): Tokenizer::bpe has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (3 pts), match/switch 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":"crates/ai-engine-candle/src/tokenizer.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc927cb723103cb9ae77a5a907bf4a9168ab360822abebe021e09e7c0ce4878"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_comfy_env::extra_paths::render_extra_paths (cognitive 16): craft_ai_comfy_env::extra_paths::render_extra_paths has cognitive complexity 16 (threshold 15). Drivers by points: loops 3 (7 pts), if/else 3 (6 pts), match/switch 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfy-env/src/extra_paths.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5696d7971ec76e58ae9ab6c9cb7e7530acc0e6d71fed59b997e7b2fbcd015a"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_core::conformance::run_lifecycle_paced (cognitive 16): craft_ai_core::conformance::run_lifecycle_paced 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":"crates/ai-core/src/conformance.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"2749460fc27b2d32f7e7c422af9498639a33d35f1fc335c0ef2e7af1533da680"}},{"ruleId":"D2","level":"warning","message":{"text":"craft_ai_openai::chat::plan (cognitive 16): craft_ai_openai::chat::plan has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 2, 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":"crates/ai-openai/src/chat.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ca635418a4da8a3251b8f6fdebe76e1de30e94b5f9fd3b5dc442f381dc428c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AiClient: TooManyMethods \u2014 37 methods, declared across 5 files: src/client.rs (25), src/client_run.rs (5), src/local.rs (3), src/engine.rs (2), \u002B1 more file(s). The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-client/src/client.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae91942dc3e12a8912590e30ab37f43edb4874bf7526fa5f19be5f08892f405"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mutation/mutation_check.py: FileTooLong \u2014 560 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 60 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/mutation/mutation_check.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"212a55002e1e099eb044dd8c99879c4092f23d054ab2105c2f9492888ac5c65e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: craft_ai_burn_setup::cache::prepare: FunctionTooLong \u2014 craft_ai_burn_setup::cache::prepare runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-burn-setup/src/cache.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"585be495419ad0be40c76cf3c84783794182118a6606ad64cea4ec01dcd58411"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: craft_ai_features::catalogue::try_builtin: FunctionTooLong \u2014 craft_ai_features::catalogue::try_builtin runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-features/src/catalogue/mod.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b73f0c569e4025402e7af3e2295b4030edc530bd663f18ead167b7482477d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: craft_ai_egui::form::connection_form: FunctionTooLong \u2014 craft_ai_egui::form::connection_form runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-egui/src/form.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a47e3f1fe9e20cfd8cb2483523c99cf11605a97fccb25624cc9c77395fc235"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: craft_ai_egui::native_setup::native_model_setup: FunctionTooLong \u2014 craft_ai_egui::native_setup::native_model_setup runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-egui/src/native_setup.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d98f7cc5529cf3341c43ca8265f734d2aed8d234e205943bc49e81477f8056"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): crates/ai-artcraft/src/http.rs:13-28 | crates/ai-bfl/src/http.rs:14-29 | crates/ai-comfyui/src/http.rs:13-27 | crates/ai-declarative/src/http.rs:31-48 | crates/ai-openai/src/http.rs:37-54 | crates/ai-seedance/src/http.rs:12-27 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-artcraft/src/http.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d95241382eeb808cb3913030031e5262a56c7bf0ef4349b2bbd3956b92687b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 2): crates/ai-artcraft/src/provider.rs:108-127 | crates/ai-bfl/src/lib.rs:91-106 \u2014 before extracting anything, compare \u0060crates/ai-artcraft/src/provider.rs\u0060 and \u0060crates/ai-bfl/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-artcraft/src/provider.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"cecb1915677f6e22207d2a5f039e463e6582cff64d623819294d7fbd073b7351"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): crates/ai-comfyui/src/provider.rs:302-317 | crates/ai-comfyui/src/sam21_session.rs:182-196 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfyui/src/provider.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53e1703a0c78c351daa4c9358bc3012721a291c132bae02e99308d39fd5adb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): crates/ai-sam3/src/lib.rs:57-69 | crates/ai-vertex/src/lib.rs:88-102 \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/ai-sam3/src/lib.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcecfacad621d535d1386866702ecfbc834266b9e0dcbbfab0ff36985031fbd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/ai-engine-candle/src/image_io.rs:102-115 | crates/ai-engine-rten/src/picture.rs:182-194 \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/ai-engine-candle/src/image_io.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbad9a727f204f9627daafc56ae4e99896b9b26ecc2cde006936cbf9e3584c45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crates/ai-artcraft/src/http.rs:16-28 | crates/ai-bfl/src/http.rs:17-29 | crates/ai-seedance/src/http.rs:15-27 \u2014 before extracting anything, compare \u0060crates/ai-artcraft/src/http.rs\u0060 and \u0060crates/ai-bfl/src/http.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-artcraft/src/http.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c096895601fd520d86cb270605079f91c2d6b8fbe5f1061301876754e30be8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/ai-comfyui/src/sam3_point.rs:29-41 | crates/ai-comfyui/src/sam3_session.rs:66-78 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfyui/src/sam3_point.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab447ffbfd95e46acd5a3e44bb606fd31ff856cfe5046d818989b3a0596dcb2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/ai-engine-candle/src/runner.rs:129-140 | crates/ai-engine-rten/src/runner.rs:118-129 \u2014 before extracting anything, compare \u0060crates/ai-engine-candle/src/runner.rs\u0060 and \u0060crates/ai-engine-rten/src/runner.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-candle/src/runner.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab77755e07927611713af45aadb433a4f08e9e4a92ee7ec030c02ed9fcbe11a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): crates/ai-artcraft/src/http.rs:15-25 | crates/ai-bfl/src/http.rs:16-26 | crates/ai-declarative/src/http.rs:33-43 | crates/ai-seedance/src/http.rs:14-24 \u2014 before extracting anything, compare \u0060crates/ai-artcraft/src/http.rs\u0060 and \u0060crates/ai-bfl/src/http.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-artcraft/src/http.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9bf9d9f61e5ecc79178235cff44399b2b3f0aba9cb0861b3dda2c1f2be440a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/ai-bfl/src/http.rs:79-88 | crates/ai-comfyui/src/http.rs:199-208 | crates/ai-declarative/src/http.rs:159-168 \u2014 before extracting anything, compare \u0060crates/ai-bfl/src/http.rs\u0060 and \u0060crates/ai-declarative/src/http.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-bfl/src/http.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"61999a620678b07fbe59a2854b3e245a03683decc79a8b0a98a213b4d3bd1fee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/ai-engine-burn/src/inspyrenet/mod.rs:241-250 | crates/ai-engine-candle/src/runner.rs:118-127 | crates/ai-engine-rten/src/runner.rs:107-116 \u2014 before extracting anything, compare \u0060crates/ai-engine-candle/src/runner.rs\u0060 and \u0060crates/ai-engine-rten/src/runner.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-burn/src/inspyrenet/mod.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bbb4d600c3432adf00de2729fa7e9470064c969cebf2bc25d7c29a1198b6df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/ai-bfl/src/lib.rs:136-145 | crates/ai-seedance/src/lib.rs:130-139 \u2014 before extracting anything, compare \u0060crates/ai-bfl/src/lib.rs\u0060 and \u0060crates/ai-seedance/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 6 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-bfl/src/lib.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e63ecbaf59daae4e34bb521704bcb637eb21e1ff1504d26486f47c87ffc2bb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/ai-bfl/src/lib.rs:260-269 | crates/ai-seedance/src/lib.rs:236-245 \u2014 before extracting anything, compare \u0060crates/ai-bfl/src/lib.rs\u0060 and \u0060crates/ai-seedance/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 6 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-bfl/src/lib.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3bde27a9de81985e35befbe85ee51f6ea2c4f3fa2a1f1d3b1c902d683197fb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): crates/ai-artcraft/src/http.rs:15-23 | crates/ai-bfl/src/http.rs:16-24 | crates/ai-comfyui/src/http.rs:15-23 | crates/ai-declarative/src/http.rs:33-41 | crates/ai-seedance/src/http.rs:14-22 \u2014 before extracting anything, compare \u0060crates/ai-artcraft/src/http.rs\u0060 and \u0060crates/ai-bfl/src/http.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-artcraft/src/http.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e73dc4b5a3f02767e522063e92cda75d47c9f710aa31d4aea484f3c567bedf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/ai-bfl/src/http.rs:33-41 | crates/ai-declarative/src/http.rs:118-126 | crates/ai-seedance/src/http.rs:31-39 \u2014 before extracting anything, compare \u0060crates/ai-bfl/src/http.rs\u0060 and \u0060crates/ai-declarative/src/http.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-bfl/src/http.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"971b521010841b04abd957c4e71180e1d68f66907437730d4fabdb9de623c8c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/ai-comfyui/src/sam3_detect.rs:233-241 | crates/ai-comfyui/src/sam3_masks.rs:36-44 | crates/ai-comfyui/src/sam3_masks.rs:85-93 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfyui/src/sam3_detect.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd2629b1e2f92ae5629b26460f46d46238f8c460048052b2ca27030c68fad31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ai-client/src/assignments.rs:147-155 | crates/ai-client/src/client.rs:530-538 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-client/src/assignments.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"546a52173cac205016eb40df0516e216bcd6077b0f3133fc512d0443d4d79a85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/ai-client/src/client.rs:319-326 | crates/ai-client/src/client.rs:388-396 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-client/src/client.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c93e535236ca5d80119aa9dc5fd185d00b77afd140f8ec20d13cad2ae8fbec6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ai-comfy-env/src/source/install.rs:339-348 | crates/ai-comfy-env/src/source/pack/install.rs:155-163 \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/ai-comfy-env/src/source/install.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"e492870b86fae607cfbc8ff1a5698823d1e9bf88e2e9f7e6ee415d0f707e0554"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ai-engine-candle/src/lib.rs:274-282 | crates/ai-engine-candle/src/lib.rs:289-297 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-candle/src/lib.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"96928a6abec4782583c924def0851d930f652e09e98b872ce1b272c1d2f3c975"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ai-engine-candle/src/mask.rs:22-30 | crates/ai-engine-rten/src/resample.rs:31-39 \u2014 before extracting anything, compare \u0060crates/ai-engine-candle/src/mask.rs\u0060 and \u0060crates/ai-engine-rten/src/resample.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-candle/src/mask.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a180f21c3f087eedc46e297400e41e336c91603e3b886d053cd39c6fb2ee4fb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): crates/ai-artcraft/src/http.rs:14-21 | crates/ai-bfl/src/http.rs:15-22 | crates/ai-comfyui/src/http.rs:14-21 | crates/ai-declarative/src/http.rs:32-39 | crates/ai-openai/src/http.rs:38-45 | crates/ai-seedance/src/http.rs:13-20 \u2014 before extracting anything, compare \u0060crates/ai-artcraft/src/http.rs\u0060 and \u0060crates/ai-bfl/src/http.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-artcraft/src/http.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2178dff53d4f2e1ac6bba8268bec13521b20bb16a5316231bf5e3d1270b30c8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/ai-comfy-env/src/download.rs:102-109 | crates/ai-comfy-env/src/source/resolve/api.rs:26-33 | crates/ai-media/src/store.rs:93-100 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfy-env/src/download.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d109c29fe4b942ee51a208c2840e144ca0f9236b96a4140507e9d4d28f07f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/ai-comfy-env/src/source/pack/mod.rs:56-63 | crates/ai-comfy-env/src/source/spec.rs:130-137 \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/ai-comfy-env/src/source/pack/mod.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f907e9c9d9825e589964595058aac5f52318c57ade7b84228fbbee4d1d86d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/ai-comfy-env/src/source/pack/resolve.rs:47-54 | crates/ai-comfy-env/src/source/resolve/hf.rs:30-36 \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/ai-comfy-env/src/source/pack/resolve.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b3a49dc85ebf7d5f5e415aedfd169b2bbb8dd55d593f06efb0b9c9cce9c697"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/ai-comfyui/src/sam21_session.rs:119-126 | crates/ai-comfyui/src/sam3_session.rs:164-171 \u2014 before extracting anything, compare \u0060crates/ai-comfyui/src/sam21_session.rs\u0060 and \u0060crates/ai-comfyui/src/sam3_session.rs\u0060 as WHOLE FILES: this scan already matched 4 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":"crates/ai-comfyui/src/sam21_session.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1135978edead153ae37224e0c6713d82cc72058e96fac787c36f603ff665f3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/ai-comfyui/src/sam21_session.rs:181-188 | crates/ai-comfyui/src/sam3_point.rs:84-91 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfyui/src/sam21_session.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53afc66dc51d0cac8dba20c91dcf1492fd9042ce6979d06c0b04cdca5a5314f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/ai-sam3/src/lib.rs:236-243 | crates/ai-vertex/src/lib.rs:237-244 \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/ai-sam3/src/lib.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"838175c8ec0d2854f381d98323c0fcd9daedafecbc542e5f568097c468a94576"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ai-core/src/segment.rs:94-100 | crates/ai-engine-candle/src/runner.rs:250-256 \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/ai-core/src/segment.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e0840591da3b353d598ef32efc2da1b0c3a7f576495b6291ae69698a012800"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ai-engine-candle/src/image_io.rs:73-79 | crates/ai-engine-rten/src/picture.rs:90-96 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-candle/src/image_io.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"421a41169a8b82f0959fe6e2453faae79fce1ee8055b77438c52a73443f02e04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ai-engine-rten/src/resample.rs:114-120 | crates/ai-engine-rten/src/resample.rs:144-151 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-rten/src/resample.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bda785a4ef90cb6b0df7428a4ff0e67e5ba7b7fb98ff31546bb447ac7da90d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/ai-artcraft/src/provider.rs:336-341 | crates/ai-seedance/src/lib.rs:234-239 \u2014 before extracting anything, compare \u0060crates/ai-artcraft/src/provider.rs\u0060 and \u0060crates/ai-seedance/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-artcraft/src/provider.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4c23c210d6db34d6af60c3be3cb932bd08323bb8122fd63fb7cafb7d1b992e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/ai-comfyui/src/provider.rs:334-339 | crates/ai-comfyui/src/provider.rs:401-406 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfyui/src/provider.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"701f57ba9ee591c49de08f6b43fd3dffc89cc2c3af10b3e91ce38222595ed2e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/ai-engine-candle/src/image_io.rs:64-69 | crates/ai-engine-rten/src/picture.rs:83-88 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-candle/src/image_io.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f6441a9f7e9ebcb4ab79f40ef86599a6282b1990994800bc5bf8963a8b48b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/ai-engine-candle/src/mask.rs:127-132 | crates/ai-engine-rten/src/resample.rs:181-186 \u2014 before extracting anything, compare \u0060crates/ai-engine-candle/src/mask.rs\u0060 and \u0060crates/ai-engine-rten/src/resample.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-candle/src/mask.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"6420578a9ac2c7a71cd250df5019f113724aec6902cff979aa74e6e3193fe028"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): crates/ai-artcraft/src/provider.rs:148-152 | crates/ai-bfl/src/lib.rs:130-134 | crates/ai-declarative/src/lib.rs:263-267 | crates/ai-seedance/src/lib.rs:124-128 \u2014 before extracting anything, compare \u0060crates/ai-artcraft/src/provider.rs\u0060 and \u0060crates/ai-bfl/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-artcraft/src/provider.rs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c215ab5f51f81de4d0f52a5e60d195df17e7ed1c52b5b4a40630ed1d467bc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/ai-bfl/src/lib.rs:25-32 | crates/ai-seedance/src/lib.rs:25-32 | crates/ai-vertex/src/lib.rs:35-42 \u2014 before extracting anything, compare \u0060crates/ai-bfl/src/lib.rs\u0060 and \u0060crates/ai-seedance/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 6 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-bfl/src/lib.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"652ab0adbfc4ebfcbf02428679f3e42347d8a77e42c4b65fa4c0dc85919e722b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/ai-client/src/client.rs:98-102 | crates/ai-comfy-env/src/source/install.rs:383-387 \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/ai-client/src/client.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0ea911ae7318a85d332b809844384b17ad2931aa34e88027fb4a600e3e2df7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/ai-comfyui/src/sam21_session.rs:94-106 | crates/ai-comfyui/src/sam3_session.rs:136-148 \u2014 before extracting anything, compare \u0060crates/ai-comfyui/src/sam21_session.rs\u0060 and \u0060crates/ai-comfyui/src/sam3_session.rs\u0060 as WHOLE FILES: this scan already matched 4 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":"crates/ai-comfyui/src/sam21_session.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a074b2e0ab0805cf306d0cac08946375eb737e65c5f4c41ea49268ff089487"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/ai-artcraft/src/provider.rs:90-101 | crates/ai-seedance/src/lib.rs:76-87 \u2014 before extracting anything, compare \u0060crates/ai-artcraft/src/provider.rs\u0060 and \u0060crates/ai-seedance/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-artcraft/src/provider.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"265bdcc84541868f4d198a27acb7cf1d8cda58b3b81265bd96316867e96adf81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/ai-seedance/src/lib.rs:64-74 | crates/ai-vertex/src/lib.rs:72-82 \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/ai-seedance/src/lib.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a7dd934d3c73a2b62349dcb8899549bc9cee7dc61f572dd91a1b9e9306e0d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/ai-comfyui/src/sam21_session.rs:75-85 | crates/ai-comfyui/src/sam3_session.rs:69-79 \u2014 before extracting anything, compare \u0060crates/ai-comfyui/src/sam21_session.rs\u0060 and \u0060crates/ai-comfyui/src/sam3_session.rs\u0060 as WHOLE FILES: this scan already matched 4 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":"crates/ai-comfyui/src/sam21_session.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b24c48e37005478c27e9bc2ed39fe7cc8df1b3834b267490f1c56cdc3faa70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): crates/ai-artcraft/src/provider.rs:151-159 | crates/ai-bfl/src/lib.rs:133-141 | crates/ai-declarative/src/lib.rs:266-274 | crates/ai-sam3/src/lib.rs:153-161 | crates/ai-seedance/src/lib.rs:127-135 \u2014 before extracting anything, compare \u0060crates/ai-artcraft/src/provider.rs\u0060 and \u0060crates/ai-bfl/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-artcraft/src/provider.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df929276d02b202a7ac086c4a2797cb294fc3c7920512b6b11ed2751fa2f1a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ai-seedance/src/http.rs:37-45 | crates/ai-vertex/src/lib.rs:145-153 \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/ai-seedance/src/http.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"234e21cdf5a553f40e56a2a7593e7c6e0f3e49aabc6cdfa9b82f5e469f1a0729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ai-core/src/draft/presets.rs:145-153 | crates/ai-seedance/src/lib.rs:95-103 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-core/src/draft/presets.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"d480ab53626f9b37fd125b6a62447055c1059a28022694be476dfa8206b5b89e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ai-sam3/src/lib.rs:97-105 | crates/ai-seedance/src/http.rs:42-48 \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/ai-sam3/src/lib.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f1208c358eb90e2187bfc702a9865c44504c1fa6b551046ddfff499bd3d8d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ai-engine-candle/src/runner.rs:50-56 | crates/ai-engine-rten/src/runner.rs:48-56 \u2014 before extracting anything, compare \u0060crates/ai-engine-candle/src/runner.rs\u0060 and \u0060crates/ai-engine-rten/src/runner.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-candle/src/runner.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9428758ed875cacdef3bdcc95b550803cf223f57b4225319ecdf08ab6995f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ai-features/src/catalogue/sam21.rs:15-23 | crates/ai-features/src/catalogue/sam3.rs:12-20 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-features/src/catalogue/sam21.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"0799ed60544c9a95b9fdc906e5c0ee8f3dc9c16d023c1132c462b862af341b0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/ai-artcraft/src/provider.rs:242-248 | crates/ai-bfl/src/lib.rs:189-196 | crates/ai-seedance/src/lib.rs:180-186 \u2014 before extracting anything, compare \u0060crates/ai-artcraft/src/provider.rs\u0060 and \u0060crates/ai-bfl/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-artcraft/src/provider.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49062bbc84a1596cea12f16fa4d177fea45ccd1113b92683de51e475c5a2458"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ai-comfyui/src/sam21_session.rs:111-117 | crates/ai-comfyui/src/sam3_session.rs:156-162 \u2014 before extracting anything, compare \u0060crates/ai-comfyui/src/sam21_session.rs\u0060 and \u0060crates/ai-comfyui/src/sam3_session.rs\u0060 as WHOLE FILES: this scan already matched 4 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":"crates/ai-comfyui/src/sam21_session.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0a860e3f0ac0c5e5a2585f61474b3d64a063348d92d74734656483ea86e779"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ai-comfyui/src/sam21_session.rs:213-219 | crates/ai-comfyui/src/sam3_point.rs:105-111 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfyui/src/sam21_session.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b57be6f6d098b7ac2b265b0e71891d25aebc628a0f760352fb48227fc4fd7fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/ai-comfyui/src/sam3_point.rs:85-91 | crates/ai-seedance/src/lib.rs:151-157 \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/ai-comfyui/src/sam3_point.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"786f95bcb4201428fb18e9b135fa524f5d7f19fd130a82a1b7b170a37d836d87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/ai-artcraft/src/provider.rs:142-147 | crates/ai-seedance/src/lib.rs:118-123 \u2014 before extracting anything, compare \u0060crates/ai-artcraft/src/provider.rs\u0060 and \u0060crates/ai-seedance/src/lib.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-artcraft/src/provider.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"c059858de9a2983fb719f926725490e815eb4228b322c6a8f662abf3d0d70bc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/ai-core/src/conformance.rs:51-55 | crates/ai-core/src/conformance.rs:103-107 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-core/src/conformance.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd0553a24c43e03d02f59c22b46fdb601cd8e2ecbb6ab1a7843d607373a36e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/ai-engine-candle/src/clip.rs:39-43 | crates/ai-engine-candle/src/vit.rs:169-173 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-candle/src/clip.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4091e7d2be85f9297fd74e99e960bd2619045194a69c8143cdc7886b5802dca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/ai-artcraft/src/http.rs:31-35 | crates/ai-bfl/src/http.rs:32-36 | crates/ai-seedance/src/http.rs:30-34 \u2014 before extracting anything, compare \u0060crates/ai-artcraft/src/http.rs\u0060 and \u0060crates/ai-bfl/src/http.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-artcraft/src/http.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fedae52b0d3a382a8d55f9567395ddc1e19b8ca753c98a60a0e186fcbbac16a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/ai-bfl/src/http.rs:33-37 | crates/ai-seedance/src/http.rs:31-35 | crates/ai-vertex/src/lib.rs:140-144 \u2014 before extracting anything, compare \u0060crates/ai-bfl/src/http.rs\u0060 and \u0060crates/ai-seedance/src/http.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-bfl/src/http.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a57eedef047539dfe9ef3b2569f908b35cab04f11558a1d81e2f5a4c9e615b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/ai-engine-candle/src/mask.rs:69-77 | crates/ai-engine-rten/src/resample.rs:93-101 \u2014 before extracting anything, compare \u0060crates/ai-engine-candle/src/mask.rs\u0060 and \u0060crates/ai-engine-rten/src/resample.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-candle/src/mask.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"26334e486962d5cdb68030f8081b16feabd279edd6eb0bdcb7047c8e544eba4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/ai-engine-candle/src/mask.rs:84-89 | crates/ai-engine-rten/src/resample.rs:123-128 \u2014 before extracting anything, compare \u0060crates/ai-engine-candle/src/mask.rs\u0060 and \u0060crates/ai-engine-rten/src/resample.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-candle/src/mask.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"2979ac26e0204de73bcca8db5b8bb192dfffa503dc56cb5ab3ba1d663a861a91"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project craft-ai-client: craft-ai-client has instability 0.94 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1910b022734b1062de5a858a81e144495aa051470255c94ad68a332b518c4c01"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project craft-ai-engine-burn: craft-ai-engine-burn has instability 0.83 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44e3185bdf9dc3d69a2479c2d2d4b589fd51332aded55dbdebb1b57ec8c386b7"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: craft-ai-core: craft-ai-core: abstractness 0.02, instability 0.00, distance 0.98 \u2014 zone of pain \u2014 concrete and depended on by 21 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"461f67428a1f95fc136248577273c56406fe88e3a9ada4d88a9e3609f82b5768"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: craft-ai-features: craft-ai-features: abstractness 0.00, instability 0.14, distance 0.86 \u2014 zone of pain \u2014 concrete and depended on by 6 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"42d9315d0aa91ff85990d28c85ee963ddb8cac04495a8143f460e3b3320462e3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tools/mutation/mutation_check.py: tools/mutation/mutation_check.py changed 52 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in mutation_check.main at line 589. 15 of those changes were fix/bug commits, and the other 37 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 16:39:03 \u002B00:00\u0027 --until=\u00272026-11-06 16:39:03 \u002B00:00\u0027 --full-history --no-merges -- tools/mutation/mutation_check.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/mutation/mutation_check.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"abddc7e46ff752e0a6d148b8bf41af6e253c2e4dfe679249baed661b5e3eb976"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ai-client/src/picker_groups.rs: crates/ai-client/src/picker_groups.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in craft_ai_client::picker_groups::unset_groups at line 136. 1 of those changes was a fix/bug commit, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 16:39:03 \u002B00:00\u0027 --until=\u00272026-11-06 16:39:03 \u002B00:00\u0027 --full-history --no-merges -- crates/ai-client/src/picker_groups.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-client/src/picker_groups.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"743fe29e9ed55d162565c1d9d8eaae2037aadf754478893b856075d8b60435b3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ai-comfyui/src/output.rs: crates/ai-comfyui/src/output.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in craft_ai_comfyui::output::fetch at line 15. 3 of those changes were fix/bug commits, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 16:39:03 \u002B00:00\u0027 --until=\u00272026-11-06 16:39:03 \u002B00:00\u0027 --full-history --no-merges -- crates/ai-comfyui/src/output.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfyui/src/output.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"62fe841f6fcbeb68a4d851f7557179d3a97f7b6c1701de97e2f9d346940687c3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ai-features/src/setup.rs: crates/ai-features/src/setup.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in craft_ai_features::setup::offer_for at line 263. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 16:39:03 \u002B00:00\u0027 --until=\u00272026-11-06 16:39:03 \u002B00:00\u0027 --full-history --no-merges -- crates/ai-features/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":"crates/ai-features/src/setup.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ccf38c5c761282bf2cfa469dafe21e2accf93ff91e9b5b06c1527f746c61025"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ai-egui/src/form.rs: crates/ai-egui/src/form.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in craft_ai_egui::form::connection_form at line 129. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 16:39:03 \u002B00:00\u0027 --until=\u00272026-11-06 16:39:03 \u002B00:00\u0027 --full-history --no-merges -- crates/ai-egui/src/form.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-egui/src/form.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"11de6dd748629bec39da4ce6811cac416f0d4c060ef5486c645e03c2eae381ef"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ai-egui/src/native_setup.rs: crates/ai-egui/src/native_setup.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in craft_ai_egui::native_setup::native_model_setup at line 31. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 16:39:03 \u002B00:00\u0027 --until=\u00272026-11-06 16:39:03 \u002B00:00\u0027 --full-history --no-merges -- crates/ai-egui/src/native_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":"crates/ai-egui/src/native_setup.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce8c6a743ecbcb98a6d644906ab971a63ed36d06aae7762eb872ebe96fc8f37"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/ai-comfy-env/src/model_folder_scan.rs: crates/ai-comfy-env/src/model_folder_scan.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in craft_ai_comfy_env::model_folder_scan::scan_with_limits at line 178. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 16:39:03 \u002B00:00\u0027 --until=\u00272026-11-06 16:39:03 \u002B00:00\u0027 --full-history --no-merges -- crates/ai-comfy-env/src/model_folder_scan.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfy-env/src/model_folder_scan.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ecf1a4b913d7f0558cf05796289d1cd04a5389e0d3098cc698e79837ed100eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/ai-client/src/tools.rs: crates/ai-client/src/tools.rs changed 14 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is ToolDesk::finish at line 321), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ai-client): change a model and its tool choice in one shared operation\u201D; \u201Cfix(ai-client): refuse options and adapterless choices before consent\u201D; \u201Cfix(ai-client): check counts, addresses and start against the route\u201D; \u201Cfix(ai-client): report what this build can run apart from what is saved\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 16:39:03 \u002B00:00\u0027 --until=\u00272026-11-06 16:39:03 \u002B00:00\u0027 --full-history --no-merges -- crates/ai-client/src/tools.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-client/src/tools.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a51fb531ef0571cb39b876787bcc29124ec259f67f73bc93d0273b752323b6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/ai-client/src/manage.rs: crates/ai-client/src/manage.rs changed 11 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is ConnectionManager::save at line 194), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ai-client): a stale form save no longer restores a withdrawn declaration\u201D; \u201Cfix(ai-client): keep declared inputs and later-listed models across saves\u201D; \u201Cfix(ai-client): keep declarations and refused routes consistent in assignments\u201D; \u201Cfix(ai-client): change a model and its tool choice in one shared operation\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 16:39:03 \u002B00:00\u0027 --until=\u00272026-11-06 16:39:03 \u002B00:00\u0027 --full-history --no-merges -- crates/ai-client/src/manage.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-client/src/manage.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e780427ead7b83b3a74ef31a7103f300891ef41ba95c82ac7f4c5c7cb54548"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/ai-vertex/src/lib.rs: crates/ai-vertex/src/lib.rs changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is VertexProvider::submit at line 197), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ai-client): check counts, addresses and start against the route\u201D; \u201Cfix(ai-client): report what this build can run apart from what is saved\u201D; \u201Cfix(ai-openai): cap a streamed reply and the events a job holds unpollled (#53)\u201D; \u201Cfix(ai-vertex): send the express key in a header, not the URL query (#52)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 16:39:03 \u002B00:00\u0027 --until=\u00272026-11-06 16:39:03 \u002B00:00\u0027 --full-history --no-merges -- crates/ai-vertex/src/lib.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-vertex/src/lib.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc73d062d4d0b2861a3252aaa10e6929109f7ac9e21625ff23f76f2c261dfe7"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/ai-client/src/client_run.rs: crates/ai-client/src/client_run.rs changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is AiClient::start at line 49), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ai-client): refuse options and adapterless choices before consent\u201D; \u201Cfix(ai-client): check counts, addresses and start against the route\u201D; \u201Cfix(ai-client): report what this build can run apart from what is saved\u201D; \u201Cfix(ai-client): show a local file\u0027s measured size in the consent prompt (#121)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 16:39:03 \u002B00:00\u0027 --until=\u00272026-11-06 16:39:03 \u002B00:00\u0027 --full-history --no-merges -- crates/ai-client/src/client_run.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-client/src/client_run.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"02826ac42a382b5c8d7b868d7e1bb750b9b99b4b494b6f123ca348f8abb33bbb"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/ai-media/src/lib.rs: crates/ai-media/src/lib.rs changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is PersistingProvider::poll at line 72), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ai-openai, ai-media): refuse extra images and copy each returned link once (#151)\u201D; \u201Cfix(ai-http): never route loopback traffic through an env-named proxy (#50)\u201D; \u201Cfix(security): harden the media link guard and a few small data-handling gaps\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 16:39:03 \u002B00:00\u0027 --until=\u00272026-11-06 16:39:03 \u002B00:00\u0027 --full-history --no-merges -- crates/ai-media/src/lib.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-media/src/lib.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e33b089b574faff14fbec0d278f5781bd4032684772d86882a6fc8dbd869670"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/ai-client/src/assignments.rs: crates/ai-client/src/assignments.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is craft_ai_client::assignments::forget_declared at line 339), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ai-client): a stale form save no longer restores a withdrawn declaration\u201D; \u201Cfix(ai-client): keep declared inputs and later-listed models across saves\u201D; \u201Cfix(ai-client): keep declarations and refused routes consistent in assignments\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 16:39:03 \u002B00:00\u0027 --until=\u00272026-11-06 16:39:03 \u002B00:00\u0027 --full-history --no-merges -- crates/ai-client/src/assignments.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-client/src/assignments.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"f439fef9697069654fd028c4ca43a03cc02b5da7688bca013da3d34015077d86"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/ai-seedance/src/lib.rs: crates/ai-seedance/src/lib.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is SeedanceProvider::poll at line 176), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ai-client): check counts, addresses and start against the route\u201D; \u201Cfix(ai-client): report what this build can run apart from what is saved\u201D; \u201Cfix(ai): use BytePlus ModelArk for Seedance\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 16:39:03 \u002B00:00\u0027 --until=\u00272026-11-06 16:39:03 \u002B00:00\u0027 --full-history --no-merges -- crates/ai-seedance/src/lib.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-seedance/src/lib.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"65915c1b86e6d0eb3017ec5967e650f9df5c48706691173d5aa2b6382fa7612b"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f51e084648ba6819b702916011dd67e1da439121d44db32a4366d6c7901c6dc1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"0cbd3a4287905dfae3bec9ca4b9dda0ed0d2fd00edf01f4f5c3b773a2b840599"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"32a3436ac85d56d2ea2d6ec362cd6124be8226987e35cf4e26b2343a2358f32a"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"1c809653f07dfb50fa063644d90e188a4b7497a39c6862bb91ec80d480e5a0c1"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3943b1ec485af51f5af02dc376c35337d6530442df972b4dbb971edb6ab1f899"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"25a6fbdd7184457d9329c045d949585ccda108e4fd0c54a6a0f3482a13763bc9"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"15c5573d04923f69d2987dbf459d100c98dbbfa218e1754ea966fca3c96e8db4"},"taxa":[{"id":"CWE-939","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":"5700cf8ee182fc440abb16030061d2e9976929eb60c880096208a514bc453b10"},"properties":{"dependency":{"package":"zip","version":"0.6.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0367","RUSTSEC-2026-0368","RUSTSEC-2026-0369","RUSTSEC-2026-0429"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5922a5beeab5ac077ffb485a783ad545036e79b56239f83da38f3fb84336b113"},"properties":{"dependency":{"package":"paste","version":"1.0.15","advisory":"RUSTSEC-2024-0436","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"77d4d5d4357ce0a5ade8f6f76c84914f1a2c80f9fe7358d9854254b760de650a"},"properties":{"dependency":{"package":"zvariant","version":"5.15.0","advisory":"RUSTSEC-2026-0370","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7f6329e2b29fe1ee1dd724766af980b151618490b720201bbdc1839704210c3e"},"properties":{"dependency":{"package":"zbus_names","version":"4.3.4","advisory":"RUSTSEC-2026-0371","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f67f0700e108bacf2f3dfd2008273e31f01b0ea1f2d5f9ef71c4f46ace73bbe9"},"properties":{"dependency":{"package":"zvariant_derive","version":"5.15.0","advisory":"RUSTSEC-2026-0372","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c64e30c28e3c0e2ac4c865fc1656b78d3404e0bf0484e55f9176b7c5f283f360"},"properties":{"dependency":{"package":"tokio","version":"1.53.2","advisory":"RUSTSEC-2026-0386","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"06e8dc8c07565b965cad3fead890e0d682e96e4f994ab4a0654e3f10afe7962d"},"properties":{"dependency":{"package":"zstd-safe","version":"5.0.2\u002Bzstd.1.5.2","advisory":"RUSTSEC-2026-0395","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d67834474e5564706ab5d6117a7537fa7ddd9f89e1070ff0f40846a68262b203"},"properties":{"dependency":{"package":"zstd-safe","version":"5.0.2\u002Bzstd.1.5.2","advisory":"RUSTSEC-2026-0397","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64bc44f41a35cd29a5d01a7b192ce2cc5f1d458c15d9df1d5239ebb5b7c6fd43"},"properties":{"dependency":{"package":"zstd-safe","version":"5.0.2\u002Bzstd.1.5.2","advisory":"RUSTSEC-2026-0399","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a79bcf37fda3b3cfb40243fa81b1818f80a0fe095c267b68e3c7eee6f042ddc9"},"properties":{"dependency":{"package":"zstd-safe","version":"5.0.2\u002Bzstd.1.5.2","advisory":"RUSTSEC-2026-0400","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"21df614167acad094349de8aa7cfc685e485f636d67b1ded35b43230df65a136"},"properties":{"dependency":{"package":"zstd-safe","version":"5.0.2\u002Bzstd.1.5.2","advisory":"RUSTSEC-2026-0401","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fd61c6a1a6d23109e3da0a091cdbb2ecd3102dd1235e0548e2d8ffd7db2a7005"},"properties":{"dependency":{"package":"zstd-safe","version":"5.0.2\u002Bzstd.1.5.2","advisory":"RUSTSEC-2026-0402","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a910032c7367726c7f26107809b36a5b0ab01a6e3af6f2b0cf67b659ecca9e49"},"properties":{"dependency":{"package":"zstd-safe","version":"5.0.2\u002Bzstd.1.5.2","advisory":"RUSTSEC-2026-0404","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dbb5f2efe8d9cca6344840981b65d21b774960589fc9976e6690dc84fce97102"},"properties":{"dependency":{"package":"zstd-safe","version":"5.0.2\u002Bzstd.1.5.2","advisory":"RUSTSEC-2026-0406","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f91d09839aed786f6e23061c5ea6839b7bcfd11446048e415dacada61dbda543"},"properties":{"dependency":{"package":"zstd-safe","version":"5.0.2\u002Bzstd.1.5.2","advisory":"RUSTSEC-2026-0403","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"942b43c555ecffc9183c49603c8f5cc37bb17b6ee515d0880090967a376699dc"},"properties":{"dependency":{"package":"zvariant","version":"5.15.1","advisory":"RUSTSEC-2026-0370","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ff62cc69708010e0e3f5ccaedc34bc926cbec976165197c1fb21ba08a7b454f9"},"properties":{"dependency":{"package":"zbus_names","version":"4.3.5","advisory":"RUSTSEC-2026-0371","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a7114e363b783bad2eb188a09d96bbc1746b115b785787d2d87e79f6affc6a3e"},"properties":{"dependency":{"package":"zvariant_derive","version":"5.15.1","advisory":"RUSTSEC-2026-0372","reachability":{"kind":"unknown"}}}},{"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":"c593d4dbd23724f337bfb8d2c1653812f143ae255bd9b59d4b3e9c37779fa6f4"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P1","level":"note","message":{"text":"CI build step not evidenced: A CI pipeline exists but no build step was matched \u2014 changes may merge without the build ever running. A build step may be invoked directly as a command, or declared as a task that a runner named in the pipeline resolves."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"251015acef1a259fcc13b7c60660cc8917ccb3ae8056cb5165ae03312dd586e8"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060proc.returncode != 0 and \u0027test result: FAILED\u0027 in log\u0060 appears character-identically in 2 files \u2014 tools/mutation/mutation_check.py, tools/mutation/sam3_mutation_check.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/mutation/mutation_check.py"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"161874ac1c635e2bc0a85a0d0b55271a4968692be9c326509c80b98c93f31898"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!endpoint.is_loopback() || base != endpoint.fingerprint()\u0060 appears character-identically in 4 files \u2014 crates/ai-comfyui/src/provider.rs, crates/ai-comfyui/src/sam21_session.rs, crates/ai-comfyui/src/sam3_point.rs, crates/ai-comfyui/src/sam3_session.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfyui/src/provider.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa3f50aee0e995a2046edcb38836b8d0030b2b4331f1d03936276a0ec07231d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!s.is_empty() \u0026\u0026 s.len() \u003C= 255 \u0026\u0026 !s.contains(\u0022..\u0022) \u0026\u0026 !s.contains([\u0027/\u0027, \u0027\\\\\u0027, \u0027:\u0027]) \u0026\u0026 !s.chars().any(char::is_control)\u0060 appears character-identically in 2 files \u2014 crates/ai-comfyui/src/output.rs, crates/ai-comfyui/src/sam3_masks.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfyui/src/output.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4b5d98d37bde99b62a8a845d0144187923043e3e4458614960eb9dc411f69d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!url.username().is_empty() || url.password().is_some()\u0060 appears character-identically in 3 files \u2014 crates/ai-comfy-env/src/source/pack/mod.rs, crates/ai-comfy-env/src/source/spec.rs, crates/ai-media/src/url_rules.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfy-env/src/source/pack/mod.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae24ba6483689c6b7bd84934997549480c84810d38a33edb36659da3dc77aaf5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060frame.bit_depth != BitDepth::Eight || pixels.len() \u003C width * height * channels\u0060 appears character-identically in 2 files \u2014 crates/ai-engine-candle/src/image_io.rs, crates/ai-engine-rten/src/picture.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-candle/src/image_io.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"411901975ced10c8a33a71421b427bc0d7ce604ca1baeb93829b40d66ec23828"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060image.len() \u003C 8 || image.len() \u003E 16 * 1024 * 1024 || !image.starts_with(b\u0022\\x89PNG\\r\\n\\x1a\\n\u0022)\u0060 appears character-identically in 3 files \u2014 crates/ai-comfyui/src/sam21_session.rs, crates/ai-comfyui/src/sam3_point.rs, crates/ai-comfyui/src/sam3_session.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfyui/src/sam21_session.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"a499944c8c791a81098bdfa01ed9f1deec400bc5e8b5f03b46cbd96746b39c87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060p[0].abs_diff(90) \u003C 6 \u0026\u0026 p[0] == p[1] \u0026\u0026 p[1] == p[2]\u0060 appears character-identically in 2 files \u2014 crates/ai-engine-candle/src/jpeg/tests.rs, crates/ai-engine-rten/src/picture/tests.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-engine-candle/src/jpeg/tests.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ccd5700a10f58c332413bdfe25b1777012986fa4dc230ba8c197fdb6de165e3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060width == 0 || height == 0 || u64::from(width) * u64::from(height) \u003E MAX_PIXELS\u0060 appears character-identically in 2 files \u2014 crates/ai-comfyui/src/segment_route.rs, crates/ai-engine-candle/src/jpeg.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfyui/src/segment_route.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d99a1cf2c7266e546704a7f9bf5c66d078bc95fab7ebd50f349f73c43f019f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060width == 0 || height == 0 || width \u003E 8192 || height \u003E 8192 || u64::from(width) * u64::from(height) \u003E 16_777_216\u0060 appears character-identically in 2 files \u2014 crates/ai-comfyui/src/sam21_session.rs, crates/ai-comfyui/src/sam3_session.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfyui/src/sam21_session.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"68325cfca1a180f7a724ac37e80f5c9ab6d87f5483f5a26bda4e919af31ae069"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060https_url\u0060 returns \u0060False\u0060 when \u0060ValueError\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/intake/propose.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73cbbfba6fe375ef95c8828bedda975fca27356dd7500f7cd706bc828f211a5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060subdirs\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfy-env/src/detect.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"af32c07ecb674e241e58f086dfee6464b62a1f64c48b8787a74b222ebf7be50a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060read_drm_vendor_ids\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/ai-comfy-env/src/system.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ca50a3e6874d58debf6681c5cbfe75d58104e14ffdeaefcdd6e397407c5130"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-939","guid":"12397742-f2c4-8254-8012-482c3356c551","name":"CWE-939","shortDescription":{"text":"CWE-939"},"helpUri":"https://cwe.mitre.org/data/definitions/939.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"}]}],"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":27,"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."]}]}